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.
Published: 2026-07-09
Score: 5.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw occurs in Vim’s spell sound‑folding logic. In the single‑byte branch of spell_soundfold_sal(), a malformed boundary‑length word written to a fixed‑size stack buffer can overwrite memory beyond the buffer, triggering a crash. This is a classic stack buffer overflow (CWE‑787) and is limited to a denial of service; it does not provide code execution or data tampering.

Affected Systems

All installations of Vim older than revision 9.2.0725 are vulnerable whenibyte 8‑bit encoding. Users who enable spell checking with custom SAL spell files or load spell suggestions that exercise the vulnerable path are at risk.

Risk and Exploitability

The CVSS score of 5.6 indicates moderate severity. The EPSS score is reported as below 1% and the vulnerability is not listed in CISA’s KEV catalog, suggesting a low probability of active exploitation. Based on the description, the likely attack vector is local – an attacker would need to supply a crafted file or word to trigger the sound‑ to invoke spell‑suggestion functionality that processes a boundary‑length word.

Generated by OpenCVE AI on July 29, 2026 at 11:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Vim to version 9.2.0725 or later to apply the official fix.
  • If an immediate upgrade is not possible, temporarily disable spell checking (e.g., turn off the 'spell' option) or change the encoding to a multibyte format such as UTF‑8 to avoid executing the vulnerable single‑byte path.
  • For environments that require spell support, remove or replace any custom spell files containing SAL sound‑folding rules, or avoid selecting SAL‑based languages when using 8‑bit locales.

Generated by OpenCVE AI on July 29, 2026 at 11:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 10 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 09 Jul 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Vim
Vim vim
Vendors & Products Vim
Vim vim

Thu, 09 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
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.
Title Vim: Out-of-bounds Write in SAL Soundfolding
Weaknesses CWE-787
References
Metrics cvssV4_0

{'score': 5.6, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-10T14:14:40.735Z

Reserved: 2026-07-07T15:41:53.606Z

Link: CVE-2026-59857

cve-icon Vulnrichment

Updated: 2026-07-10T14:14:36.840Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-09T22:34:54Z

Links: CVE-2026-59857 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T11:45:03Z

Weaknesses