Read the docs
TI-2026-37964 Aliases CVE-2026-52859

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

Priority LOW 36CWE-125Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
Low · None · Low
Fix status
Partial Red Hat: 8 fixed, 4 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00303 23rd percentileScored 2026-11-07
Fix Partial vim (vim): 9.2.0565Red Hat: 6 advisoriesRed Hat: 8 fixed, 4 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
vimvimbefore 9.2.05659.2.0565Patch availableCNA
  • vim Vendorvim Affected before 9.2.0565 Fixed in 9.2.0565 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*before 9.2.0565Vulnerablevim
  • cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* Versions before 9.2.0565 Vulnerable ·vim

Remediation

  • Fix · CNA vim (vim) Fixed in 9.2.0565

Red Hat 6 advisories

  • RHSA-2026:71603 Released 2026-09-24 · Red Hat rating Important
    Red Hat Update Infrastructure 5.3 security update
    • Red Hat Update Infrastructure 5 registry.redhat.io/rhui5/cds-kubernetes-rhel9, registry.redhat.io/rhui5/cds-rhel9, registry.redhat.io/rhui5/haproxy-rhel9 +2
  • RHSA-2026:67956 Released 2026-09-16 · Red Hat rating Important
    Red Hat Update Infrastructure 5.3 security update
    • Red Hat Update Infrastructure 5 registry.redhat.io/rhui5/cds-kubernetes-rhel9, registry.redhat.io/rhui5/cds-rhel9, registry.redhat.io/rhui5/haproxy-rhel9 +2
  • RHSA-2026:66366 Released 2026-09-10 · Red Hat rating Important
    vim security update
    • Red Hat Enterprise Linux AppStream (v. 9) vim-X11-2:8.2.2637-26.el9_8.21, vim-common-2:8.2.2637-26.el9_8.21, vim-enhanced-2:8.2.2637-26.el9_8.21
    • Red Hat Enterprise Linux BaseOS (v. 9) vim-2:8.2.2637-26.el9_8.21
Show 3 more Red Hat advisories
  • RHSA-2026:66348 Released 2026-09-10 · Red Hat rating Important
    vim security update
    • Red Hat Enterprise Linux AppStream (v. 8) vim-X11-2:8.0.1763-31.el8_10.7, vim-common-2:8.0.1763-31.el8_10.7, vim-enhanced-2:8.0.1763-31.el8_10.7
    • Red Hat Enterprise Linux BaseOS (v. 8) vim-2:8.0.1763-31.el8_10.7
  • RHSA-2026:66336 Released 2026-09-10 · Red Hat rating Important
    vim security update
    • Red Hat Enterprise Linux AppStream (v. 10) vim-X11-2:9.1.083-9.el10_2.20, vim-common-2:9.1.083-9.el10_2.20, vim-enhanced-2:9.1.083-9.el10_2.20
    • Red Hat Enterprise Linux BaseOS (v. 10) vim-2:9.1.083-9.el10_2.20
  • RHSA-2026:57614 Released 2026-08-20 · Red Hat rating Important
    Red Hat Hardened Images RPMs bug fix and enhancement update
    • Red Hat Hardened Images vim-2:9.2.967-1.1.hum1@src, vim-X11-2:9.2.967-1.1.hum1@aarch64, vim-X11-2:9.2.967-1.1.hum1@x86_64 +14

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat OpenShift Container Platform 4AffectedNo fix yet: Fix deferred
Red Hat OpenShift Container Platform 5AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux AppStream (v. 10)Fixed RHSA-2026:66336
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2026:66348
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2026:66366
Red Hat Enterprise Linux BaseOS (v. 10)Fixed RHSA-2026:66336
Red Hat Enterprise Linux BaseOS (v. 8)Fixed RHSA-2026:66348
Red Hat Enterprise Linux BaseOS (v. 9)Fixed RHSA-2026:66366
Red Hat Hardened ImagesFixed RHSA-2026:57614
Red Hat Update Infrastructure 5Fixed RHSA-2026:67956, RHSA-2026:71603
Not affected: 7 products
  • Red Hat Enterprise Linux AppStream (v. 10)
  • Red Hat Enterprise Linux AppStream (v. 8)
  • Red Hat Enterprise Linux AppStream (v. 9)
  • Red Hat Enterprise Linux BaseOS (v. 10)
  • Red Hat Enterprise Linux BaseOS (v. 8)
  • Red Hat Enterprise Linux BaseOS (v. 9)
  • Red Hat Update Infrastructure 5

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-52859
  2. 2026-11-06 Affected versions changed · Red Hat

References

  • TI-2022-03248 Heap-based Buffer Overflow in vim/vim CVSS 3.1CRITICAL 9.8
  • TI-2024-15103 Vim before 9.0.2142 has a stack-based buffer overflow because did_set_langmap in map.c… CVSS 3.1HIGH 7.8
  • TI-2023-05093 Use After Free in vim/vim CVSS 3.1HIGH 7.8
  • TI-2023-04407 Heap-based Buffer Overflow in vim/vim CVSS 3.1HIGH 7.8
  • TI-2023-04379 Heap-based Buffer Overflow in vim/vim CVSS 3.1HIGH 7.8
  • TI-2023-04378 Use After Free in vim/vim CVSS 3.1HIGH 7.8
See all 258 →

Sources