{"id":"CVE-2026-125257","summary":"FFmpeg through 9.0.2 Heap Overflow via Nellymoser Encoder Trellis Search","details":"FFmpeg through 9.0.2 contains an off-by-one heap overflow vulnerability in get_exponent_dynamic() in libavcodec/nellymoserenc.c that allows writing one element past the opt and path allocations. Attackers can supply crafted audio to applications encoding Nellymoser with trellis enabled, causing idx to equal OPT_SIZE and overwrite adjacent heap memory.","modified":"2026-11-15T07:04:24.477309821Z","published":"2026-11-09T19:12:01.153Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-193"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125257.json"},"references":[{"type":"WEB","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125257.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125257"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-overflow-via-nellymoser-encoder-trellis-search"},{"type":"REPORT","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24471"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/733bec3e19759520ccdbeb6c3c0cae280bbe6dc5"},{"type":"PACKAGE","url":"https://github.com/FFmpeg/FFmpeg"},{"type":"ARTICLE","url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/nellymoserenc.c#L262"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"733bec3e19759520ccdbeb6c3c0cae280bbe6dc5"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"9.0.2"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"733bec3e19759520ccdbeb6c3c0cae280bbe6dc5"}]}]}}],"versions":["n9.1-dev","n8.2-dev","n8.1-dev","n7.2-dev","n7.1-dev","n6.2-dev","n6.1-dev","n5.2-dev","n5.1-dev","n4.5-dev","n4.4-dev","n4.3-dev","n4.2-dev","n4.1-dev","n3.5-dev","n3.4-dev","n3.3-dev","n3.2-dev","n3.1-dev","n2.9-dev","n2.8-dev","n2.7-dev","n2.6-dev","n2.5-dev","n2.4-dev","n2.3-dev","n2.2-dev","n2.0","n2.1-dev","n1.3-dev","n1.2-dev","n1.1-dev","n0.12-dev","n0.11-dev","n0.8","N"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-125257.json","vanir_signatures":[{"digest":{"function_hash":"181213656495500437351632610692730924617","length":1623},"id":"CVE-2026-125257-e78b8a5b","signature_type":"Function","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/733bec3e19759520ccdbeb6c3c0cae280bbe6dc5","target":{"file":"libavcodec/nellymoserenc.c","function":"get_exponent_dynamic"},"deprecated":false},{"source":"https://github.com/ffmpeg/ffmpeg/commit/733bec3e19759520ccdbeb6c3c0cae280bbe6dc5","target":{"file":"libavcodec/nellymoserenc.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["214793543211379481572015133267643769254","58975793168024133933193546156084065482","289541727983756403689140302398935693411","284322096200253312691672136155806610152"]},"id":"CVE-2026-125257-ffb4e279","signature_type":"Line","signature_version":"v1"}],"vanir_signatures_modified":"2026-11-15T07:04:24Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}