CVE-2025-24014: segmentation fault in win_line() in Vim < 9.1.1043
Last updated 2 April 2025
Other sources
segmentation fault in winline() in Vim < 9.1.1043
— Microsoft
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/vimto a version that resolves this vulnerability.Fixed in 2:9.1.1230-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.1.0791-3 - Upgrade
Upgrade
vimto a version that resolves this vulnerability.Fixed in 9.1.1043
Event History
Frequently Asked Questions
What is the severity of CVE-2025-24014?
CVE-2025-24014 has been identified with a medium severity level due to the potential for a segmentation fault.
How do I fix CVE-2025-24014?
To fix CVE-2025-24014, update Vim to version 9.1.1043 or later.
What versions of Vim are affected by CVE-2025-24014?
CVE-2025-24014 affects all versions of Vim prior to 9.1.1043.
What might happen if I don't address CVE-2025-24014?
If left unaddressed, CVE-2025-24014 could lead to application crashes when using Vim in silent mode.
Is CVE-2025-24014 a remote code execution vulnerability?
No, CVE-2025-24014 is not a remote code execution vulnerability; it primarily causes a segmentation fault.