# CVE-2025-59731: Heap-buffer-overflow write in FFmpeg EXR dwa\_uncompress

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, adjacent network); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-10-06 · Modified: 2026-02-26
- Aliases: UBUNTU-CVE-2025-59731, DEBIAN-CVE-2025-59731, CGA-3j2g-qmp2-qgvf, CGA-rrxc-q4x7-3v3p, CGA-vjrp-rmq3-p4x4, CGA-xm5m-9v6j-vjv3, CGA-4mvg-8r78-xp7p, CGA-4v4j-mwxv-r9c8, CGA-6cp3-866v-pppp, CGA-7g9p-9h3x-6fq5, CGA-7x27-frcg-c7j5, CGA-jcw4-jvm5-9c9w, CGA-3qxx-p2x7-r7jv, CGA-49jx-h33r-rrxj, CGA-whmr-gvxm-6r97, CGA-8wqx-vvp9-wjgf, CGA-f3x8-xrfv-jw22, CGA-grfx-h98v-mc4m, CGA-h54j-cf4q-mjrc, CGA-hj35-j6g3-3q3w, CGA-3582-crfq-28mj, CGA-53px-c6qh-47v3, CGA-94x9-p78j-w2vv, CGA-c54c-qf6w-m4xj, CGA-h6g4-5w3v-5crp, CGA-j2fx-xv52-2cg8, CGA-j3pc-97w6-69j2, CGA-jrh5-rq4v-rg9r, CGA-mj48-996h-h64r, CGA-qmcc-mc3v-6pm8, CGA-7j9q-w294-5h55, CGA-g63j-v8mj-59w6, CGA-gf38-g85v-qv6p, CGA-vrq5-jmh8-pgqr, ALPINE-CVE-2025-59731
- Record: https://cvemate.com/vulnerability/CVE-2025-59731 · JSON: https://cvemate.com/vulnerability/CVE-2025-59731/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.175%, percentile 7.338%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 23)

- alpine ffmpeg (Alpine Linux): \< 8.0-r0
- chainguard eco-python-ffmpeg-7-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1 (Chainguard): All versions (No fix recorded) \| \< 7.1.2-r0
- chainguard ffmpeg-fips-7.1-dev (Chainguard): All versions (No fix recorded) \| \< 7.1.2-r0
- chainguard ffmpeg-fips-7.1-libavcodec61 (Chainguard): All versions (No fix recorded) \| \< 7.1.2-r0
- chainguard ffmpeg-fips-7.1-libavdevice61 (Chainguard): All versions (No fix recorded) \| \< 7.1.2-r0
- chainguard ffmpeg-fips-7.1-libavfilter10 (Chainguard): All versions (No fix recorded) \| \< 7.1.2-r0
- chainguard ffmpeg-fips-7.1-libavformat61 (Chainguard): All versions (No fix recorded) \| \< 7.1.2-r0
- chainguard ffmpeg-fips-7.1-libavutil59 (Chainguard): All versions (No fix recorded) \| \< 7.1.2-r0
- chainguard ffmpeg-fips-7.1-libpostproc58 (Chainguard): All versions (No fix recorded) \| \< 7.1.2-r0
- chainguard ffmpeg-fips-7.1-libswresample5 (Chainguard): All versions (No fix recorded) \| \< 7.1.2-r0
- chainguard ffmpeg-fips-7.1-libswscale8 (Chainguard): All versions (No fix recorded) \| \< 7.1.2-r0
- chainguard ffmpeg-fips-7.1-static (Chainguard): All versions (No fix recorded) \| \< 7.1.2-r0
- wolfi ffmpeg-7 (Wolfi): All versions (No fix recorded)
- wolfi ffmpeg-7.1 (Wolfi): All versions (No fix recorded)
- debian ffmpeg (Debian): \< 7:5.1.7-0+deb12u1 \| \< 7:7.1.2-0+deb13u1 \| \< 7:7.1.2-1

## References

- <https://issuetracker.google.com/436510153>
- <https://ubuntu.com/security/CVE-2025-59731>
- <https://www.cve.org/CVERecord?id=CVE-2025-59731>
- <https://issuetracker.google.com/issues/436510153>
- <https://ubuntu.com/security/notices/USN-7982-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-59731>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59731.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59731>
- <https://git.ffmpeg.org/ffmpeg.git>
- <https://security.alpinelinux.org/vuln/CVE-2025-59731>

---

Data as of 2026-12-05T06:45:32.342Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
