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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"ffmpeg:ffmpeg": [
"<= 9.0.2"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125257",
"id": "CVE-2026-125257",
"imported": "2026-12-02T20:13:53.531Z",
"modified": "2026-11-30T16:20:47.537Z",
"published": "2026-11-09T20:18:11.930Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-125257"
},
{
"html_url": "https://github.com/advisories/GHSA-76g4-x73x-7v54",
"id": "GHSA-76g4-x73x-7v54",
"imported": "2026-12-02T20:16:29.963Z",
"modified": "2026-11-09T21:32:05Z",
"published": "2026-11-09T21:32:04Z",
"url": "https://api.github.com/advisories/GHSA-76g4-x73x-7v54"
},
{
"affected": {
"FFMPEG:FFmpeg": [
"0 ≤9.0.2"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-120207",
"id": "EUVD-2026-120207",
"imported": "2026-12-02T20:13:54.640Z",
"modified": "2026-11-14T02:11:56Z",
"published": "2026-11-09T19:12:01Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-120207"
}
]
}