Back to CVE records
Medium 5.7Published Oct 6, 2025

CVE-2025-59730Heap-buffer-overflow write in FFmpeg SANM decoding due to lack of bounds-checking in old_codec48

Updated under an hour ago ()

Does this affect you?

It affects FFmpeg. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

When decoding a frame for a SANM file (ANIM v0 variant), the decoded data can be larger than the buffer allocated for it. Frames encoded with codec 48 can specify their resolution (width x height). A buffer of appropriate size is allocated depending on the resolution. This codec can encode the frame contents using a run-length encoding algorithm. There are no checks that the decoded frame fits in the allocated buffer, leading to a heap-buffer-overflow. process_frame_obj initializes the buffers based on the frame resolution: We recommend upgrading to version 8.0 or beyond.

CVSS
5.7 MEDIUM (v4.0, CNA)CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N
Weakness (CWE)
CWE-787
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Google
NVD analysis
Deferred
Record last updated
Oct 6, 2025
First seen by InfoSec Signals
Oct 19, 2026

Affected products

Affected products
FFmpeg FFmpeg
ffmpeg:ffmpeg (from the name)
829680f96a7a7ff02d1543895ec0fb713309d5c0 builds before 8.0
CNA record

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.