---
id: "CVE-2026-125170"
page: "https://infrastack.ai/live/CVE-2026-125170"
kind: "vulnerability"
aliases: ["CVE-2026-125170"]
title: "FFmpeg: truncated TGA images leak uninitialized heap memory into decoded frames"
severity: "medium"
cvss: 4.8
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["ffmpeg", "libavcodec", "media-processing", "package"]
not_affected_if: ["no-tga-input"]
published_at: "2026-11-09T19:16:51+00:00"
first_seen_at: "2026-11-09T19:28:16+00:00"
updated_at: "2026-11-09T19:32:24+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125170", "first_seen_at": "2026-11-09T19:28:16+00:00"}]
exploit_sources: []
---

# FFmpeg: truncated TGA images leak uninitialized heap memory into decoded frames

Link for people: https://infrastack.ai/live/CVE-2026-125170 (this .md is for agents)

FFmpeg's Targa (TGA) decoder in libavcodec does not check packet length during RLE decoding, so a truncated image can make decoded frames contain leftover heap and stack data. An attacker who supplies a crafted TGA file can read memory contents that should not be exposed.

_Summary, check and fix written by a model from the sources; labelled as such._

## Timeline

- 2026-11-09T19:28:16+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-125170

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-uninitialized-memory-disclosure-via-targa-decode-rle
- [fix] Patch: github.com https://github.com/FFmpeg/FFmpeg/commit/f8f84348dfe1a80d38e7dbbcddcdd5d92a760dfd

## From the sources

FFmpeg through 9.0.2 contains an uninitialized memory disclosure vulnerability in targa_decode_rle() in libavcodec/targa.c caused by missing packet length checks. Attackers can supply truncated RLE-compressed TGA images so decoded frames contain leftover heap buffer data and replicated uninitialized stack bytes.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
