FFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in libavcodec/videotoolboxenc.c that copies frames larger than encoder dimensions into undersized CVPixelBuffers. Attackers can supply crafted input whose resolution grows mid-stream, transcoded with VideoToolbox encoders without rescaling, to crash the application or corrupt 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-125212",
"id": "CVE-2026-125212",
"imported": "2026-12-02T20:13:53.419Z",
"modified": "2026-11-30T15:24:26.563Z",
"published": "2026-11-09T19:16:58.100Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-125212"
},
{
"html_url": "https://github.com/advisories/GHSA-pcv3-vw2j-h73r",
"id": "GHSA-pcv3-vw2j-h73r",
"imported": "2026-12-02T20:16:39.843Z",
"modified": "2026-11-09T21:32:05Z",
"published": "2026-11-09T21:31:57Z",
"url": "https://api.github.com/advisories/GHSA-pcv3-vw2j-h73r"
},
{
"affected": {
"FFMPEG:FFmpeg": [
"0 ≤9.0.2"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-120301",
"id": "EUVD-2026-120301",
"imported": "2026-12-02T20:13:54.820Z",
"modified": "2026-11-10T16:04:40Z",
"published": "2026-11-09T19:11:28Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-120301"
}
]
}