5.5
MEDIUM CVSS 3.1
CVE-2025-22134
Vim Visual Mode Heap-Buffer Overflow
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

INFO

Published Date :

Jan. 13, 2025, 9:15 p.m.

Last Modified :

Aug. 14, 2025, 5:43 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2025-22134 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Netapp bootstrap_os
2 Netapp hci_compute_node
1 Vim vim
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
Vim is vulnerable to a heap-buffer overflow; update the software to address this.
  • Upgrade Vim to version 9.1.1003 or later.
  • Update the affected vim packages.
Public PoC/Exploit Available at Github

CVE-2025-22134 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-22134.

URL Resource
https://github.com/vim/vim/commit/c9a1e257f1630a0866447e53a564f7ff96a80ead Patch
https://github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8 Vendor Advisory
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
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-22134 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-22134 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Updated: 3 weeks, 4 days ago
13 stars 0 fork 0 watcher
Born at : June 13, 2023, 3 a.m. This repo has been linked 10 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-22134 vulnerability anywhere in the article.

  • tripwire.com
VERT Threat Alert: February 2025 Patch Tuesday Analysis

Today’s VERT Alert addresses Microsoft’s February 2025 Security Updates. VERT is actively working on coverage for these vulnerabilities and expects to ship ASPL-1143 as soon as coverage is completed.I ... Read more

Published Date: Feb 11, 2025 (6 months, 1 week ago)

The following table lists the changes that have been made to the CVE-2025-22134 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Aug. 14, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
    Added CPE Configuration OR *cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* versions up to (including) 9.1.1003
    Added CPE Configuration AND OR *cpe:2.3:o:netapp:bootstrap_os:-:*:*:*:*:*:*:* OR cpe:2.3:h:netapp:hci_compute_node:-:*:*:*:*:*:*:*
    Added Reference Type CVE: http://www.openwall.com/lists/oss-security/2025/01/11/1 Types: Mailing List, Third Party Advisory
    Added Reference Type GitHub, Inc.: https://github.com/vim/vim/commit/c9a1e257f1630a0866447e53a564f7ff96a80ead Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8 Types: Vendor Advisory
    Added Reference Type CVE: https://security.netapp.com/advisory/ntap-20250314-0004/ Types: Third Party Advisory
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Mar. 14, 2025

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20250314-0004/
  • New CVE Received by [email protected]

    Jan. 13, 2025

    Action Type Old Value New Value
    Added 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
    Added CVSS V3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
    Added CWE CWE-122
    Added Reference https://github.com/vim/vim/commit/c9a1e257f1630a0866447e53a564f7ff96a80ead
    Added Reference https://github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Jan. 13, 2025

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2025/01/11/1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 5.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact