CVE-2026-125227
FFmpeg through 9.0.2 Heap Buffer Overflow via cbs_jpeg_write_scan Integer Overflow
FFmpeg through 9.0.2 contains an integer overflow in cbs_jpeg_write_scan() in libavcodec/cbs_jpeg.c that causes a heap buffer overflow on 32-bit builds. Attackers can supply a crafted MJPEG/JPEG stream with a scan of 512 MiB or more, processed by CBS bitstream filters like filter_units, to corrupt the heap or crash the application.
Public vulnerability details
- Record state
- Published
- Published (UTC)
- Last updated (UTC)
- Assigned by
- VulnCheck
- CVSS score
- 7.3 (CVSS v4.0, from VulnCheck)
- Severity
- HIGH
- CISA KEV
- No KEV entry in this record. This does not show that the CVE is absent from the KEV catalog.
- Additional data from
- None
FHE assessment
No FHE assessment is available in this application yet. This does not mean FHE cannot mitigate an impact of this CVE.
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25232 (VulnCheck)
- Patch Commit (VulnCheck)
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/cbs_jpeg.c#L299 (VulnCheck)
- https://github.com/FFmpeg/FFmpeg (VulnCheck)
- VulnCheck Advisory: FFmpeg through 9.0.2 Heap Buffer Overflow via cbs_jpeg_write_scan Integer Overflow (VulnCheck)
Source
CVE JSON 5.2 record from the CVE List archive 2026-11-09_delta_CVEs_at_end_of_day.zip, which covers changes through . Imported .