CVE-2025-59731 Heap-buffer-overflow write in FFmpeg EXR dwa_uncompress
MediumCVSS 6.9
EPSS 0.18%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 8 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/ffmpeg(Alpine v3.23) | < 8.0-r0 | 8.0-r0 | Fixed |
| alpine/ffmpeg(Alpine v3.24) | < 8.0-r0 | 8.0-r0 | Fixed |
| debian/ffmpeg(Debian 12) | < 7:5.1.7-0+deb12u1; = 7:5.1.3-1; = 7:5.1.3-2; = 7:5.1.4-0+deb12u1 +2 more | 7:5.1.7-0+deb12u1 | Fixed |
| debian/ffmpeg(Debian 13) | < 7:7.1.2-0+deb13u1; = 7:7.1.1-1 | 7:7.1.2-0+deb13u1 | Fixed |
| debian/ffmpeg(Debian 14) | < 7:7.1.2-1; = 7:7.1.1-1 | 7:7.1.2-1 | Fixed |
| ffmpeg/ffmpeg | >= 7.1.1, < 8.0; >= 9a32b863074ed4140141e0d3613905c6f1fe61c5, < 8.0 | 8.0 | Fixed |
| ubuntu/ffmpeg(Ubuntu 22.04) | < 7:4.4.2-0ubuntu0.22.04.1+esm11 | 7:4.4.2-0ubuntu0.22.04.1+esm11 | Fixed |
| ubuntu/ffmpeg(Ubuntu 24.04) | < 7:6.1.1-3ubuntu5+esm7 | 7:6.1.1-3ubuntu5+esm7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/ffmpeg(Debian:12) | < 7:5.1.7-0+deb12u1 | 7:5.1.7-0+deb12u1 |
| debian/ffmpeg(Debian:12) | = 7:5.1.3-1 | No fix listed |
| debian/ffmpeg(Debian:12) | = 7:5.1.3-2 | No fix listed |
| debian/ffmpeg(Debian:12) | = 7:5.1.4-0+deb12u1 | No fix listed |
| debian/ffmpeg(Debian:12) | = 7:5.1.5-0+deb12u1 | No fix listed |
| debian/ffmpeg(Debian:12) | = 7:5.1.6-0+deb12u1 | No fix listed |
| debian/ffmpeg(Debian:13) | < 7:7.1.2-0+deb13u1 | 7:7.1.2-0+deb13u1 |
| debian/ffmpeg(Debian:13) | = 7:7.1.1-1 | No fix listed |
| debian/ffmpeg(Debian:14) | < 7:7.1.2-1 | 7:7.1.2-1 |
| debian/ffmpeg(Debian:14) | = 7:7.1.1-1 | No fix listed |
| ffmpeg/ffmpeg | >= 9a32b863074ed4140141e0d3613905c6f1fe61c5, < 8.0 | 8.0 |
| ffmpeg/ffmpeg | >= 7.1.1, < 8.0 | 8.0 |
| ubuntu/ffmpeg(Ubuntu:22.04) | < 7:4.4.2-0ubuntu0.22.04.1+esm11 | 7:4.4.2-0ubuntu0.22.04.1+esm11 |
| alpine/ffmpeg(Alpine:v3.23) | < 8.0-r0 | 8.0-r0 |
| alpine/ffmpeg(Alpine:v3.24) | < 8.0-r0 | 8.0-r0 |
| ubuntu/ffmpeg(Ubuntu:24.04) | < 7:6.1.1-3ubuntu5+esm7 | 7:6.1.1-3ubuntu5+esm7 |
References
- Debian Security Tracker CVE-2025-59731 vendor-advisory
- issuetracker.google.com
- Ubuntu CVE tracker vendor-advisory
- USN-7982-1 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory