Heap Buffer Overflow in Vim Due to Inadequate Visual Mode Handling
CVE-2025-22134

4.2MEDIUM

Key Information:

Vendor

Vim

Status
Vendor
CVE Published:
13 January 2025

What is CVE-2025-22134?

An issue in the Vim editor allows for a heap buffer overflow when users switch to other buffers while visual mode remains active. This occurs due to Vim not properly terminating visual mode before opening new windows and buffers. It may lead to unauthorized memory access, especially if the command ':all' is executed with visual mode enabled. The integrity of user data could be compromised in this scenario. However, this vulnerability has been addressed in Patch 9.1.1003, which ensures that visual mode resets correctly and verifies buffer line limits before attempting access.

Affected Version(s)

vim < v9.1.1003

References

CVSS V3.1

Score:
4.2
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Local
Attack Complexity:
High
Privileges Required:
Low
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

.