FFmpeg before 9.1 contains an integer overflow vulnerability in the split_planes size check of write_packet() in libavformat/img2enc.c that allows out-of-bounds heap reads. Attackers can supply a crafted input whose rawvideo stream declares very large width and height, remuxed into .y image files, to leak heap memory into output files or crash the application.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"ffmpeg:ffmpeg": [
"< 9.1"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-135712",
"id": "CVE-2026-135712",
"imported": "2026-12-02T20:13:53.555Z",
"modified": "2026-11-25T19:14:18.993Z",
"published": "2026-11-24T04:17:28.343Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-135712"
},
{
"html_url": "https://github.com/advisories/GHSA-rw2g-gjp9-8mpr",
"id": "GHSA-rw2g-gjp9-8mpr",
"imported": "2026-12-02T20:15:11.735Z",
"modified": "2026-11-24T06:30:39Z",
"published": "2026-11-24T06:30:31Z",
"url": "https://api.github.com/advisories/GHSA-rw2g-gjp9-8mpr"
},
{
"affected": {
"FFMPEG:FFmpeg": [
"0 <9.1"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-133637",
"id": "EUVD-2026-133637",
"imported": "2026-12-02T20:13:54.603Z",
"modified": "2026-11-24T16:41:15Z",
"published": "2026-11-24T03:14:04Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-133637"
}
]
}