Libav: FFmpeg through 8.1.2, fixed in commit 8670835, contains an information disclosure vulnerability in the LCL/ZLIB video decoder that allows attackers… (CVE-2026-66038)
FFmpeg versions through 8.1.2 contain an information disclosure vulnerability in the LCL/ZLIB video decoder. This flaw allows attackers to expose uninitialized heap memory by providing a valid zlib stream that decompresses to fewer bytes than the expected frame size. The vulnerability arises because the decompression function treats short decompression as non-fatal and proceeds to copy a full frame's worth of data from the allocation buffer, potentially leaking sensitive memory contents. This can aid attackers in bypassing address space layout randomization (ASLR) in long-running media processing services.
AI Analysis
Technical Summary
CVE-2026-66038 affects FFmpeg through version 8.1.2 in the LCL/ZLIB video decoder component. The vulnerability is due to the zlib_decomp() function in lcldec.c treating short decompression results as non-fatal and continuing to the RGB24 conversion path. This path copies a full frame's worth of rows from the allocation buffer using the original frame dimensions, even when the decompressed data is smaller than expected. As a result, uninitialized heap memory, including pointer-derived allocator bytes, can be copied into the output AVFrame, exposing potentially sensitive information. This information disclosure can help attackers defeat ASLR protections in media processing services that use this decoder.
Potential Impact
An attacker can supply a crafted zlib stream that decompresses to fewer bytes than expected, causing the decoder to leak uninitialized heap memory contents. This exposure of memory can reveal sensitive data and potentially aid in bypassing ASLR, increasing the risk of further exploitation in long-lived media processing environments. The vulnerability does not affect integrity or availability but has a high confidentiality impact.
Mitigation Recommendations
A fix for this vulnerability is available in the FFmpeg codebase as of commit 8670835, which addresses the issue in the LCL/ZLIB video decoder. Users should upgrade to a version including this commit or later than 8.1.2. Since no official patch link is provided, users should consult the FFmpeg project repository or vendor advisories for the fixed version. There is no indication that the vulnerability is mitigated by default or requires no action.
Libav: FFmpeg through 8.1.2, fixed in commit 8670835, contains an information disclosure vulnerability in the LCL/ZLIB video decoder that allows attackers… (CVE-2026-66038)
Description
FFmpeg versions through 8.1.2 contain an information disclosure vulnerability in the LCL/ZLIB video decoder. This flaw allows attackers to expose uninitialized heap memory by providing a valid zlib stream that decompresses to fewer bytes than the expected frame size. The vulnerability arises because the decompression function treats short decompression as non-fatal and proceeds to copy a full frame's worth of data from the allocation buffer, potentially leaking sensitive memory contents. This can aid attackers in bypassing address space layout randomization (ASLR) in long-running media processing services.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-66038 affects FFmpeg through version 8.1.2 in the LCL/ZLIB video decoder component. The vulnerability is due to the zlib_decomp() function in lcldec.c treating short decompression results as non-fatal and continuing to the RGB24 conversion path. This path copies a full frame's worth of rows from the allocation buffer using the original frame dimensions, even when the decompressed data is smaller than expected. As a result, uninitialized heap memory, including pointer-derived allocator bytes, can be copied into the output AVFrame, exposing potentially sensitive information. This information disclosure can help attackers defeat ASLR protections in media processing services that use this decoder.
Potential Impact
An attacker can supply a crafted zlib stream that decompresses to fewer bytes than expected, causing the decoder to leak uninitialized heap memory contents. This exposure of memory can reveal sensitive data and potentially aid in bypassing ASLR, increasing the risk of further exploitation in long-lived media processing environments. The vulnerability does not affect integrity or availability but has a high confidentiality impact.
Mitigation Recommendations
A fix for this vulnerability is available in the FFmpeg codebase as of commit 8670835, which addresses the issue in the LCL/ZLIB video decoder. Users should upgrade to a version including this commit or later than 8.1.2. Since no official patch link is provided, users should consult the FFmpeg project repository or vendor advisories for the fixed version. There is no indication that the vulnerability is mitigated by default or requires no action.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-8mx4-8xfc-qr43
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-66038"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a6542289c2644c7f808a023
Added to database: 07/25/2026, 23:09:28 UTC
Last enriched: 08/08/2026, 16:58:12 UTC
Last updated: 09/08/2026, 22:52:14 UTC
Views: 82
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.