Vim is an open source, command line text editor. Prior to version 9.2.0276, a modeline sandbox bypass in Vim allows arbitrary OS command execution when a user opens a crafted file. The complete, guitabtooltip and printheader options are missing the P_MLE flag, allowing a modeline to be executed. Additionally, the mapset() function lacks a check_secure() call, allowing it to be abused from sandboxed expressions. Commit 9.2.0276 fixes the issue.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"vim:vim": [
"< 9.2.0276"
]
},
"database_specific": {
"status": "Modified"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34982",
"id": "CVE-2026-34982",
"imported": "2026-12-02T14:11:18.566Z",
"modified": "2026-10-24T13:10:00.147Z",
"published": "2026-04-06T16:16:38.777Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-34982"
},
{
"affected": {
"vim:vim": [
"< 9.2.0276"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-19313",
"id": "EUVD-2026-19313",
"imported": "2026-12-02T14:11:19.980Z",
"modified": "2026-09-18T12:04:40Z",
"published": "2026-04-06T15:16:48Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-19313"
}
]
}