FFmpeg through 9.0.2 contains an integer overflow in cbs_jpeg_write_scan() in libavcodec/cbs_jpeg.c that causes a heap buffer overflow on 32-bit builds. Attackers can supply a crafted MJPEG/JPEG stream with a scan of 512 MiB or more, processed by CBS bitstream filters like filter_units, to corrupt the heap or crash the application.
{
"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-125227",
"id": "CVE-2026-125227",
"imported": "2026-12-02T20:13:53.434Z",
"modified": "2026-11-30T15:49:12.087Z",
"published": "2026-11-09T19:17:00.397Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-125227"
},
{
"html_url": "https://github.com/advisories/GHSA-f527-xpw9-mvpf",
"id": "GHSA-f527-xpw9-mvpf",
"imported": "2026-12-02T20:14:50.972Z",
"modified": "2026-11-09T21:32:05Z",
"published": "2026-11-09T21:31:59Z",
"url": "https://api.github.com/advisories/GHSA-f527-xpw9-mvpf"
},
{
"affected": {
"FFMPEG:FFmpeg": [
"0 ≤9.0.2"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-120177",
"id": "EUVD-2026-120177",
"imported": "2026-12-02T20:13:54.799Z",
"modified": "2026-11-10T19:09:16Z",
"published": "2026-11-09T19:11:40Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-120177"
}
]
}