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
Source GCVE Database
Not known to be exploited · CVSS 5.8 Medium.
Data as of 9 Nov 2026, 22:20 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 5.8 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 5.3 |
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 9 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| FFmpegFFmpeg | Affected
| Fixed in– |
GitHubFFmpegpkg:github/FFmpegOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- nvd.nist.gov/vuln/detail/CVE-2026-125255 (opens in a new tab)
- github.com/FFmpeg/FFmpeg/commit/f58a6776546567367baf5223df9ffbfd289299f8 (opens in a new tab)
- code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25231 (opens in a new tab)
- github.com/FFmpeg/FFmpeg (opens in a new tab)
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/mjpegdec.c (opens in a new tab)
- vulncheck.com/advisories/ffmpeg-through-9.0.2-use-after-free-in-mjpeg-hardware-accelerated-decoding (opens in a new tab)