FFmpeg before 8.1.3 and 9.x before 9.0.2 contains a heap out-of-bounds write vulnerability in the APAC decoder in libavcodec/apac.c caused by an unreset bitstream index. Attackers can supply a crafted APAC file whose growing bitstream_index triggers an integer overflow, bypassing the reallocation check so memcpy() corrupts heap memory or crashes the application.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"ffmpeg:ffmpeg": [
"< 8.1.3",
">= 9.0, < 9.0.2"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125267",
"id": "CVE-2026-125267",
"imported": "2026-12-02T20:13:53.542Z",
"modified": "2026-11-25T15:07:26.547Z",
"published": "2026-11-09T20:18:13.383Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-125267"
},
{
"html_url": "https://github.com/advisories/GHSA-crxj-w795-w2wj",
"id": "GHSA-crxj-w795-w2wj",
"imported": "2026-12-02T20:15:36.059Z",
"modified": "2026-11-09T21:32:10Z",
"published": "2026-11-09T21:32:07Z",
"url": "https://api.github.com/advisories/GHSA-crxj-w795-w2wj"
},
{
"affected": {
"FFMPEG:FFmpeg": [
"0 <8.1.3",
"9.0 <9.0.2"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-120217",
"id": "EUVD-2026-120217",
"imported": "2026-12-02T20:13:54.810Z",
"modified": "2026-11-10T19:08:08Z",
"published": "2026-11-09T19:12:08Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-120217"
}
]
}