Cloudanix VulnDB

CVE-2026-66038

Medium · 6.5

CVSS

6.5

EPSS

0.2%

Published

Jul 24, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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.

Chainable
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

  1. Craft a media file containing an LCL/ZLIB stream that under-inflates
  2. Deliver the file to any FFmpeg-based decoder or transcoder
  3. Trigger the vulnerable code path in lcldec.c
  4. 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