# CVE-2026-137911: FFmpeg before 9.1 Out-of-Bounds Read via XWD Encoder Scanline Padding

- Priority: **Routine**
- Reason: Not severe (CVSS 5.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-27 · Modified: 2026-12-03
- Aliases: DEBIAN-CVE-2026-137911, CGA-8cg7-f274-f572, CGA-9q3q-q986-qwpg, CGA-c9xf-3hcm-x3x8, CGA-f5cp-xqhf-9gfj, CGA-gjqc-pqqx-xx38, CGA-gv9f-fr6h-rg62, CGA-xvm7-4v68-chm6, CGA-2844-3m72-4fwx, CGA-29v8-9cv8-9pcf, CGA-2p63-2x57-ph2m, CGA-329q-cf3r-xhq7, CGA-32c7-3jg3-x77p, CGA-3c4h-69wj-2r87, CGA-3gqg-vg7m-mv46, CGA-3hx3-jvqp-g7v4, CGA-3j7p-9qcf-7mj7, CGA-47c4-gwxm-r489, CGA-495j-w25f-47v4, CGA-4grv-5xpq-679h, CGA-4qfm-j7jw-5q82, CGA-54vf-pjf6-3c9v, CGA-58q2-g78w-6wcc, CGA-63pp-63ww-xwjc, CGA-65h2-cjf3-348p, CGA-6jq4-484m-96w7, CGA-6jr7-gjpr-4vr2, CGA-6rpj-779r-wjhc, CGA-72wv-vmxf-r9pm, CGA-75gg-j29v-h3v2, CGA-78xv-qxr6-g35r, CGA-7cgr-xm46-xxjq, CGA-7cw2-j64q-rfvw, CGA-7mr3-7ppg-w8vp, CGA-7q3w-fp3g-9f3p, CGA-7vv8-c9j7-84v3, CGA-7xmr-qwpp-258v, CGA-844f-7g3f-h2h5, CGA-92wm-xh3v-f554, CGA-9gvw-gjwm-325x, CGA-c6j2-crh4-mpqg, CGA-cgjg-w98w-x432, CGA-cm4r-h233-mr49, CGA-cq69-m477-cmrf, CGA-cv2v-3chg-5ph9, CGA-cvgx-mw27-xpm7, CGA-f78f-2667-9pf7, CGA-f8ww-rvq9-vfwv, CGA-fcr6-q8rq-2m6r, CGA-fm29-3xmr-7952, CGA-fmqw-7phv-7wq6, CGA-fqv9-878x-646h, CGA-fv64-749h-wj5j, CGA-fv72-r3mm-qvf4, CGA-fv7m-j6c8-wg7g, CGA-fwq7-9w3c-x6qp, CGA-fxwv-9h2w-2hj8, CGA-g3r2-qjm7-8gqx, CGA-g5gh-jf5f-2r43, CGA-g6m5-pgm8-hgwr, CGA-g75w-9gq3-v4cg, CGA-g9fv-76wh-fg72, CGA-gg2r-2566-9x55, CGA-gg3v-c62x-hhrg, CGA-gp9w-f95p-p4gg, CGA-grxf-3grq-65cq, CGA-gw5p-69qr-f78j, CGA-hj2w-7v7h-53cp, CGA-hmr3-8g5c-c4hw, CGA-hwr3-qmrm-6q3j, CGA-jhf2-3vcp-283m, CGA-jhg6-5393-fwxc, CGA-jqc7-cgfw-xm8h, CGA-m3q9-r2v9-2g47, CGA-mfq3-9qv6-cx6f, CGA-mm2f-h297-r89r, CGA-mp26-4fp5-xwv4, CGA-mqch-wmvp-mj3w, CGA-p85w-c83p-pr69, CGA-p9x7-25pg-v86p, CGA-pc8v-4585-35cw, CGA-pppq-vchj-g3h8, CGA-prcj-c9qp-cqfg, CGA-r763-qvxx-c9r3, CGA-rcvq-f48v-769p, CGA-rgg2-4v54-grfc, CGA-rhgj-hq5v-9v3j, CGA-rpq8-gq3c-m8jr, CGA-v6r7-mv5m-63c9, CGA-vppx-285g-6pj8, CGA-vvq3-mx6x-vrq5, CGA-vvx4-8cr4-c94f, CGA-wg3f-937w-p7ph, CGA-wmhh-w636-2gr8, CGA-x64c-24pq-h924, CGA-xf9x-9fhc-gwxx, CGA-xq4c-j4qq-wx47, CGA-3p3m-wgff-hjfv, CGA-44xp-4fxh-v4p3, CGA-2j75-7r56-598p, CGA-36cg-gpr9-r6jr, CGA-384v-mfxh-f742, CGA-3hrj-p2w3-2p4r, CGA-3mjf-774x-wjcr, CGA-44h3-jj78-4238, CGA-4xjh-cwq2-mhw7, CGA-5gfv-p8xp-7wq2, CGA-66gq-7rff-249g, CGA-6p6q-9fh8-jwg8, CGA-85fx-98g7-5w6r, CGA-8hgv-x483-g5xg, CGA-f9g9-f38p-5hmm, CGA-g997-83f6-7mvx, CGA-g9qq-6pg8-9w8q, CGA-gwcg-9m6c-w5hq, CGA-hgmr-32x8-w95q, CGA-hxfq-4q4g-fvhm, CGA-jfpc-ch7h-wmvw, CGA-jggg-3r8q-44g8, CGA-mf5c-2vj9-vg83, CGA-p923-2v6q-m275, CGA-r75r-4x6f-m8v7, CGA-vcvh-4474-wxr8, CGA-vmw6-w2mx-p8jx, CGA-wwwp-2qmp-4fhq, CGA-58pw-725x-3ggw, CGA-5pp2-m33w-gqwg, CGA-6g65-69j6-m43f, CGA-w86w-h8rc-hjjv, CGA-w9f2-gr8v-fphw, UBUNTU-CVE-2026-137911, CGA-r7fg-hxww-p7fc, ALPINE-CVE-2026-137911
- Record: https://cvemate.com/vulnerability/CVE-2026-137911 · JSON: https://cvemate.com/vulnerability/CVE-2026-137911/json

## Description

```text
FFmpeg before 9.1 contains an out-of-bounds read vulnerability in xwd_encode_frame() in libavcodec/xwdenc.c that copies each RGB24 or BGR24 row using the padded XWD scanline size instead of the pixel row size. Attackers who control the width of video encoded to XWD by an application that supplies tightly packed frames can make the encoder read past the frame buffer, crashing the application or leaking heap contents into the output image.
```

## Signals

- CVSS: 5.8 medium (v4.0, CVE.org) CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.195%, percentile 9.686%, 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 78)

- 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)
- 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/f26d201dd87f36e89ab77b5f689765604c9b06bc>
- <https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/xwdenc.c#L207>
- <https://github.com/FFmpeg/FFmpeg>
- <https://security-tracker.debian.org/tracker/CVE-2026-137911>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137911.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-137911>
- <https://ubuntu.com/security/CVE-2026-137911>
- <https://www.cve.org/CVERecord?id=CVE-2026-137911>
- <https://github.com/FFmpeg/FFmpeg/commit/29c95e5bebe3e8e994d8acb261d3e699599cac2c>
- <https://security.alpinelinux.org/vuln/CVE-2026-137911>

---

Data as of 2026-12-05T07:47:24.506Z. 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
