VYPR
Unrated severityNVD Advisory· Published Jan 20, 2025· Updated Mar 14, 2025

segmentation fault in win_line() in Vim < 9.1.1043

CVE-2025-24014

Description

Segmentation fault in Vim before 9.1.1043 when processing binary characters in silent Ex mode, leading to out-of-bounds write.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Segmentation fault in Vim before 9.1.1043 when processing binary characters in silent Ex mode, leading to out-of-bounds write.

Vulnerability

The vulnerability resides in the win_line() function (drawline.c:3977) of Vim. When Vim is run in silent Ex mode (-s -e), it normally operates without a screen. However, feeding specially crafted binary characters can trigger gui_do_scroll(), which calls updateWindow(). This attempts to access the ScreenLines pointer, which has not been allocated because no screen exists, resulting in a segmentation fault. Affected versions are Vim before 9.1.1043. The issue is fixed in Vim 9.1.1043 [1][2].

Exploitation

An attacker needs to provide binary characters to Vim while it is running in silent Ex mode (-s -e). The user must explicitly execute Vim with these flags and feed the binary data, for example via a malicious script file using -S. No authentication or network access is required; the attack is local. The specific command to reproduce is vim -u NONE -i NONE -n -m -X -Z -e -s -S <poc_file> -c :qa!. Feeding the binary content triggers the scroll function, leading to a crash [1].

Impact

Successful exploitation causes a segmentation fault, resulting in denial of service. This is classified as an out-of-bounds write (CWE-787). The impact is considered medium because it requires user interaction (feeding binary data in ex mode). There is no indication of code execution or data leakage from the references [1].

Mitigation

The vulnerability is fixed in Vim version 9.1.1043. Users should update to this version or later. If updating is not immediately possible, avoid running Vim in silent Ex mode with untrusted input. The fix adds a check for ScreenLines being NULL before calling updateWindow() in gui_do_scroll() [1][2].

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

12

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.