Skip to main content
← Vulnerabilities

FFmpeg 2.1 through 9.0.2 Uninitialized Memory Leak via PCX Decoder

Affects FFmpeg 2.1 through 9.0.2 when the PCX decoder reads truncated RLE data. CVSS scores it 6.8 (medium). The checked facts list no fixed release.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

Published
Last modified
Published
Not listed in CISA KEV
12/100 · provisional
Specific setups only
Fix
Fix or patch referenced
None on Exploit-DB, Metasploit or GitHub

Summary

FFmpeg, the widely used multimedia framework, is affected through its PCX image decoder. A specially crafted PCX file with truncated compressed data can cause the decoder to expose uninitialized heap memory contents in the decoded image, potentially leaking sensitive information.

Read the original description

FFmpeg 2.1 through 9.0.2 contains a use of uninitialized resource vulnerability in the PCX decoder that allows attackers to leak heap memory through truncated RLE scanlines. Attackers can craft a PCX image whose RLE data ends early, causing pcx_decode_frame() to copy uninitialized av_malloc() buffer contents into visible decoded pixels.

What to do

  • Check whether your setup matches what the bug needs.

    The PCX input ends before a scanline is fully decoded (truncated RLE data). The defect dates from the RLE support in the PCX decoder (regression since commit 50617fce07).
  • Apply the patch listed under Evidence.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • FFmpeg FFmpeg

    From 2.1 · through 9.0.2

Evidence 5

  1. Patch
  2. Report
  3. Repository
  4. Repository
  5. Link

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

FAQ

Questions about CVE-2026-120244

What does this mean?

When a PCX file ends partway through a scanline, the FFmpeg decoder can leave part of that line unset. Uninitialized memory can then appear in the decoded output pixels.Source: code.ffmpeg.org

Am I affected, and how do I check?

The checked facts cover FFmpeg 2.1 through 9.0.2, back to the RLE support added in commit 50617fce07. The condition is PCX input that ends before a scanline is fully decoded. The FFmpeg version can be checked with the ffmpeg -version command.Source: code.ffmpeg.org

What should I do about it?

The checked facts do not name a fixed release, so no upgrade target can be confirmed from them. The upstream fix is the commit titled "avcodec/pcx: zero the rest of a scanline the input ends in", and the FFmpeg project's release notes should be checked for the first version that includes it.Source: code.ffmpeg.org

Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data