{"id":"JLSEC-2026-1878","details":"Vim is an open source, command line text editor. Prior to version 9.2.0565, the `update_snapshot()` function in `src/terminal.c` copies the visible terminal screen into the scrollback buffer when a snapshot is taken. For each screen cell it walks the cell's chars[] array with no upper bound, stopping only when it encounters a NUL terminator. When a cell legitimately fills all `VTERM_MAX_CHARS_PER_CELL` (6) slots — a base character plus five combining marks — the bundled libvterm returns the array without a terminating NUL, so the loop reads past the fixed six-element array and appends the out-of-bounds values to a buffer reserved for only six characters. A program whose output is rendered inside a :terminal window can trigger this with a short byte sequence and no Vim scripting, leading to a crash. This issue has been patched in version 9.2.0565.","modified":"2026-12-02T14:45:11.559579031Z","published":"2026-12-02T14:32:56.182Z","upstream":["CVE-2026-52859","EUVD-2026-36283"],"database_specific":{"license":"CC-BY-4.0","sources":[{"published":"2026-06-11T19:16:47.627Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-52859","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52859","database_specific":{"status":"Analyzed"},"affected":{"vim:vim":["\u003c 9.2.0565"]},"id":"CVE-2026-52859","imported":"2026-12-02T14:11:18.578Z","modified":"2026-06-17T10:57:53.623Z"},{"url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-36283","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-36283","affected":{"vim:vim":["\u003c 9.2.0565"]},"id":"EUVD-2026-36283","imported":"2026-12-02T14:11:20.012Z","modified":"2026-06-11T19:38:46Z","published":"2026-06-11T18:33:09Z"}]},"references":[{"type":"WEB","url":"https://github.com/vim/vim/commit/63680c6d3d52477817b49cd1a66e7aabe8a7aa19"},{"type":"WEB","url":"https://github.com/vim/vim/releases/tag/v9.2.0565"},{"type":"WEB","url":"https://github.com/vim/vim/security/advisories/GHSA-47gw-8gc3-mgcm"}],"affected":[{"package":{"name":"Vim_jll","ecosystem":"Julia","purl":"pkg:julia/Vim_jll?uuid=1e82aed4-b73c-514c-b6b0-721e3fbe9c02"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1878.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","source":"NVD"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"CNA"}]}