CVE-2026-125227 FFmpeg through 9.0.2 Heap Buffer Overflow via cbs_jpeg_write_scan Integer Overflow

High 7.3 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-125227?

CVE-2026-125227 is a high-severity vulnerability in FFmpeg, published on 9 Nov 2026.

Official description

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.

Weakness: CWE-190

Which versions are affected by CVE-2026-125227?

How do I fix CVE-2026-125227?

No fix has been published for CVE-2026-125227 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-125227 being exploited?

There is no known exploitation of CVE-2026-125227 in the wild and no public exploit code.

Sources

Also known as GHSA-f527-xpw9-mvpf, UBUNTU-CVE-2026-125227.

Is CVE-2026-125227 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free