cve.bz

CVE-2025-59731 ffmpeg ffmpeg: Out-of-bounds Write

6.9 mediumEPSS 0.2%

Medium (6.9) in ffmpeg ffmpeg. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

6.9 medium
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.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 7th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-59731 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-59731?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-59731?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-59731 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
FFmpegfrom 9a32b863074ed4140141e0d3613905c6f1fe61c5 before 8.0
FFmpegfrom 7.1.1 before 8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12ffmpeg7:5.1.7-0+deb12u1DEBIAN-CVE-2025-59731 DSA-5985-1
Debian13ffmpeg7:7.1.2-0+deb13u1DEBIAN-CVE-2025-59731 DSA-6007-1
Debian14ffmpeg7:7.1.2-1DEBIAN-CVE-2025-59731
Ubuntu25.10ffmpeg7:7.1.1-1ubuntu4.2UBUNTU-CVE-2025-59731
UbuntuPro:14.04:LTSlibavno fix listedUBUNTU-CVE-2025-59731
UbuntuPro:22.04:LTSffmpeg7:4.4.2-0ubuntu0.22.04.1+esm11UBUNTU-CVE-2025-59731
UbuntuPro:24.04:LTSffmpeg7:6.1.1-3ubuntu5+esm7UBUNTU-CVE-2025-59731
Alpinev3.23, v3.24ffmpeg8.0-r0ALPINE-CVE-2025-59731

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate severity heap-buffer-overflow in FFmpeg's OpenEXR DWAA/DWAB decompression could lead to a denial of service. The flaw requires an attacker on an adjacent network and can be triggered without user interaction when processing a specially crafted OpenEXR file.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-59731.

References

Check your stackJSON