VDB

CVE-2025-22134

CVE-2025-22134 PUBLISHED CVSS 4.2 MEDIUM

heap-buffer-overflow with visual mode in Vim < 9.1.1003

Reported by github_m · Published January 13, 2025

When switching to other buffers using the :all command and visual mode still being active, this may cause a heap-buffer overflow, because Vim does not properly end visual mode and therefore may try to access beyond the end of a line in a buffer. In Patch 9.1.1003 Vim will correctly reset the visual mode before opening other windows and buffers and therefore fix this bug. In addition it does verify that it won't try to access a position if the position is greater than the corresponding buffer line. Impact is medium since the user must have switched on visual mode when executing the :all ex command. The Vim project would like to thank github user gandalf4a for reporting this issue. The issue has been fixed as of Vim patch v9.1.1003

Fixed versions

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

PackageEcosystemFixed in
vim-minimalAmazon Linux2:9.2.240-1.amzn2023.0.2
vimvim9.1.1003

Risk scores

CVSS 3.1
4.2
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L

Affected products

VendorProductVersions
vimvim< v9.1.1003
amazon:2023vim-minimal0
vimvim0
amazon:2023vim-common0
amazon:2023vim-data0
alpinevim0
amazon:2023vim-enhanced0
amazon:2023vim-default-editor0
amazon:2023xxd0
amazon:2023vim-filesystem0

Timeline

  • Jan 12, 2025 CVE Published
  • Jan 14, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 14, 2025 Coalition ESS Score (18 in total, the first dated here)
  • Dec 21, 2025 Security Advisory (4 in total, the first dated here)
  • Oct 20, 2026 Distribution Patch (2 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-22134
vulnetix vdb fixes CVE-2025-22134

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-2025-22134/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 ›