VDB

CVE-2026-52859

CVE-2026-52859 PUBLISHED CVSS 6.9 MEDIUM

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

Reported by github_m · Published June 11, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
vim-enhancederrata.rockylinux.org9.1.083-9.el10
vim-commonerrata.rockylinux.org8.0.1763-31.el8
vim-filesystemerrata.rockylinux.org9.1.083-9.el10
vim-X11Amazon Linux2:9.0.2153-1.amzn2.0.11
vim-dataerrata.rockylinux.org9.1.083-9.el10
vim-debugsourceerrata.rockylinux.org8.0.1763-31.el8
vimerrata.rockylinux.org8.2.2637-26.el9
vim-X11-debuginfoerrata.rockylinux.org9.1.083-9.el10
vim-common-debuginfoerrata.rockylinux.org8.2.2637-26.el9

Risk scores

CVSS 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

Affected products

VendorProductVersions
vimvim< 9.2.0565
amazon:2vim-X110
vimvim0
amazon:2023xxd0
amazon:2xxd0
amazon:2023vim-enhanced0
amazon:2023vim-data0
amazon:2vim-data0
amazon:2vim-common0
amazon:2023vim-minimal0
amazon:2023vim-filesystem0
amazon:2vim-enhanced0
amazon:2023vim-common0
amazon:2vim-filesystem0
alpinevim0
amazon:2023vim-default-editor0
amazon:2vim-minimal0

Timeline

  • Jun 11, 2026 CVE Published
  • Jun 12, 2026 Coalition ESS Score
  • Jun 14, 2026 Security Advisory (7 in total, the first dated here)
  • Jun 17, 2026 CVE Updated
  • Aug 7, 2026 EPSS Score (27 in total, the first dated here)
  • Aug 11, 2026 Distribution Patch (9 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-52859
vulnetix vdb fixes CVE-2026-52859

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-52859/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›