5.5
MEDIUM
CVE-2024-45306
Vim Heap Buffer Overflow
Description

Vim is an open source, command line text editor. Patch v9.1.0038 optimized how the cursor position is calculated and removed a loop, that verified that the cursor position always points inside a line and does not become invalid by pointing beyond the end of a line. Back then we assumed this loop is unnecessary. However, this change made it possible that the cursor position stays invalid and points beyond the end of a line, which would eventually cause a heap-buffer-overflow when trying to access the line pointer at the specified cursor position. It's not quite clear yet, what can lead to this situation that the cursor points to an invalid position. That's why patch v9.1.0707 does not include a test case. The only observed impact has been a program crash. This issue has been addressed in with the patch v9.1.0707. All users are advised to upgrade.

INFO

Published Date :

Sept. 2, 2024, 6:15 p.m.

Last Modified :

Oct. 1, 2024, 3:20 p.m.

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Public PoC/Exploit Available at Github

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

Affected Products

The following products are affected by CVE-2024-45306 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 Vim vim
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-2024-45306.

URL Resource
https://github.com/vim/vim/commit/396fd1ec2956307755392a1 Patch
https://github.com/vim/vim/releases/tag/v9.1.0038 Release Notes
https://github.com/vim/vim/security/advisories/GHSA-wxf9-c5gx-qrwr Third Party Advisory

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).

爬取secwiki和xuanwu.github.io/sec.today,分析安全信息站点、安全趋势、提取安全工作者账号(twitter,weixin,github等)

Python HTML

Updated: 2 months, 2 weeks ago
1137 stars 202 fork 202 watcher
Born at : Feb. 19, 2019, 10:24 a.m. This repo has been linked 11 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-2024-45306 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-45306 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]

    Oct. 01, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
    Changed Reference Type https://github.com/vim/vim/commit/396fd1ec2956307755392a1 No Types Assigned https://github.com/vim/vim/commit/396fd1ec2956307755392a1 Patch
    Changed Reference Type https://github.com/vim/vim/releases/tag/v9.1.0038 No Types Assigned https://github.com/vim/vim/releases/tag/v9.1.0038 Release Notes
    Changed Reference Type https://github.com/vim/vim/security/advisories/GHSA-wxf9-c5gx-qrwr No Types Assigned https://github.com/vim/vim/security/advisories/GHSA-wxf9-c5gx-qrwr Third Party Advisory
    Added CWE NIST CWE-787
    Added CPE Configuration OR *cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* versions from (including) 9.1.0038 up to (excluding) 9.1.0707
  • CVE Received by [email protected]

    Sep. 02, 2024

    Action Type Old Value New Value
    Added Description Vim is an open source, command line text editor. Patch v9.1.0038 optimized how the cursor position is calculated and removed a loop, that verified that the cursor position always points inside a line and does not become invalid by pointing beyond the end of a line. Back then we assumed this loop is unnecessary. However, this change made it possible that the cursor position stays invalid and points beyond the end of a line, which would eventually cause a heap-buffer-overflow when trying to access the line pointer at the specified cursor position. It's not quite clear yet, what can lead to this situation that the cursor points to an invalid position. That's why patch v9.1.0707 does not include a test case. The only observed impact has been a program crash. This issue has been addressed in with the patch v9.1.0707. All users are advised to upgrade.
    Added Reference GitHub, Inc. https://github.com/vim/vim/security/advisories/GHSA-wxf9-c5gx-qrwr [No types assigned]
    Added Reference GitHub, Inc. https://github.com/vim/vim/commit/396fd1ec2956307755392a1 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/vim/vim/releases/tag/v9.1.0038 [No types assigned]
    Added CWE GitHub, Inc. CWE-122
    Added CVSS V3.1 GitHub, Inc. AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
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.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-45306 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-2024-45306 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability