{"id":"CVE-2026-59857","aliases":["CVE-2026-59857"],"related":[],"kind":"vulnerability","state":"published","title":"Vim: Out-of-bounds Write in SAL Soundfolding","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-07-09T22:34:54.698Z","modified":"2026-07-10T19:23:21.923Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":5.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":5.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"version":"< 9.2.0725","status":"affected"}],"vendor":"vim","product":"vim","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"9.2.0725"}],"vendor":"vim","product":"vim","cpe":"cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-m3hf-xcm3-xhm2","tags":["patch","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/commit/d22ff1c955ff87e8273210eae125aab0e85b6c30","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-10T14:14:30.879Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59857","url":"https://www.cve.org/CVERecord?id=CVE-2026-59857","licence":"CVE Terms of Use","modified":"2026-07-10T14:14:40.735Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59857","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59857","licence":"Public domain","modified":"2026-07-10T19:23:21.923Z"}],"updatedAt":"2026-11-25T22:59:27.579Z","epss":{"score":0.0011,"percentile":0.01382,"date":"2026-12-01T12:00:22.000Z"}}