CVE-2026-59857: vim Out-of-bounds Write
Vulnerability summary
CVE-2026-59857 is a medium (CVSS 5.6) Out-of-bounds Write vulnerability in vim. EPSS estimates a 0.11% chance of exploitation in the next 30 days, higher than 1.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 14 · Related 10Timeline
- 09-07-2026PublishedVulnerability first disclosed.
- 10-07-2026Last modifiedVulnerability information updated.
Description
Vim is an open source, command line text editor. Prior to 9.2.0725, the single-byte branch of spell_soundfold_sal() in src/spell.c translates a word through a spell file's SAL sound-folding rules into a caller-owned result buffer, but its result writes are guarded with reslen < MAXWLEN, allowing reslen to reach MAXWLEN before res[reslen] = NUL writes one byte past the end of the MAXWLEN-element stack buffer. A boundary-length word passed to soundfold(), or reached via sound-based spell suggestion while a SAL-based spell language is active under a non-multibyte 8-bit encoding, can corrupt the eval_soundfold() stack frame and crash the editor. This issue is fixed in version 9.2.0725.
CVSS metrics
7 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.6MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- NVDNIST5.6MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.11%
Chance of exploitation in the next 30 days
Percentile
1%
Versus all other CVEs
30-day change
0.00 pp
From 0.11% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Alpine1 product
- vim< 9.2.0854-r0
Debian1 product
- vimAll versions (No fix recorded) | < 2:9.2.0782-1
Ubuntu1 product
- vim< 2:7.4.052-1ubuntu3.1+esm31 | < 2:7.4.1689-3ubuntu1.5+esm37 | < 2:8.0.1453-1ubuntu1.13+esm22 | < 2:8.1.2269-1ubuntu5.32+esm10 | < 2:8.2.3995-1ubuntu2.34 | < 2:9.1.0016-1ubuntu7.18 | < 2:9.1.2141-1ubuntu4.7
Vim1 product
- vim< 9.2.0725
4 vendors · 4 products
References
7 links- github.com/vim/vim/security/advisories/GHSA-m3hf-xcm3-xhm2X Refsource CONFIRMREPORTPatchVendor Advisory