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

Published Oct 6, 2025
·
Updated

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 rlerawsize from the input file at [0], we decompress and decode into the buffer td->rlerawdata of size rlerawsize at [1], and then at [2] we will access entries in this buffer up to (td->xsize - 1) (td->ysize - 1) + rlerawsize / 2, which may exceed rlerawsize.

We recommend upgrading to version 8.0 or beyond.

Affected Software

4 affected componentsFixes available
FFmpeg FFmpeg<8.0
debian/ffmpeg
7:5.1.9-0+deb12u17:7.1.5-0+deb13u17:9.0.2-4
alpine/ffmpeg<8.0-r0
8.0-r0
alpine/ffmpeg<8.0-r0
8.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:5.1.9-0+deb12u1Fixed in 7:7.1.5-0+deb13u1Fixed in 7:9.0.2-4
  2. Upgrade

    Upgrade alpine/ffmpeg to a version that resolves this vulnerability.

    Fixed in 8.0-r0
  3. Upgrade

    Upgrade FFmpeg to a version that resolves this vulnerability.

    Fixed in 8.0

Event History

Oct 6, 2025
CVE Published
via MITRE·08:09 AM
Data Sourced
via MITRE·08:09 AM
DescriptionWeakness
Data Sourced
via NVD·08:15 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·08:15 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-59731?

CVE-2025-59731 has not been assigned a specific CVSS score, but it represents a significant vulnerability related to the handling of compressed OpenEXR files.

2

How do I fix CVE-2025-59731?

To fix CVE-2025-59731, update FFmpeg to a version later than 8.0 where the vulnerability is resolved.

3

What types of systems are affected by CVE-2025-59731?

CVE-2025-59731 specifically affects FFmpeg versions prior to 8.0 that handle OpenEXR files with DWAA or DWAB compression.

4

What are the potential impacts of CVE-2025-59731?

Exploiting CVE-2025-59731 could lead to buffer overflows, potentially allowing arbitrary code execution.

5

Is there a way to mitigate the risk of CVE-2025-59731 without updating?

While the best mitigation is to update to a secure version of FFmpeg, users should avoid processing untrusted OpenEXR files as a temporary risk reduction measure.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203