CVE-2024-45306
Vim vulnerability analysis and mitigation

Overview

CVE-2024-45306 affects Vim, an open source command line text editor, in versions from 9.1.0038 to 9.1.0706. The vulnerability was discovered when patch v9.1.0038 optimized cursor position calculation by removing a verification loop, which inadvertently allowed the cursor position to become invalid by pointing beyond the end of a line. This issue was disclosed on September 2, 2024, and was patched in version 9.1.0707 (Vim Advisory).

Technical details

The vulnerability is classified as a heap-based buffer overflow (CWE-122). The issue occurs when the cursor position becomes invalid by pointing beyond the end of a line, which can lead to a heap-buffer-overflow when attempting to access the line pointer at the specified cursor position. The vulnerability has been assigned a CVSS v3.1 base score of 4.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L, indicating local access requirements and high attack complexity (Vim Advisory).

Impact

The primary impact of this vulnerability is a potential program crash due to heap corruption when processing maliciously crafted files. The impact is considered low as crashes have only been observed during fuzzy file testing rather than during normal editing sessions (Vim Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Vim patch v9.1.0707. The fix involves setting the cursor to the last character in a line if it would otherwise point beyond the line. Users are advised to upgrade to version 9.1.0707 or later to address this security issue (Vim Advisory, NetApp Advisory).

Additional resources


SourceThis report was generated using AI

Related Vim vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66476HIGH7.8
  • VimVim
  • vim
NoYesDec 02, 2025
CVE-2025-55158MEDIUM6.9
  • VimVim
  • cpe:2.3:a:vim:vim
NoYesAug 11, 2025
CVE-2025-55157MEDIUM6.9
  • VimVim
  • vim-data-common
NoYesAug 11, 2025
CVE-2025-9390MEDIUM4.8
  • VimVim
  • vim
NoYesAug 24, 2025
CVE-2025-9389MEDIUM4.8
  • VimVim
  • vim-filesystem
NoYesAug 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management