CVE-2026-125227
FFmpeg through 9.0.2 contains an integer overflow in …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25232
- github.com/FFmpeg/FFmpeg
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/cbs_jpeg.c#L299
- github.com/FFmpeg/FFmpeg/commit/b89ce54d93bf644433dfa9fbc34f19c22237691a
- www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-cbs-jpeg-write-
- nvd.nist.gov/vuln/detail/CVE-2026-125227
- cve.org/CVERecord?id=CVE-2026-125227
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.