{"id":"CVE-2026-125255","aliases":["CVE-2026-125255"],"related":[],"kind":"vulnerability","state":"published","title":"FFmpeg through 9.0.2 Use-After-Free in MJPEG Hardware-Accelerated Decoding","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-09T19:11:59.708Z","modified":"2026-11-30T16:21:09.863Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N","score":5.8,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"9.0.2","status":"affected"}],"vendor":"FFmpeg","product":"FFmpeg","repo":"https://code.ffmpeg.org/FFmpeg/FFmpeg","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"9.0.2"}],"vendor":"ffmpeg","product":"ffmpeg","cpe":"cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25231","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FFmpeg/FFmpeg/commit/f58a6776546567367baf5223df9ffbfd289299f8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/mjpegdec.c#L831","tags":["patch","technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FFmpeg/FFmpeg","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-use-after-free-in-mjpeg-hardware-accelerated-decoding","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Joshua Rogers (AISLE Research)","Michael Niedermayer"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-10T18:18:21.225Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-125255","url":"https://www.cve.org/CVERecord?id=CVE-2026-125255","licence":"CVE Terms of Use","modified":"2026-11-10T19:08:26.602Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-125255","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125255","licence":"Public domain","modified":"2026-11-30T16:21:09.863Z"}],"updatedAt":"2026-11-30T16:32:47.185Z","epss":{"score":0.00149,"percentile":0.0426,"date":"2026-12-01T12:00:22.000Z"}}