# CVE-2026-59857: Vim: Out-of-bounds Write in SAL Soundfolding

- Severity: Medium 5.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-07-09T22:34:54.698Z
- Modified: 2026-07-10T19:23:21.923Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0725; before 9.2.0725

## Every score

- GitHub_M: CVSS:4.0 5.6 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/vim/vim/security/advisories/GHSA-m3hf-xcm3-xhm2> (patch, vendor-advisory)
- <https://github.com/vim/vim/commit/d22ff1c955ff87e8273210eae125aab0e85b6c30> (patch)

## Sources

- CVE List: [CVE-2026-59857](https://www.cve.org/CVERecord?id=CVE-2026-59857), CVE Terms of Use, modified 2026-07-10
- NVD: [CVE-2026-59857](https://nvd.nist.gov/vuln/detail/CVE-2026-59857), Public domain, modified 2026-07-10

---

Page: https://cve.day/CVE-2026-59857 · Whole record: https://cve.day/CVE-2026-59857.json · Rebuilt by cve.day 2026-11-25T22:59:27.579Z
