CVE-2026-70631: FFmpeg 0.5 < 9.0 Uninitialized Heap Memory Read in TIFF Decoder
FFmpeg versions from 0.5 up to, but not including, 9.0 contain an uninitialized heap memory disclosure vulnerability in the native TIFF decoder in libavcodec/tiff.c. An attacker who can cause FFmpeg to decode a crafted TIFF file can supply a valid Deflate-compressed strip that terminates successfully after producing fewer bytes than the declared strip requires. The tiffunpackzlib() function allocates a heap buffer sized for the full declared strip but copies all declared rows via memcpy() regardless of how many bytes zlib actually decompressed, causing unwritten bytes that can contain stale data from prior heap allocations to be incorporated into decoded image output and potentially exposing sensitive data in persistent services.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
FFmpegto a version that resolves this vulnerability.Fixed in 9.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-70631?
CVE-2026-70631 has a medium severity rating of 5.5.
How do I fix CVE-2026-70631?
To fix CVE-2026-70631, upgrade FFmpeg to version 9.0 or later.
What is the impact of CVE-2026-70631?
CVE-2026-70631 can lead to an uninitialized heap memory disclosure during TIFF file decoding.
Which versions of FFmpeg are affected by CVE-2026-70631?
FFmpeg versions from 0.5 up to, but not including, 9.0 are affected by CVE-2026-70631.
Can an attacker exploit CVE-2026-70631 remotely?
Yes, an attacker can exploit CVE-2026-70631 remotely by crafting a malicious TIFF file for decoding.