CVE-2026-52859 json
Vim: Out-of-bounds Read in Terminal Screen Snapshot
published 5mo ago modified 4mo ago also EUVD-2026-36283
- cvss
- 8.2
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 23%
- public exploits
- 0
- none known
Summary
Vim is an open source, command line text editor. Prior to version 9.2.0565, the update_snapshot() function in src/terminal.c copies the visible terminal screen into the scrollback buffer when a snapshot is taken. For each screen cell it walks the cell's chars[] array with no upper bound, stopping only when it encounters a NUL terminator. When a cell legitimately fills all VTERM_MAX_CHARS_PER_CELL (6) slots — a base character plus five combining marks — the bundled libvterm returns the array without a terminating NUL, so the loop reads past the fixed six-element array and appends the out-of-bounds values to a buffer reserved for only six characters. A program whose output is rendered inside a :terminal window can trigger this with a short byte sequence and no Vim scripting, leading to a crash. This issue has been patched in version 9.2.0565.
Patch / fix
- vim vim 9.2.0565
- vim Debian 13 2:9.1.1230-2+deb13u1
- vim Debian 14 2:9.2.0782-1
debian advisories DEBIAN-CVE-2026-52859
- vim Ubuntu 22.04 LTS 2:8.2.3995-1ubuntu2.32
- vim Ubuntu 24.04 LTS 2:9.1.0016-1ubuntu7.16
- vim Ubuntu 25.10 2:9.1.0967-1ubuntu6.7
- vim Ubuntu 26.04 LTS 2:9.1.2141-1ubuntu4.5
- vim Ubuntu Pro 18.04 LTS 2:8.0.1453-1ubuntu1.13+esm20
- vim Ubuntu Pro 20.04 LTS 2:8.1.2269-1ubuntu5.32+esm8
ubuntu advisories UBUNTU-CVE-2026-52859
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- vim hummingbird 1 9.2.967-1.1.hum1
- xxd hummingbird 1 9.2.967-1.1.hum1
- vim-X11 hummingbird 1 9.2.967-1.1.hum1
- vim-data hummingbird 1 9.2.967-1.1.hum1
- vim-common hummingbird 1 9.2.967-1.1.hum1
- vim-minimal hummingbird 1 9.2.967-1.1.hum1
- vim-enhanced hummingbird 1 9.2.967-1.1.hum1
- vim-filesystem hummingbird 1 9.2.967-1.1.hum1
red hat advisories RHSA-2026:57614RHSA-2026:66366RHSA-2026:66348RHSA-2026:66336
- xxd AlmaLinux 10 2:9.1.083-9.el10_2.20
- vim-X11 AlmaLinux 10 2:9.1.083-9.el10_2.20
- vim-data AlmaLinux 10 2:9.1.083-9.el10_2.20
- vim-common AlmaLinux 10 2:9.1.083-9.el10_2.20
- vim-minimal AlmaLinux 10 2:9.1.083-9.el10_2.20
- vim-enhanced AlmaLinux 10 2:9.1.083-9.el10_2.20
- vim-filesystem AlmaLinux 10 2:9.1.083-9.el10_2.20
- vim-X11 AlmaLinux 8 2:8.0.1763-31.el8_10.7
almalinux advisories ALSA-2026:66336ALSA-2026:66348ALSA-2026:66366
- vim Rocky Linux 10 2:9.1.083-9.el10_2.20
- vim Rocky Linux 9 2:8.2.2637-26.el9_8.21
- vim Rocky Linux 8 2:8.0.1763-31.el8_10.7
rocky linux advisories RLSA-2026:66336RLSA-2026:66366RLSA-2026:66348
- vim Alpine 3.24, Alpine 3.23 9.2.0567-r0
alpine advisories ALPINE-CVE-2026-52859
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2026-52859 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-52859 updated cvss 5.0
vim: Vim: Denial of Service via out-of-bounds write in terminal handling
-
Red Hat Enterprise Linux 6 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystem Red Hat Enterprise Linux 7 vim, vim-X11, vim-common, vim-minimal, vim-enhanced, vim-filesystemaffected: workaround, no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9 Red Hat OpenShift Container Platform 5 openshift/ose-rhel-coreos-9affected: workaround, no fix available “Fix deferred”
-
Red Hat Enterprise Linux AppStream (v. 8) vim-X11 8.0.1763-31.el8_10.7, vim-enhanced 8.0.1763-31.el8_10.7fixed: vendor fix RHSA-2026:66348
-
Red Hat Enterprise Linux AppStream (v. 9) vim-X11 8.2.2637-26.el9_8.21, vim-enhanced 8.2.2637-26.el9_8.21fixed: vendor fix RHSA-2026:66366
-
Red Hat Enterprise Linux AppStream (v. 10) vim-X11 9.1.083-9.el10_2.20, vim-enhanced 9.1.083-9.el10_2.20fixed: vendor fix RHSA-2026:66336
-
Red Hat Enterprise Linux BaseOS (v. 8) vim 8.0.1763-31.el8_10.7fixed: vendor fix RHSA-2026:66348
-
Red Hat Enterprise Linux BaseOS (v. 9) vim 8.2.2637-26.el9_8.21fixed: vendor fix RHSA-2026:66366
-
Red Hat Enterprise Linux BaseOS (v. 10) vim 9.1.083-9.el10_2.20fixed: vendor fix RHSA-2026:66336
show 3 moreshow fewer
-
Red Hat Hardened Images vim 9.2.967-1.1.hum1, xxd 9.2.967-1.1.hum1, vim-X11 9.2.967-1.1.hum1, vim-data 9.2.967-1.1.hum1, vim-common 9.2.967-1.1.hum1, vim-minimal 9.2.967-1.1.hum1, +3 morefixed: vendor fix RHSA-2026:57614
-
Red Hat Update Infrastructure 5 rhui5/cds-rhel9 1789479900, rhui5/rhua-rhel9 1790242004, rhui5/haproxy-rhel9 1789479891, rhui5/installer-rhel9 1789482961, rhui5/cds-kubernetes-rhel9 1789479916fixed: vendor fix RHSA-2026:67956
-
Red Hat Enterprise Linux AppStream (v. 8) vim-common 8.0.1763-31.el8_10.7, vim-filesystem 8.0.1763-31.el8_10.7 Red Hat Enterprise Linux AppStream (v. 9) vim-common 8.2.2637-26.el9_8.21 Red Hat Enterprise Linux AppStream (v. 10) xxd 9.1.083-9.el10_2.20, vim-common 9.1.083-9.el10_2.20 Red Hat Enterprise Linux BaseOS (v. 8) vim-minimal 8.0.1763-31.el8_10.7 Red Hat Enterprise Linux BaseOS (v. 9) vim-minimal 8.2.2637-26.el9_8.21, vim-filesystem 8.2.2637-26.el9_8.21 Red Hat Enterprise Linux BaseOS (v. 10) vim-data 9.1.083-9.el10_2.20, vim-minimal 9.1.083-9.el10_2.20, vim-filesystem 9.1.083-9.el10_2.20not affected: vulnerable code not present
+1 more productsfewer
Red Hat Update Infrastructure 5 rhui5/cds-rhel9 1790241954, rhui5/rhua-rhel9 1789478095, rhui5/haproxy-rhel9 1790241900, rhui5/installer-rhel9 1790241922, rhui5/cds-kubernetes-rhel9 1790241897
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 5mo ago
Exploit prediction
0.30% chance of exploitation in the next 30 days, higher than 23% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N |
| CNA | 4.0 | 6.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/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 |
| NVD | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
Affected products
- vim vim
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
Sources
- CVE List CVE-2026-52859
- NVD CVE-2026-52859
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.