VDB

CVE-2025-24014

CVE-2025-24014 PUBLISHED CVSS 4.2 MEDIUM

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.

PackageEcosystemFixed in
vim-minimalAmazon Linux2:9.0.2153-1.amzn2.0.3
vim-default-editorAmazon Linux2:9.1.1202-1.amzn2023.0.1
vimAlpine9.1.1105-r0
vim-enhancedAmazon Linux2:9.1.1202-1.amzn2023.0.1

Risk scores

CVSS 3.1
4.2
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L

Affected products

VendorProductVersions
vimvim< 9.1.1043
amazon:2vim-minimal0
amazon:2023vim-default-editor0
alpinevim0
amazon:2023vim-enhanced0
vimvim0
amazon:2vim-X110
amazon:2023vim-filesystem0
amazon:2vim-enhanced0
amazon:2xxd0
amazon:2023vim-data0
amazon:2vim-common0
amazon:2023vim-common0
amazon:2vim-filesystem0
amazon:2023vim-minimal0
amazon:2023xxd0
amazon:2vim-data0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›