CVE-2026-137911
MEDIUM 5.8CVSS 4.0FFmpeg before 9.1 Out-of-Bounds Read via XWD Encoder Scanline Padding
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.
- Published
- 27 Nov 2026
- Last modified
- 3 Dec 2026
- Assigned by
- 1a4f025a-074d-4105-b4e2-52bd8eabe2ea
- NVD status
- Analyzed
- Weakness
- CWE-125
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 1a4f025a-074d-4105-b4e2-52bd8eabe2ea (Secondary) | CVSS 4.0 | MEDIUM 5.8 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | AISLE | CVSS 4.0 | MEDIUM 5.8 | 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 |
| NVD | 1a4f025a-074d-4105-b4e2-52bd8eabe2ea (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H |
| CVE List | AISLE | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ffmpeg | ffmpegcpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:* |
< 9.1 | 9.1 |
| CVE List | FFmpeg | FFmpeg | < 9.1 | 9.1 |
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25690 · Issue Tracking, Patch
- https://github.com/FFmpeg/FFmpeg · Product
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/xwdenc.c#L207 · Patch
- https://github.com/FFmpeg/FFmpeg/commit/f26d201dd87f36e89ab77b5f689765604c9b06bc · Patch
History
- 3 Dec 2026 19:56 UTC · NVD: updated (other details)
- 3 Dec 2026 18:56 UTC · CVE List: updated (other details)
- 27 Nov 2026 18:57 UTC · NVD: status Undergoing Analysis → Analyzed; affected list changed (1 entry)
- 27 Nov 2026 14:57 UTC · NVD: first stored (published 27 Nov 2026)
- 27 Nov 2026 12:39 UTC · CVE List: first stored (published 27 Nov 2026)