# CVE-2025-22134: heap-buffer-overflow with visual mode in Vim < 9.1.1003

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2025-01-13T20:41:08.144Z
- Modified: 2026-06-17T08:45:15.233Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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

(As written by CVE List.)

## Affected

- vim vim: < v9.1.1003; up to 9.1.1003
- neovim neovim: up to 0.10.4
- netapp bootstrap_os: no versions given

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8> (vendor-advisory)
- <https://github.com/vim/vim/commit/c9a1e257f1630a0866447e53a564f7ff96a80ead> (patch)
- <http://www.openwall.com/lists/oss-security/2025/01/11/1> (mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20250314-0004/> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-22134](https://www.cve.org/CVERecord?id=CVE-2025-22134), CVE Terms of Use, modified 2025-03-14
- NVD: [CVE-2025-22134](https://nvd.nist.gov/vuln/detail/CVE-2025-22134), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22134 · Whole record: https://cve.day/CVE-2025-22134.json · Rebuilt by cve.day 2026-11-25T22:58:53.223Z
