CVE-2026-70631

FFmpeg 0.5 < 9.0 Uninitialized Heap Memory Read in TIFF Decoder

Published Aug 6, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
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 tiff_unpack_zlib() 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.

Analysis

AI-generated

Technical impact

FFmpeg versions 0.5 through 8.x contain a flaw in the native TIFF decoder within libavcodec/tiff.c, identified as CWE-908 (Uninitialized Heap Memory Write) and CWE-824 (Uninitialized Heap Memory Read). When a TIFF file includes a Deflate‑compressed strip that ends early, the decoder allocates a buffer sized for the full declared strip but copies all rows via memcpy regardless of how many bytes zlib actually decompresses. This causes unwritten portions of the buffer—potentially containing stale data from previous heap allocations—to be incorporated into the decoded image output, resulting in a loss of confidentiality as unintended data becomes visible in the final image.

Affected Systems

All FFmpeg binaries from 0.5 up to, but not including, 9.0 are affected. The vulnerability resides in libavcodec/tiff.c, so any application, media service, or system that embeds or links against these FFmpeg versions and processes TIFF files is susceptible. No subcomponent or patch level within this range provides inherent protection.

Risk and Exploitability

The CVSS score of 6.8 indicates moderate severity, and an EPSS score of <1% suggests a very low but non‑zero probability of exploitation. The vulnerability is not listed in the CISA KEV catalog, implying no widespread active exploitation is known. However, exploitation only requires an attacker to supply a malicious TIFF to a service that uses FFmpeg for decoding, a common capability in many media handling applications. Consequently, the risk remains significant for systems that accept external TIFF inputs, and proper remediation should be undertaken promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to version 9.0 or later to include the fix for the TIFF decoder
  • Restrict or disable TIFF decoding for untrusted or external input sources in services that embed FFmpeg
  • Introduce validation that the decompressed strip size matches the declared size before copying to the buffer

Generated by OpenCVE AI on August 15, 2026 at 01:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8750-1 FFmpeg vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
Type Values Removed Values Added
Description 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 tiff_unpack_zlib() 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.
Title FFmpeg 0.5 < 9.0 Uninitialized Heap Memory Read in TIFF Decoder
Weaknesses CWE-908
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 6.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-824

    Access of Uninitialized Pointer

  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 14, 2026, 4:51 PM
Reserved
Aug 4, 2026, 8:17 PM
Status
Analyzed
Published
Aug 6, 2026, 10:18 PM
Modified
Sep 1, 2026, 3:33 PM
Severity
Moderate
Public date
Aug 6, 2026, 9:25 PM