Skip to content
OpenAdvisories
Medium · 6.9 CVE-2025-59731 EUVD-2025-32181GHSA-p7r5-qh99-qchm

Heap-buffer-overflow write in FFmpeg EXR dwa_uncompress

Published Oct 6, 2025 · Updated Feb 26, 2026 · Assigned by Google

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 products

VendorProductAffectedFixed
FFmpeg FFmpeg 9a32b863074ed4140141e0d3613905c6f1fe61c5 – < 8.0, 7.1.1 – < 8.0 8.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ffmpeg 7:7.1.2-1 —
Debian 13 ffmpeg 7:7.1.2-0+deb13u1 DSA-6007-1
Debian 12 ffmpeg 7:5.1.7-0+deb12u1 DSA-5985-1
ReleasePackageFixed inAdvisory
Ubuntu 25.10 ffmpeg 7:7.1.1-1ubuntu4.2 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS ffmpeg 7:6.1.1-3ubuntu5+esm7 —
Ubuntu Pro 22.04 LTS ffmpeg 7:4.4.2-0ubuntu0.22.04.1+esm11 —
Ubuntu Pro 14.04 LTS libav No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 ffmpeg 8.0-r0 —
Alpine v3.23 ffmpeg 8.0-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ffmpeg-7 +1 No fix yet —

Advisories 3

References