FFmpeg through 9.0.2 contains a use after free vulnerability in libavcodec/mjpegdec.c that allows attackers to trigger freed buffer reads by sending a SOF marker without a preceding SOI. Attackers can supply crafted MJPEG streams causing ff_mjpeg_decode_sof() to pass a stale raw_image_buffer pointer to hwaccel decoders like NVDEC, crashing applications or leaking heap contents.
{
"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-125255",
"id": "CVE-2026-125255",
"imported": "2026-12-02T20:13:53.530Z",
"modified": "2026-11-30T16:21:09.863Z",
"published": "2026-11-09T20:18:11.633Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-125255"
},
{
"html_url": "https://github.com/advisories/GHSA-phr3-qwpx-974c",
"id": "GHSA-phr3-qwpx-974c",
"imported": "2026-12-02T20:16:10.510Z",
"modified": "2026-11-09T21:32:05Z",
"published": "2026-11-09T21:32:04Z",
"url": "https://api.github.com/advisories/GHSA-phr3-qwpx-974c"
},
{
"affected": {
"FFMPEG:FFmpeg": [
"0 ≤9.0.2"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-120205",
"id": "EUVD-2026-120205",
"imported": "2026-12-02T20:13:54.807Z",
"modified": "2026-11-10T19:08:26Z",
"published": "2026-11-09T19:11:59Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-120205"
}
]
}