CVE-2026-52859: Vim: Out-of-bounds Read in Terminal Screen Snapshot

Published Jun 11, 2026
·
Updated

Last updated 19 June 2026

Other sources

Vim is an open source, command line text editor. Prior to version 9.2.0565, the updatesnapshot() 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 VTERMMAXCHARSPERCELL (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.

— MITRE

Vim: Out-of-bounds Read in Terminal Screen Snapshot

— Microsoft

Affected Software

6 affected componentsFixes available
vim Vim<9.2.0565
vim Vim<9.2.0565
debian/vim<=2:8.2.2434-3+deb11u1, <=2:8.2.2434-3+deb11u3, <=2:9.0.1378-2+deb12u2, <=2:9.1.1230-2, <=2:9.2.0524-1
Microsoft azl3 vim 9.2.0488-1<9.2.0620-1
9.2.0620-1
IBM QRadar<=7.6.0.0 - 7.6.0.4
IBM QRadar<=7.5.0 - 7.5.0 UP16 IF01

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.2.0620-1
  2. Upgrade

    Upgrade Vim to a version that resolves this vulnerability.

    Fixed in 9.2.0565

Event History

Jun 11, 2026
CVE Published
via MITRE·06:33 PM
Data Sourced
via MITRE·06:33 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 13, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeaknessAffected Software
Jun 18, 2026
Data Sourced
via Launchpad·06:48 PM
Description
Data Sourced
via Debian·06:48 PM
DescriptionAffected Software
Jun 21, 2026
Data Sourced
via Ubuntu·06:51 PM
RemedyDescriptionSeverityAffected Software
Oct 13, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-52859?

The severity of CVE-2026-52859 is medium with a CVSS score of 6.9.

2

How do I fix CVE-2026-52859?

To fix CVE-2026-52859, update Vim to version 9.2.0565 or later.

3

What type of vulnerability is CVE-2026-52859?

CVE-2026-52859 is an out-of-bounds read vulnerability in the Vim text editor.

4

What software is affected by CVE-2026-52859?

CVE-2026-52859 affects Vim version prior to 9.2.0565.

5

Can CVE-2026-52859 be exploited remotely?

Yes, CVE-2026-52859 has an attack vector of AV:N, indicating that it can be exploited remotely.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203