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

Published Jul 9, 2026
·
Updated

Last updated 13 July 2026

Other sources

Vim is an open source, command line text editor. Prior to 9.2.0725, the single-byte branch of spellsoundfoldsal() 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 evalsoundfold() stack frame and crash the editor. This issue is fixed in version 9.2.0725.

NVD

Affected Software

3 affected componentsFixes available
vim Vim<9.2.0725
vim Vim<9.2.0725
debian/vim<=2:8.2.2434-3+deb11u1, <=2:8.2.2434-3+deb11u3, <=2:9.0.1378-2+deb12u2, <=2:9.1.1230-2, <=2:9.2.0524-1
2:9.2.0782-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/vim to a version that resolves this vulnerability.

    Fixed in 2:9.2.0782-1
  2. Upgrade

    Upgrade vim to a version that resolves this vulnerability.

    Fixed in 9.2.0725

Event History

Jul 9, 2026
CVE Published
via MITRE·10:34 PM
Data Sourced
via MITRE·10:34 PM
DescriptionWeakness
Data Sourced
via NVD·11:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 14, 2026
Data Sourced
via Ubuntu·08:29 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·08:30 PM
Description
Data Sourced
via Debian·08:30 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-59857?

CVE-2026-59857 has a medium severity rating of 5.6.

2

How do I fix CVE-2026-59857?

To fix CVE-2026-59857, update Vim to version 9.2.0725 or later.

3

What type of vulnerability is CVE-2026-59857?

CVE-2026-59857 is an out-of-bounds write vulnerability.

4

What component of Vim is affected by CVE-2026-59857?

CVE-2026-59857 affects the spell_soundfold_sal() function in src/spell.c.

5

What could be the potential impact of exploiting CVE-2026-59857?

Exploitation of CVE-2026-59857 could lead to memory corruption and potential execution of arbitrary code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203