medium4.8
CVE-2026-125170
FFmpeg through 9.0.2 contains an uninitialized memory disclosure vulnerability in targa_decode_rle() in libavcodec/targa.c caused by missing packet length chec…
Impact
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.
An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: low risk of data being read.
Affected products · FFmpeg
| Product | Affected versions |
|---|---|
| FFmpeg | through 9.0.2 Version 0 ≤9.0.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24597
- https://github.com/FFmpeg/FFmpeg/commit/f8f84348dfe1a80d38e7dbbcddcdd5d92a760dfd
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/targa.c#L72
- https://github.com/FFmpeg/FFmpeg
- https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-uninitialized-memory-disclosure-via-targa-decode-rle
- https://github.com/advisories/GHSA-p5f4-cwf8-mq39
- https://nvd.nist.gov/vuln/detail/CVE-2026-125170