CVE-2026-120244

FFmpeg 2.1 through 9.0.2 Uninitialized Memory Leak via PCX Decoder

Published Nov 1, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
FFmpeg 2.1 through 9.0.2 contains an uninitialized memory disclosure vulnerability in pcx_decode_frame() in libavcodec/pcx.c that leaves scanline buffer bytes uncleared when input ends early. Attackers can supply a crafted truncated RLE-compressed or uncompressed PCX image to leak heap memory contents through the decoded pixels.

Analysis

AI-generated

Technical impact

The vulnerability is an uninitialized memory disclosure in FFmpeg 2.1 through 9.0.2. In the pcx_decode_frame() function within libavcodec/pcx.c, the scanline buffer is left uncleared when an input PCX file ends early. Attackers can supply a crafted truncated RLE-compressed or uncompressed PCX image, causing heap memory contents to be leaked through the decoded pixel data.

Affected Systems

Affected versions are FFmpeg 2.1 through 9.0.2. Any installation of these releases that uses the PCX decoder is vulnerable.

Risk and Exploitability

The CVSS score of 6.8 indicates a medium severity. The EPSS score of < 1% indicates a very low likelihood of exploitation, and the vulnerability is not listed in CISA's KEV catalog. Attackers can exploit the flaw by providing a specially crafted PCX file, which can be distributed locally or potentially delivered to a remote service that processes images. The exploit only leaks data, so it does not provide code execution, but it can compromise confidentiality. The risk level is moderate but mitigation is recommended.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update FFmpeg to a release that includes the PCX decoder fix, such as 9.0.3 or later.
  • If an upgrade is not immediately possible, restrict or validate PCX files before decoding, rejecting any file with truncated RLE data.
  • Monitor usage of the PCX decoder and consider disabling PCX support if it is not needed.

Generated by OpenCVE AI on November 15, 2026 at 11:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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. FFmpeg 2.1 through 9.0.2 contains an uninitialized memory disclosure vulnerability in pcx_decode_frame() in libavcodec/pcx.c that leaves scanline buffer bytes uncleared when input ends early. Attackers can supply a crafted truncated RLE-compressed or uncompressed PCX image to leak heap memory contents through the decoded pixels.
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title FFmpeg 2.1 through 9.0.2 Uninitialized Memory Leak via PCX Decoder
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-908
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 6.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 11, 2026, 2:37 AM
Reserved
Oct 31, 2026, 10:05 PM
Status
Awaiting Analysis
Published
Nov 1, 2026, 1:17 AM
Modified
Nov 11, 2026, 3:16 AM
Severity
Moderate
Public date
Nov 1, 2026, 12:57 AM