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.
Published: 2026-07-24
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Thu, 30 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*

Fri, 24 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Vendors & Products Ffmpeg
Ffmpeg ffmpeg

Fri, 24 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 24 Jul 2026 20:15:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:06:28.780Z

Reserved: 2026-07-23T20:45:17.816Z

Link: CVE-2026-66038

cve-icon Vulnrichment

Updated: 2026-07-24T20:14:14.026Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-24T20:18:20.727

Modified: 2026-08-07T00:54:32.767

Link: CVE-2026-66038

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-24T19:39:27Z

Links: CVE-2026-66038 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T15:00:14Z

Weaknesses
  • CWE-908

    Use of Uninitialized Resource