Vulnerability · Published Oct 6, 2025 · Assigned by Google

CVE-2025-59733Heap-buffer-overflow write in FFmpeg EXR dwa_uncompress

High 8.7

In plain English

A high-severity out-of-bounds write in FFmpeg from FFmpeg. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.2%top 92.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

When decoding an OpenEXR file that uses DWAA or DWAB compression, there's an implicit assumption that all image channels have the same pixel type (and size), and that if there are four channels, the first four are "B", "G", "R" and "A". The channel parsing code can be found in decode_header. The buffer td->uncompressed_data is allocated in decode_block based on the xsize, ysize and computed current_channel_offset. The function dwa_uncompress then assumes at [5] that if there are 4 channels, these are "B", "G", "R" and "A", and in the calculations at [6] and [7] that all channels are of the same type, which matches the type of the main color channels. If we set the main color channels to a 4-byte type and add duplicate or unknown channels of the 2-byte EXR_HALF type, then the addition at [7] will increment the pointer by 4-bytes * xsize * nb_channels, which will exceed the allocated buffer. We recommend upgrading to version 8.0 or beyond.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23ffmpeg8.0-r0ALPINE-CVE-2025-59733
Alpine:v3.24ffmpeg8.0-r0ALPINE-CVE-2025-59733
Debian:12ffmpeg7:5.1.7-0+deb12u1DEBIAN-CVE-2025-59733
Debian:12ffmpeg7:5.1.7-0+deb12u1DSA-5985-1
Debian:13ffmpeg7:7.1.2-0+deb13u1DSA-6007-1
Debian:13ffmpeg7:7.1.2-0+deb13u1DEBIAN-CVE-2025-59733
Debian:14ffmpeg7:7.1.2-1DEBIAN-CVE-2025-59733
Ubuntu:25.10ffmpeg7:7.1.1-1ubuntu4.2UBUNTU-CVE-2025-59733

Affected products (as reported)

VendorProductVersions
FFmpeg FFmpeg 9a32b863074ed4140141e0d3613905c6f1fe61c5 – before 8.07.1.1 – before 8.0

Weakness: CWE-787 · Vector: CVSS:4.0/AV:A/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

References