# CVE-2026-125261: FFmpeg through 9.0.2 SGI Encoder Out-of-Bounds Read via sgienc.c

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-09 · Modified: 2026-11-14
- Aliases: UBUNTU-CVE-2026-125261, DEBIAN-CVE-2026-125261, CGA-3frr-gxpp-8r7h, CGA-4245-xvm5-2g46, CGA-645q-hcwj-vjxx, CGA-7pxp-p4rc-c7hp, CGA-8fx4-8p3h-5wm7, CGA-98r5-9vcg-946q, CGA-c442-qjpr-w2mg, CGA-cr67-mw9q-6h29, CGA-g2f2-339h-6mrc, CGA-gm3h-75p9-q27r, CGA-hphw-rpmm-73g2, CGA-hwqv-m3c7-6xmx, CGA-m89x-xc6q-p733, CGA-mp45-57w7-7f3g, CGA-p5q2-8xj4-xwpv, CGA-q3w6-6gp6-hw75, CGA-v227-ggh7-jwfj, CGA-w2m4-8m35-xxmp, CGA-x2f8-pq7h-p837, CGA-2vpv-49hm-6jh9, CGA-3xv8-92vq-6w82, CGA-8rqp-6jjj-776c, CGA-8w9j-p23h-c4pf, CGA-c4cf-6r2v-77r5, CGA-cp6f-mqgj-5w23, CGA-g925-w88r-vrvr, CGA-jgrx-fpcm-hqqr, CGA-w2cg-jxpw-2qjq, CGA-xpf3-rg23-r4hx, CGA-42fq-f76g-g4xh, CGA-477p-34f7-rc27, CGA-4chh-866g-w66q, CGA-53vw-8j9p-8974, CGA-56q8-qf7m-hchw, CGA-583f-vfxq-96x3, CGA-5gwc-xv3m-j66f, CGA-5mgw-6756-vgfp, CGA-5qh3-gmmq-xf48, CGA-5w6q-mh9w-9m8m, CGA-6cfc-m5h2-c8fp, CGA-6qp7-x52p-9xwq, CGA-6qvx-3726-6f7q, CGA-6v6v-m75x-vcmg, CGA-7wp8-g9qm-fhp5, CGA-7xr8-c6m2-cc87, CGA-846r-x654-v37m, CGA-8c2r-j4gh-8476, CGA-8cgx-g38v-66gq, CGA-8gjw-hjcj-95qj, CGA-8x2x-7jc9-fm37, CGA-93q8-33v9-wwm8, CGA-94wx-8p98-vqj4, CGA-952c-rcrh-4ccc, CGA-985r-957m-585w, CGA-98jp-44vw-fgw4, CGA-9c7v-vhvx-pc8v, CGA-9q39-h966-q345, CGA-9rwc-xf5v-3m4q, CGA-c5vw-c3qj-4pq9, CGA-c99j-8xp9-pg24, CGA-cw22-7g7p-j96r, CGA-cw9v-2j29-247f, CGA-fc5c-r7fx-cjjv, CGA-fc65-wr6m-6pc2, CGA-fff4-5vmf-9vq3, CGA-fqg4-9p83-mf2v, CGA-g2wx-3r7r-vqp8, CGA-g322-3572-rjrq, CGA-g737-393v-p37c, CGA-gq37-65vm-rj47, CGA-gv2p-6pf4-cqvq, CGA-h324-93qf-787j, CGA-h79f-4wj4-5wff, CGA-h99h-qfc2-776c, CGA-hfjh-wj4v-7rr8, CGA-hq35-mfj6-67ph, CGA-hx43-w7g6-4x4w, CGA-hxhj-559r-63mr, CGA-j24h-7xvq-w82c, CGA-j46m-fw6j-wmv2, CGA-jcqq-q3v4-m42c, CGA-jg2g-fvxw-qf6g, CGA-jgf4-c4vh-8rh8, CGA-p9pw-vxqq-2jh8, CGA-w5x3-32p6-pf7f, CGA-jw8x-775j-r2wp, CGA-jwxc-58pv-f9fx, CGA-m2hj-9x7p-4w73, CGA-m73x-8678-gcqx, CGA-m7mx-34qj-877v, CGA-p65c-59x2-mv7f, CGA-pg66-rhh9-fpx6, CGA-pgrh-3h45-2mc2, CGA-pjcr-mwqj-95r3, CGA-pvx3-w3wf-3cpj, CGA-q89w-4856-8gx4, CGA-q938-r6hp-mxjw, CGA-qjmp-x7h6-jqm7, CGA-qrxp-9mc2-25fh, CGA-qvcx-78rw-rxvx, CGA-qw7v-f743-mm62, CGA-r44r-98cr-mwvr, CGA-r4r3-vvxc-5686, CGA-r835-cffx-wm6x, CGA-rh89-9w4w-gwxw, CGA-rv35-q9vp-qxw7, CGA-rxr9-2g8m-6rxr, CGA-v3h5-w657-4gfq, CGA-vg33-3rcm-w6ff, CGA-vv49-pp2x-r5rf, CGA-vvqv-pjjp-683j, CGA-wcxg-4rc8-qpxx, CGA-whh5-74w2-39j5, CGA-whjm-762h-qvr4, CGA-x2m5-9pj8-752v, CGA-x9xx-4xc5-7x5p, CGA-xqgx-m63v-92xr, CGA-7vqq-3vhv-mpmv, CGA-676h-gf4g-mp32, CGA-79xc-6j42-5vm8, CGA-833x-53cr-c9q9, CGA-89p7-rwmj-rwj6, CGA-9fgx-c2xm-frcq, CGA-f7jv-cv42-99rq, CGA-fx93-45x5-2g4c, CGA-h66q-rfm4-f7rv, CGA-hg5x-xqr2-3w46, CGA-jg9x-47hh-43cw, CGA-pprm-5732-p895, CGA-rf8r-vj2c-8m49, CGA-vgqf-7pwc-c4fv, CGA-w996-28c5-mv5p, CGA-32fj-jcj9-j75v, CGA-22g7-r78x-cqh9, CGA-3rrr-x5h5-9g67, CGA-3fhm-66qh-gmx9, ALPINE-CVE-2026-125261
- Record: https://cvemate.com/vulnerability/CVE-2026-125261 · JSON: https://cvemate.com/vulnerability/CVE-2026-125261/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.159%, percentile 5.221%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 77)

- alpine ffmpeg (Alpine Linux): \< 8.1.4-r0
- chainguard eco-python-ffmpeg-6-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-8-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-8-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-8-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-6 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-8.0 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-8.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-9.0 (Chainguard): All versions (No fix recorded) \| \< 9.0.3-r0
- chainguard ffmpeg-cuda-fips-8.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-cuda-fips-8.1-dev (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-cuda-fips-8.1-doc (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-cuda-fips-8.1-static (Chainguard): All versions (No fix recorded)

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25690>
- <https://github.com/FFmpeg/FFmpeg/commit/c6e5b6105aa13f6b0df2a646da608078cfe52d79>
- <https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/sgienc.c#L208>
- <https://github.com/FFmpeg/FFmpeg>
- <https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-sgi-encoder-out-of-bounds-read-via-sgienc-c>
- <https://ubuntu.com/security/CVE-2026-125261>
- <https://www.cve.org/CVERecord?id=CVE-2026-125261>
- <https://security-tracker.debian.org/tracker/CVE-2026-125261>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125261.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-125261>
- <https://security.alpinelinux.org/vuln/CVE-2026-125261>

---

Data as of 2026-12-05T13:09:37.570Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
