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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | vim | 9.1.1105-r0 | ALPINE-CVE-2025-24014 |
| Alpine:v3.22 | vim | 9.1.1105-r0 | ALPINE-CVE-2025-24014 |
| Alpine:v3.23 | vim | 9.1.1105-r0 | ALPINE-CVE-2025-24014 |
| Alpine:v3.24 | vim | 9.1.1105-r0 | ALPINE-CVE-2025-24014 |
| Debian:12 | vim | no fix listed | DEBIAN-CVE-2025-24014 |
| Debian:13 | vim | 2:9.1.1113-1 | DEBIAN-CVE-2025-24014 |
| Debian:14 | vim | 2:9.1.1113-1 | DEBIAN-CVE-2025-24014 |
| Ubuntu:22.04:LTS | vim | 2:8.2.3995-1ubuntu2.23 | USN-7261-1 |
| Ubuntu:22.04:LTS | vim | 2:8.2.3995-1ubuntu2.23 | UBUNTU-CVE-2025-24014 |
| Ubuntu:24.04:LTS | vim | 2:9.1.0016-1ubuntu7.7 | UBUNTU-CVE-2025-24014 |
| Ubuntu:24.04:LTS | vim | 2:9.1.0016-1ubuntu7.7 | USN-7261-2 |
| Ubuntu:25.10 | vim | 2:9.1.0967-1ubuntu4 | UBUNTU-CVE-2025-24014 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
References
- https://github.com/vim/vim/security/advisories/GHSA-j3g9-wg22-v955 x_refsource_CONFIRM
- https://github.com/vim/vim/commit/9d1bed5eccdbb46a26b8a484f5e9163c40e63919 x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2025/01/20/4
- http://www.openwall.com/lists/oss-security/2025/01/21/1
- https://security.netapp.com/advisory/ntap-20250314-0005/