CVE-2026-52859
Vim: Out-of-bounds Read in Terminal Screen Snapshot
No exploitation reported by the sources we read.
- Published2026-06-11
- Fixed in9.2.0565
- WeaknessCWE-125
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2026-06-1119:16CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-10-23 18:48 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2026-52859?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2026-52859?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.2 | < 9.2.0565 | 9.2.0565 | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- vim-X11AlmaLinux:9all versions · fixed in 2:8.2.2637-26.el9_8.21and 4 other packages
- vim-X11AlmaLinux:8all versions · fixed in 2:8.0.1763-31.el8_10.7and 4 other packages
- xxdAlmaLinux:10all versions · fixed in 2:9.1.083-9.el10_2.20and 6 other packages
Vendor advisories
vim: Vim: Denial of Service via out-of-bounds write in terminal handling
vim-X11 as a component of Red Hat Enterprise Linux 6 · vim-common as a component of Red Hat Enterprise Linux 6 · vim-enhanced as a component of Red Hat Enterprise Linux 6 · +11 more
Red Hat Security Advisory: Red Hat Update Infrastructure 5.3 security update
Red Hat Security Advisory: Red Hat Update Infrastructure 5.3 security update
Red Hat Security Advisory: vim security update
Red Hat Security Advisory: vim security update
Red Hat Security Advisory: vim security update
1 more advisory
Fix
- Update Vim to 9.2.0565
- Vendor fix Red Hat Product Security RHSA-2026:71603 · 1 productThe container images provided by this release, apart from the installer, should be deployed using rhui-installer utility. See the official documentation for more details.
- Vendor fix Red Hat Product Security RHSA-2026:66366 · 9 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2026:57614 · 17 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
- Workaround from the vendor Red Hat Product Security RHSA-2026:71603 · 5 productsUsers should exercise caution when opening untrusted files or executing untrusted programs within vim's `:terminal` window. Avoiding interaction with untrusted content in this context can prevent the exploitation of this vulnerability, which leads to a denial of service.
- No fix available, says the vendor Red Hat Product Security CVE-2026-52859 · 2 productsFix deferred
- No fix planned, says the vendor Red Hat Product Security CVE-2026-52859 · 12 productsOut of support scope
Advisories and patches
- github.comPatch
- github.comRelease Notes
- github.comVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- none listed PoC-in-GitHub
Sources
- CISA-ADPSSVC decisionnone2026-06-11
- OpenCVESSVC decisionnone—
- CNACVSS 4.06.9read 2026-10-23
- NVDCVSS 3.18.2read 2026-10-23
- CNAweakness (CWE)CWE-125read 2026-10-23
- FIRST EPSSEPSS score0.3 %2026-10-22
- OSVaffected packages—
- Microsoft MSRCadvisory—
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- CVSS 4.0 vector
- 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
- Published
- 2026-06-11
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- MSRC Title
- Vim: Out-of-bounds Read in Terminal Screen Snapshot
Frequently asked questions
What is CVE-2026-52859?
Is CVE-2026-52859 actively exploited?
What is the CVSS score for CVE-2026-52859?
Running vim? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2022-1621same product
- CVE-2022-1629same product
- CVE-2026-28417same product
- CVE-2025-53906same product
- CVE-2026-41411same productVim: Command injection via backtick expansion in tag filenames
- CVE-2026-46483same product
- CVE-2026-73078same product
- CVE-2025-53905same productVim has path traversial issue with tar.vim and special crafted tar files