CVE-2026-52859

Vim vulnerabilities

mediumEPSS 0.3%

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.

Metrics

Severity
medium
no public PoC known
6.9
Source: nvd-v4
22.7 %
Elevated — this CVE ranks above at least 10% of all CVEs scored today.
0.3 %
Low — model estimates < 1% exploitation likelihood.
Published
2026-06-18 16:05 UTC
CWE-125

Weakness classes (CWE)

  • CWE-125Base

    Out-of-bounds Read

    The product reads data past the end, or before the beginning, of the intended buffer.

    cwe.mitre.org →

Reanalysis & status changes

Chronological NVD audit events for this CVE — reanalyses, CVSS updates, CPE diffs.

  1. Initial Analysis2026-06-15 13:12 UTC· nvd@nist.gov
    • CVSS V3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
    • CPE Configuration: OR *cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* versions up to (excluding) 9.2.0565
    • Reference Type: GitHub, Inc.: https://github.com/vim/vim/commit/63680c6d3d52477817b49cd1a66e7aabe8a7aa19 Types: Patch
    • Reference Type: GitHub, Inc.: https://github.com/vim/vim/releases/tag/v9.2.0565 Types: Release Notes

Affected operating systems

  • linux

    ubuntu / vimbionic

  • linux

    ubuntu / vimfocal

  • linux

    ubuntu / vimjammy

  • linux

    ubuntu / vimnoble

  • linux

    ubuntu / vimquesting

  • linux

    ubuntu / vimresolute

  • linux

    ubuntu / vimtrusty

  • linux

    ubuntu / vimxenial

Affected products

Products and version ranges extracted from the vendor/CERT advisory. A range like „<4.14.6“ implies the update recommendation „upgrade to 4.14.6 or later“.

  • vim

    vim9.2.0495

  • vim

    vim9.2.0597

References & sources

Linked CVEs

IDCVE-2026-52859