# CVE-2026-45130: Vim: Heap Buffer Overflow in spell file loading

- Severity: Medium 6.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H`
- 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.20%, higher than 5% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-08T22:42:35.097Z
- Modified: 2026-07-24T20:10:00.147Z
- Weaknesses: CWE-122, CWE-190
- 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 version 9.2.0450, a heap buffer overflow exists in read_compound() in src/spellfile.c when loading a crafted spell file (.spl) with UTF-8 encoding active. An attacker-controlled length field in the spell file's compound section overflows a 32-bit signed integer multiplication, causing a small buffer to be allocated for a write loop that runs many iterations, overflowing the heap. Because the 'spelllang' option can be set from a modeline, a text file modeline can trigger spell file loading if a malicious .spl file has been planted on the runtimepath. This issue has been patched in version 9.2.0450.

(As written by CVE List.)

## Affected

- vim vim: < 9.2.0450; before 9.2.0450
- neovim neovim: up to 0.12.2

## Every score

- GitHub_M: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H`
- 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-q4jv-r9gj-6cwv> (exploit, patch, vendor-advisory)
- <https://github.com/vim/vim/commit/92993329178cb1f72d700fff45ca86e1c2d369f8> (patch)
- <https://github.com/vim/vim/releases/tag/v9.2.0450> (product)
- <http://www.openwall.com/lists/oss-security/2026/05/14/3> (mailing-list, third-party-advisory)

## Sources

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

---

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