Vulnerability · Published Jan 20, 2025 · Assigned by GitHub_M

CVE-2025-24014segmentation fault in win_line() in Vim < 9.1.1043

Medium 4.2

In plain English

A medium-severity out-of-bounds write in vim from vim. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.2Medium
Exploit odds (30 days)0.3%top 79.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Vim is an open source, command line text editor. A segmentation fault was found in Vim before 9.1.1043. In silent Ex mode (-s -e), Vim typically doesn't show a screen and just operates silently in batch mode. However, it is still possible to trigger the function that handles the scrolling of a gui version of Vim by feeding some binary characters to Vim. The function that handles the scrolling however may be triggering a redraw, which will access the ScreenLines pointer, even so this variable hasn't been allocated (since there is no screen). This vulnerability is fixed in 9.1.1043.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.21vim9.1.1105-r0ALPINE-CVE-2025-24014
Alpine:v3.22vim9.1.1105-r0ALPINE-CVE-2025-24014
Alpine:v3.23vim9.1.1105-r0ALPINE-CVE-2025-24014
Alpine:v3.24vim9.1.1105-r0ALPINE-CVE-2025-24014
Debian:12vimno fix listedDEBIAN-CVE-2025-24014
Debian:13vim2:9.1.1113-1DEBIAN-CVE-2025-24014
Debian:14vim2:9.1.1113-1DEBIAN-CVE-2025-24014
Ubuntu:22.04:LTSvim2:8.2.3995-1ubuntu2.23USN-7261-1
Ubuntu:22.04:LTSvim2:8.2.3995-1ubuntu2.23UBUNTU-CVE-2025-24014
Ubuntu:24.04:LTSvim2:9.1.0016-1ubuntu7.7UBUNTU-CVE-2025-24014
Ubuntu:24.04:LTSvim2:9.1.0016-1ubuntu7.7USN-7261-2
Ubuntu:25.10vim2:9.1.0967-1ubuntu4UBUNTU-CVE-2025-24014

Affected products (as reported)

VendorProductVersions
vim vim < 9.1.1043

Weakness: CWE-787 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L

References