p PatchFirst

CVE-2026-52859

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

CVSS 6.9 · Medium · EPSS 0.3% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • vimNo fix published
  • vim Alpine 3.23Update to 9.2.0567-r0
  • vim Alpine 3.24Update to 9.2.0567-r0
  • vim Debian 12No fix published
  • and 8 more

Check the installed version:

apk list -I -o vim
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="vim"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • DSA-6600-1 · Debian 13 ·
  • RHSA-2026:57614 · Red Hat hummingbird 1 ·
  • RLSA-2026:66336 · Rocky Linux 10 ·
  • RLSA-2026:66366 · Rocky Linux 9 ·
  • RHSA-2026:66366 · Red Hat Enterprise Linux 9 appstream, Red Hat Enterprise Linux 9 baseos ·
  • RHSA-2026:66348 · Red Hat Enterprise Linux 8 appstream, Red Hat Enterprise Linux 8 baseos ·
  • RLSA-2026:66348 · Rocky Linux 8 ·
  • RHSA-2026:66336 · Red Hat Enterprise Linux 10.2 ·
  • ALSA-2026:66336 · AlmaLinux 10 ·
  • ALSA-2026:66348 · AlmaLinux 8 ·
  • ALSA-2026:66366 · AlmaLinux 9 ·
  • USN-8451-1 · Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Ubuntu 25.10, Ubuntu 26.04 LTS, Ubuntu Pro 14.04 LTS, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS ·

Stack: system

Affected products and versions

  • vim

    Versions
    • < 9.2.0565: Affected

    No fix published

  • vim Alpine 3.23

    Affected ranges
    • ECOSYSTEM: < 9.2.0567-r0

    Update to 9.2.0567-r0

  • vim Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 9.2.0567-r0

    Update to 9.2.0567-r0

  • vim Debian 12

    Versions
    • 2:9.0.1378-2
    • 2:9.0.1378-2+deb12u1
    • 2:9.0.1378-2+deb12u2
    • 2:9.0.1658-1
    • 2:9.0.1672-1
    • 2:9.0.1894-1
    All versions (45)
    • 2:9.0.2018-1
    • 2:9.0.2087-1
    • 2:9.0.2103-1
    • 2:9.0.2116-1
    • 2:9.0.2189-1
    • 2:9.1.0-1
    • 2:9.1.0016-1
    • 2:9.1.0199-1
    • 2:9.1.0374-1
    • 2:9.1.0377-1
    • 2:9.1.0496-1
    • 2:9.1.0698-1
    • 2:9.1.0709-1
    • 2:9.1.0709-2
    • 2:9.1.0777-1
    • 2:9.1.0861-1
    • 2:9.1.0967-1
    • 2:9.1.0967-2
    • 2:9.1.1113-1
    • 2:9.1.1230-1
    • 2:9.1.1230-2
    • 2:9.1.1385-1
    • 2:9.1.1766-1
    • 2:9.1.1829-1
    • 2:9.1.1846-1
    • 2:9.1.1882-1
    • 2:9.1.2103-1
    • 2:9.1.2141-1
    • 2:9.2.0119-1
    • 2:9.2.0136-1
    • 2:9.2.0218-1
    • 2:9.2.0315-1
    • 2:9.2.0338-1
    • 2:9.2.0355-1
    • 2:9.2.0428-1
    • 2:9.2.0461-1
    • 2:9.2.0524-1
    • 2:9.2.0782-1
    • 2:9.2.0858-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • vim Debian 13

    Versions
    • 2:9.1.1230-2
    Affected ranges
    • ECOSYSTEM: < 2:9.1.1230-2+deb13u1

    Update to 2:9.1.1230-2+deb13u1

  • vim Debian 14

    Versions
    • 2:9.1.1230-2
    • 2:9.1.1385-1
    • 2:9.1.1766-1
    • 2:9.1.1829-1
    • 2:9.1.1846-1
    • 2:9.1.1882-1
    All versions (17)
    • 2:9.1.2103-1
    • 2:9.1.2141-1
    • 2:9.2.0119-1
    • 2:9.2.0136-1
    • 2:9.2.0218-1
    • 2:9.2.0315-1
    • 2:9.2.0338-1
    • 2:9.2.0355-1
    • 2:9.2.0428-1
    • 2:9.2.0461-1
    • 2:9.2.0524-1
    Affected ranges
    • ECOSYSTEM: < 2:9.2.0782-1

    Update to 2:9.2.0782-1

  • vim Ubuntu Pro 18.04 LTS

    Versions
    • 2:8.0.0197-4ubuntu5
    • 2:8.0.1144-1ubuntu1
    • 2:8.0.1401-1ubuntu1
    • 2:8.0.1401-1ubuntu2
    • 2:8.0.1401-1ubuntu3
    • 2:8.0.1453-1ubuntu1
    All versions (35)
    • 2:8.0.1453-1ubuntu1.1
    • 2:8.0.1453-1ubuntu1.3
    • 2:8.0.1453-1ubuntu1.4
    • 2:8.0.1453-1ubuntu1.6
    • 2:8.0.1453-1ubuntu1.7
    • 2:8.0.1453-1ubuntu1.8
    • 2:8.0.1453-1ubuntu1.9
    • 2:8.0.1453-1ubuntu1.10
    • 2:8.0.1453-1ubuntu1.11
    • 2:8.0.1453-1ubuntu1.12
    • 2:8.0.1453-1ubuntu1.13
    • 2:8.0.1453-1ubuntu1.13+esm1
    • 2:8.0.1453-1ubuntu1.13+esm3
    • 2:8.0.1453-1ubuntu1.13+esm4
    • 2:8.0.1453-1ubuntu1.13+esm5
    • 2:8.0.1453-1ubuntu1.13+esm6
    • 2:8.0.1453-1ubuntu1.13+esm7
    • 2:8.0.1453-1ubuntu1.13+esm8
    • 2:8.0.1453-1ubuntu1.13+esm9
    • 2:8.0.1453-1ubuntu1.13+esm10
    • 2:8.0.1453-1ubuntu1.13+esm11
    • 2:8.0.1453-1ubuntu1.13+esm12
    • 2:8.0.1453-1ubuntu1.13+esm13
    • 2:8.0.1453-1ubuntu1.13+esm14
    • 2:8.0.1453-1ubuntu1.13+esm15
    • 2:8.0.1453-1ubuntu1.13+esm16
    • 2:8.0.1453-1ubuntu1.13+esm17
    • 2:8.0.1453-1ubuntu1.13+esm18
    • 2:8.0.1453-1ubuntu1.13+esm19
    Affected ranges
    • ECOSYSTEM: < 2:8.0.1453-1ubuntu1.13+esm20

    Update to 2:8.0.1453-1ubuntu1.13+esm20

  • vim Ubuntu Pro 20.04 LTS

    Versions
    • 2:8.1.0875-5ubuntu2
    • 2:8.1.0875-5ubuntu3
    • 2:8.1.0875-5ubuntu4
    • 2:8.1.2269-1ubuntu1
    • 2:8.1.2269-1ubuntu4
    • 2:8.1.2269-1ubuntu5
    All versions (37)
    • 2:8.1.2269-1ubuntu5.3
    • 2:8.1.2269-1ubuntu5.4
    • 2:8.1.2269-1ubuntu5.6
    • 2:8.1.2269-1ubuntu5.7
    • 2:8.1.2269-1ubuntu5.8
    • 2:8.1.2269-1ubuntu5.9
    • 2:8.1.2269-1ubuntu5.11
    • 2:8.1.2269-1ubuntu5.12
    • 2:8.1.2269-1ubuntu5.13
    • 2:8.1.2269-1ubuntu5.14
    • 2:8.1.2269-1ubuntu5.15
    • 2:8.1.2269-1ubuntu5.16
    • 2:8.1.2269-1ubuntu5.17
    • 2:8.1.2269-1ubuntu5.18
    • 2:8.1.2269-1ubuntu5.20
    • 2:8.1.2269-1ubuntu5.21
    • 2:8.1.2269-1ubuntu5.22
    • 2:8.1.2269-1ubuntu5.23
    • 2:8.1.2269-1ubuntu5.24
    • 2:8.1.2269-1ubuntu5.25
    • 2:8.1.2269-1ubuntu5.26
    • 2:8.1.2269-1ubuntu5.29
    • 2:8.1.2269-1ubuntu5.30
    • 2:8.1.2269-1ubuntu5.31
    • 2:8.1.2269-1ubuntu5.32
    • 2:8.1.2269-1ubuntu5.32+esm2
    • 2:8.1.2269-1ubuntu5.32+esm3
    • 2:8.1.2269-1ubuntu5.32+esm4
    • 2:8.1.2269-1ubuntu5.32+esm5
    • 2:8.1.2269-1ubuntu5.32+esm6
    • 2:8.1.2269-1ubuntu5.32+esm7
    Affected ranges
    • ECOSYSTEM: < 2:8.1.2269-1ubuntu5.32+esm8

    Update to 2:8.1.2269-1ubuntu5.32+esm8

  • vim Ubuntu 22.04 LTS

    Versions
    • 2:8.2.2434-3ubuntu3
    • 2:8.2.2434-3ubuntu4
    • 2:8.2.3565-1ubuntu1
    • 2:8.2.3565-1ubuntu2
    • 2:8.2.3565-1ubuntu3
    • 2:8.2.3565-1ubuntu5
    All versions (35)
    • 2:8.2.3995-1ubuntu1
    • 2:8.2.3995-1ubuntu2
    • 2:8.2.3995-1ubuntu2.1
    • 2:8.2.3995-1ubuntu2.3
    • 2:8.2.3995-1ubuntu2.4
    • 2:8.2.3995-1ubuntu2.5
    • 2:8.2.3995-1ubuntu2.7
    • 2:8.2.3995-1ubuntu2.8
    • 2:8.2.3995-1ubuntu2.9
    • 2:8.2.3995-1ubuntu2.10
    • 2:8.2.3995-1ubuntu2.11
    • 2:8.2.3995-1ubuntu2.12
    • 2:8.2.3995-1ubuntu2.13
    • 2:8.2.3995-1ubuntu2.15
    • 2:8.2.3995-1ubuntu2.16
    • 2:8.2.3995-1ubuntu2.17
    • 2:8.2.3995-1ubuntu2.18
    • 2:8.2.3995-1ubuntu2.19
    • 2:8.2.3995-1ubuntu2.20
    • 2:8.2.3995-1ubuntu2.21
    • 2:8.2.3995-1ubuntu2.22
    • 2:8.2.3995-1ubuntu2.23
    • 2:8.2.3995-1ubuntu2.24
    • 2:8.2.3995-1ubuntu2.26
    • 2:8.2.3995-1ubuntu2.27
    • 2:8.2.3995-1ubuntu2.28
    • 2:8.2.3995-1ubuntu2.29
    • 2:8.2.3995-1ubuntu2.30
    • 2:8.2.3995-1ubuntu2.31
    Affected ranges
    • ECOSYSTEM: < 2:8.2.3995-1ubuntu2.32

    Update to 2:8.2.3995-1ubuntu2.32

  • vim Ubuntu 24.04 LTS

    Versions
    • 2:9.0.1672-1ubuntu2
    • 2:9.0.2087-1ubuntu1
    • 2:9.0.2116-1ubuntu1
    • 2:9.0.2116-1ubuntu2
    • 2:9.0.2184-0ubuntu1
    • 2:9.0.2189-1ubuntu1
    All versions (25)
    • 2:9.1.0-1ubuntu1
    • 2:9.1.0016-1ubuntu2
    • 2:9.1.0016-1ubuntu6
    • 2:9.1.0016-1ubuntu7
    • 2:9.1.0016-1ubuntu7.1
    • 2:9.1.0016-1ubuntu7.2
    • 2:9.1.0016-1ubuntu7.3
    • 2:9.1.0016-1ubuntu7.4
    • 2:9.1.0016-1ubuntu7.5
    • 2:9.1.0016-1ubuntu7.6
    • 2:9.1.0016-1ubuntu7.7
    • 2:9.1.0016-1ubuntu7.8
    • 2:9.1.0016-1ubuntu7.9
    • 2:9.1.0016-1ubuntu7.10
    • 2:9.1.0016-1ubuntu7.11
    • 2:9.1.0016-1ubuntu7.12
    • 2:9.1.0016-1ubuntu7.13
    • 2:9.1.0016-1ubuntu7.14
    • 2:9.1.0016-1ubuntu7.15
    Affected ranges
    • ECOSYSTEM: < 2:9.1.0016-1ubuntu7.16

    Update to 2:9.1.0016-1ubuntu7.16

  • vim Ubuntu 25.10

    Versions
    • 2:9.1.0967-1ubuntu4
    • 2:9.1.0967-1ubuntu5
    • 2:9.1.0967-1ubuntu6
    • 2:9.1.0967-1ubuntu6.1
    • 2:9.1.0967-1ubuntu6.2
    • 2:9.1.0967-1ubuntu6.3
    All versions (9)
    • 2:9.1.0967-1ubuntu6.4
    • 2:9.1.0967-1ubuntu6.5
    • 2:9.1.0967-1ubuntu6.6
    Affected ranges
    • ECOSYSTEM: < 2:9.1.0967-1ubuntu6.7

    Update to 2:9.1.0967-1ubuntu6.7

  • vim Ubuntu 26.04 LTS

    Versions
    • 2:9.1.0967-1ubuntu6
    • 2:9.1.1882-1ubuntu1
    • 2:9.1.1882-1ubuntu2
    • 2:9.1.2141-1ubuntu1
    • 2:9.1.2141-1ubuntu2
    • 2:9.1.2141-1ubuntu4
    All versions (9)
    • 2:9.1.2141-1ubuntu4.1
    • 2:9.1.2141-1ubuntu4.2
    • 2:9.1.2141-1ubuntu4.3
    Affected ranges
    • ECOSYSTEM: < 2:9.1.2141-1ubuntu4.5

    Update to 2:9.1.2141-1ubuntu4.5

Original sources

Check your server →