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

- Severity: Medium 5.7 (CVSS:4.0, scored by Google) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-06T08:09:11.029Z
- Modified: 2026-10-19T16:10:00.260Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Google

## Description

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.

(As written by CVE List.)

## Affected

- SANM: from 829680f96a7a7ff02d1543895ec0fb713309d5c0 before 8.0

## References

- <https://issuetracker.google.com/434637586>

## Sources

- CVE List: [CVE-2025-59730](https://www.cve.org/CVERecord?id=CVE-2025-59730), CVE Terms of Use, modified 2025-10-06
- NVD: [CVE-2025-59730](https://nvd.nist.gov/vuln/detail/CVE-2025-59730), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-59730 · Whole record: https://cve.day/CVE-2025-59730.json · Rebuilt by cve.day 2026-11-25T22:59:05.558Z
