{"id":"CVE-2026-45130","aliases":["CVE-2026-45130"],"related":[],"kind":"vulnerability","state":"published","title":"Vim: Heap Buffer Overflow in spell file loading","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Vim es un editor de texto de código abierto, de línea de comandos. Antes de la versión 9.2.0450, existe un desbordamiento de búfer en el heap en read_compound() en src/spellfile.c al cargar un archivo de diccionario (.spl) manipulado con la codificación UTF-8 activa. Un campo de longitud controlado por el atacante en la sección de compuestos del archivo de diccionario desborda una multiplicación de enteros con signo de 32 bits, provocando que se asigne un búfer pequeño para un bucle de escritura que ejecuta muchas iteraciones, desbordando el heap. Debido a que la opción 'spelllang' puede establecerse desde una modeline, una modeline de archivo de texto puede activar la carga del archivo de diccionario si se ha colocado un archivo .spl malicioso en el runtimepath. Este problema ha sido parcheado en la versión 9.2.0450.","source":"nvd"}],"published":"2026-05-08T22:42:35.097Z","modified":"2026-07-24T20:10:00.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","score":6.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","score":6.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-122","CWE-190"],"affected":[{"ranges":[{"version":"< 9.2.0450","status":"affected"}],"vendor":"vim","product":"vim","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"0.12.2"}],"vendor":"neovim","product":"neovim","cpe":"cpe:2.3:a:neovim:neovim:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"9.2.0450"}],"vendor":"vim","product":"vim","cpe":"cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-q4jv-r9gj-6cwv","tags":["exploit","patch","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/commit/92993329178cb1f72d700fff45ca86e1c2d369f8","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vim/vim/releases/tag/v9.2.0450","tags":["product","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/14/3","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-12T13:10:12.632Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45130","url":"https://www.cve.org/CVERecord?id=CVE-2026-45130","licence":"CVE Terms of Use","modified":"2026-05-14T05:17:31.652Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45130","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45130","licence":"Public domain","modified":"2026-07-24T20:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:21.128Z","epss":{"score":0.00197,"percentile":0.05365,"date":"2026-11-30T12:00:22.000Z"}}