CVE-2026-125261
FFmpeg through 9.0.2 contains an out-of-bounds read vulnerability …
FFmpeg through 9.0.2 contains an out-of-bounds read vulnerability in the SGI encoder's encode_frame() in libavcodec/sgienc.c, where unsigned size variables mis-handle negative linesize frames. Attackers can supply a video whose display matrix triggers autorotate vflip, so transcoding to SGI images reads pixel data far outside the frame and crashes the process.
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/25690
- github.com/FFmpeg/FFmpeg
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/sgienc.c#L208
- github.com/FFmpeg/FFmpeg/commit/c6e5b6105aa13f6b0df2a646da608078cfe52d79
- www.vulncheck.com/advisories/ffmpeg-through-9.0.2-sgi-encoder-out-of-bounds-read-via-sgien
- nvd.nist.gov/vuln/detail/CVE-2026-125261
- cve.org/CVERecord?id=CVE-2026-125261
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.