CVE-2025-59730
published medium CVSS 4.0 · 5.7Heap-buffer-overflow write in FFmpeg SANM decoding due to lack of bounds-checking in old_codec48
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| FFmpeg | — | SANMFFmpeg · 829680f96a7a7ff02d1543895ec0fb713309d5c0 to < 8.0 · Other versions: unaffected | Affected | Not stated | |
| Alpine Linux | edge | ffmpeg | Fixed | 8.0-r0 | Package fix record |
| Alpine Linux | v3.23 | ffmpeg | Fixed | 8.0-r0 | Package fix record |
| Alpine Linux | v3.24 | ffmpeg | Fixed | 8.0-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.7 / 10
- Severity
- medium
- Provider
- Google · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| FFmpeg | FFmpeg | 829680f96a7a7ff02d1543895ec0fb713309d5c0 to < 8.0 (affected · custom)Default: unaffected | Google · cna |
Weaknesses
1- CWE-787 CWE-787 Out-of-bounds Write
References
1Provider assertions
2Google · cna
Heap-buffer-overflow write in FFmpeg SANM decoding due to lack of bounds-checking in old_codec48
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e7cab549853a1f37438d14e2d1aeef4320f0d60bf649f45e892ca99ef74615ce
- Ingested
- 23 Sep 2026, 08:54:20 UTC
- Source record
- Official CVE record