CVE-2026-66038
Medium · 6.5CVSS
6.5
EPSS
0.2%
Published
Jul 24, 2026
CISA due date
—
Cloudanix analysis
A flaw in widely used video software can leak internal memory details when it processes certain video files, which might help attackers bypass other security protections.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Library
- Class
- Information Disclosure
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
The LCL/ZLIB decoder in lcldec.c treats a short zlib_decomp() result as non-fatal and proceeds to copy a full frame of rows from the allocation buffer using original dimensions, exposing uninitialized heap contents including allocator-derived pointer bytes into the observable AVFrame.
Why it matters to the business
Media processing services may leak internal memory addresses that weaken address-space layout randomization, increasing the chance of successful follow-on attacks against long-running FFmpeg deployments.
How an attack unfolds
An attacker supplies a valid zlib stream that inflates to fewer bytes than the declared frame size; the decoder continues into the RGB24 conversion path and returns the partially uninitialized buffer in the output AVFrame, allowing the attacker to read pointer-derived bytes and potentially defeat ASLR in persistent services.
How to fix it
Rebuild or upgrade FFmpeg to a version containing commit 8670835; rebuild all dependent applications and libraries against the fixed FFmpeg.
How to confirm the fix worked
Confirm commit 8670835 (or an equivalent patch) is present in the source tree; test with a short-inflation zlib sample and verify that only initialized data appears in the output frame.
Typical attack path
- Craft a media file containing an LCL/ZLIB stream that under-inflates
- Deliver the file to any FFmpeg-based decoder or transcoder
- Trigger the vulnerable code path in lcldec.c
- Extract leaked heap contents from the resulting AVFrame
How to detect it
Review media-processing logs for unusual frame sizes or repeated decoding of LCL streams; inspect decoded AVFrame buffers for non-image data or pointer-like values; correlate with inbound untrusted media uploads.
What your security team should do
- Update all FFmpeg installations to a build containing commit 8670835 as soon as possible
- Inventory and replace any statically linked or vendored copies of FFmpeg
- Add the fixed commit hash to build pipelines and container base images
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-121227 Uninitialized resource in Skia in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-908
- CVE-2026-121213 Uninitialized resource in Images in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-908
- CVE-2026-121207 Uninitialized resource in Dawn in Google Chrome on on Mac prior to 157.0.8103.38 allowed… CWE-908
- CVE-2026-121176 Uninitialized resource in Media in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-908
- CVE-2026-121173 Uninitialized resource in WebGL in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-908
- CVE-2026-121143 Uninitialized resource in GPU in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-908
- CVE-2026-121095 Uninitialized resource in WebGL in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-908
- CVE-2026-121072 Uninitialized resource in Skia in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-908