CVE-2025-24014
segmentation fault in win_line() in Vim < 9.1.1043
Reported by github_m · Published January 20, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-minimal | Amazon Linux | 2:9.0.2153-1.amzn2.0.3 |
| vim-default-editor | Amazon Linux | 2:9.1.1202-1.amzn2023.0.1 |
| vim | Alpine | 9.1.1105-r0 |
| vim-enhanced | Amazon Linux | 2:9.1.1202-1.amzn2023.0.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.1.1043 |
| amazon:2 | vim-minimal | 0 |
| amazon:2023 | vim-default-editor | 0 |
| alpine | vim | 0 |
| amazon:2023 | vim-enhanced | 0 |
| vim | vim | 0 |
| amazon:2 | vim-X11 | 0 |
| amazon:2023 | vim-filesystem | 0 |
| amazon:2 | vim-enhanced | 0 |
| amazon:2 | xxd | 0 |
| amazon:2023 | vim-data | 0 |
| amazon:2 | vim-common | 0 |
| amazon:2023 | vim-common | 0 |
| amazon:2 | vim-filesystem | 0 |
| amazon:2023 | vim-minimal | 0 |
| amazon:2023 | xxd | 0 |
| amazon:2 | vim-data | 0 |
Timeline
- Jan 20, 2025 CVE Published
- Jan 21, 2025 EPSS Score (30 in total, the first dated here)
- Mar 12, 2025 Coalition ESS Score (12 in total, the first dated here)
- Dec 5, 2025 CVE Updated
- Dec 20, 2025 Security Advisory (6 in total, the first dated here)
- Oct 20, 2026 Distribution Patch (4 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-24014
vulnetix vdb fixes CVE-2025-24014
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-24014/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
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 url
- http://www.openwall.com/lists/oss-security/2025/01/21/1 url
- https://security.netapp.com/advisory/ntap-20250314-0005/ url