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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34982.json",
"cwe_ids": [
"CWE-78"
],
"cna_assigner": "GitHub_M"
}"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-34982.json"
"2026-04-13T11:49:03Z"
[
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"124492020815509593422936910850338184400",
"45094403231839088153862330729590668712",
"105230883226758972153356304034016734357",
"328779483098883598427762483181000925244",
"244052100087722921688726228801992498172",
"224201003299350336285826780236452364014",
"112330819030412797592415187165726291105",
"144548607432168970300980254313965834909",
"313915566837111654239097748603413486032",
"253230725368472660578108198961784593772",
"291561965986465463525651897996888586643",
"145428975366014916339370979314370220298"
],
"threshold": 0.9
},
"target": {
"file": "src/optiondefs.h"
},
"source": "https://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615f13a7de44c0587",
"signature_version": "v1",
"id": "CVE-2026-34982-03e487bb"
},
{
"deprecated": false,
"signature_type": "Line",
"digest": {
"line_hashes": [
"228393681525939479350192031018501872569",
"168908116087355750439376913434106695929",
"65731366028904453068618426076552384950"
],
"threshold": 0.9
},
"target": {
"file": "src/map.c"
},
"source": "https://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615f13a7de44c0587",
"signature_version": "v1",
"id": "CVE-2026-34982-cdc8b5e6"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"146200493773228420153804765641940418619",
"277728595335382545528713226920729349078",
"259122624256313574229013278604097692760",
"314314875296552231078082528572430644588"
],
"threshold": 0.9
},
"target": {
"file": "src/version.c"
},
"source": "https://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615f13a7de44c0587",
"signature_version": "v1",
"id": "CVE-2026-34982-db8d75c8"
}
]