CVE-2025-59730

Source
https://cve.org/CVERecord?id=CVE-2025-59730
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-59730.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-59730
Downstream
Published
2025-10-06T08:09:11.029Z
Modified
2026-07-15T01:48:52.233007065Z
Severity
  • 5.7 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Heap-buffer-overflow write in FFmpeg SANM decoding due to lack of bounds-checking in old_codec48
Details

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.

processframeobj initializes the buffers based on the frame resolution:

We recommend upgrading to version 8.0 or beyond.

Database specific
{
    "cwe_ids": [
        "CWE-787"
    ],
    "cna_assigner": "Google",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59730.json"
}
References

Affected packages

Git / git.ffmpeg.org/ffmpeg.git

Affected ranges

Type
GIT
Repo
https://git.ffmpeg.org/ffmpeg.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "829680f96a7a7ff02d1543895ec0fb713309d5c0"
        },
        {
            "fixed": "8.0"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

Other
N
n0.*
n0.11-dev
n0.12-dev
n0.8
n1.*
n1.1-dev
n1.2-dev
n1.3-dev
n2.*
n2.0
n2.1-dev
n2.2-dev
n2.3-dev
n2.4-dev
n2.5-dev
n2.6-dev
n2.7-dev
n2.8-dev
n2.9-dev
n3.*
n3.1-dev
n3.2-dev
n3.3-dev
n3.4-dev
n3.5-dev
n4.*
n4.1-dev
n4.2-dev
n4.3-dev
n4.4-dev
n4.5-dev
n5.*
n5.1-dev
n5.2-dev
n6.*
n6.1-dev
n6.2-dev
n7.*
n7.1-dev
n7.2-dev

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-59730.json"