CVE-2026-66038

FFmpeg LCL/ZLIB Video Decoder Information Disclosure via lcldec.c

Published Jul 24, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
FFmpeg through 8.1.2, fixed in commit 8670835, contains an information disclosure vulnerability in the LCL/ZLIB video decoder that allows attackers to expose uninitialized heap memory by supplying a valid zlib stream that inflates to fewer bytes than the expected frame size. The zlib_decomp() function in lcldec.c treats short decompression as non-fatal and continues to the RGB24 conversion path, which copies a full frame's worth of rows from the allocation buffer using original frame dimensions, causing uninitialized heap contents including pointer-derived allocator bytes to be copied into the attacker-observable AVFrame output and potentially defeating ASLR in long-lived media processing services.

Analysis

AI-generated

Technical impact

FFmpeg releases up to and including version 8.1.2 contain a flaw in the LCL/ZLIB video decoder that can leak uninitialized heap memory. When a supplied zlib stream inflates to fewer bytes than the declared frame size, the decoder treats the short decompression as non‑fatal and proceeds to the RGB24 conversion path. This path copies a full frame’s worth of rows from the allocation buffer using the original frame dimensions, causing uninitialized heap contents—including pointer‑derived allocator bytes—to be copied into the resulting AVFrame output, thereby exposing raw memory to the attacker. The vulnerability aligns with CWE‑908, Information Exposure Through Uninitialized Memory, and can undermine ASLR protection in long‑running media processing services.

Affected Systems

The vulnerability affects FFmpeg builds through version 8.1.2. The issue was fixed in a later commit (8670835). Users should verify that their FFmpeg version includes the referenced commit before assuming it is safe.

Risk and Exploitability

The CVSS score of 7.1 indicates a moderate severity vulnerability. The EPSS score of <1% suggests a very low likelihood of exploitation in the wild, and there is no listing in the CISA KEV catalog. The flaw requires an attacker to supply a crafted media file to a process that utilizes FFmpeg’s LCL/ZLIB decoder, meaning the impact is most pronounced in services that receive untrusted video input. The vulnerability does not provide remote code execution but does allow confidentiality compromise and potential ASLR bypass in persistent services.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to a version that includes the fix committed in 8670835.
  • If upgrading is not feasible immediately, disable the LCL/ZLIB decoder for any incoming video streams that are not trusted or run media processing in a sandboxed container to limit memory exposure.
  • Implement strict validation so that the zlib decompression output matches the expected frame size; reject any stream that yields a shorter decompression result.
  • Enable or strengthen ASLR and other memory protection mechanisms for long‑running services that process media.

Generated by OpenCVE AI on August 4, 2026 at 14:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8671-1 FFmpeg vulnerabilities
Ubuntu USN Ubuntu USN USN-8738-1 FFmpeg vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
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 through 8.1.2, fixed in commit 8670835, contains an information disclosure vulnerability in the LCL/ZLIB video decoder that allows attackers to expose uninitialized heap memory by supplying a valid zlib stream that inflates to fewer bytes than the expected frame size. The zlib_decomp() function in lcldec.c treats short decompression as non-fatal and continues to the RGB24 conversion path, which copies a full frame's worth of rows from the allocation buffer using original frame dimensions, causing uninitialized heap contents including pointer-derived allocator bytes to be copied into the attacker-observable AVFrame output and potentially defeating ASLR in long-lived media processing services.
Title FFmpeg LCL/ZLIB Video Decoder Information Disclosure via lcldec.c
Weaknesses CWE-908
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/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
Jul 28, 2026, 1:06 AM
Reserved
Jul 23, 2026, 8:45 PM
Status
Analyzed
Published
Jul 24, 2026, 8:18 PM
Modified
Aug 7, 2026, 12:54 AM
Severity
Moderate
Public date
Jul 24, 2026, 7:39 PM