Vulnerability · Published Oct 6, 2025 · Assigned by Google

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

Medium 6.9

In plain English

A medium-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 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.2%top 92.9% 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, the specified raw length of run-length-encoded data is not checked when using it to calculate the output data. We read rle_raw_size from the input file at [0], we decompress and decode into the buffer td->rle_raw_data of size rle_raw_size at [1], and then at [2] we will access entries in this buffer up to (td->xsize - 1) * (td->ysize - 1) + rle_raw_size / 2, which may exceed rle_raw_size. We recommend upgrading to version 8.0 or beyond.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23ffmpeg8.0-r0ALPINE-CVE-2025-59731
Alpine:v3.24ffmpeg8.0-r0ALPINE-CVE-2025-59731
Debian:12ffmpeg7:5.1.7-0+deb12u1DEBIAN-CVE-2025-59731
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-59731
Debian:14ffmpeg7:7.1.2-1DEBIAN-CVE-2025-59731
Ubuntu:25.10ffmpeg7:7.1.1-1ubuntu4.2UBUNTU-CVE-2025-59731

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:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

References