CVE Catalog

CVE-2026-34982

HighCVSS 8.2
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.47%

39th percentile - higher than 39% of all known CVEs

Summary

A vulnerability in Vim prior to version 9.2.0276 allows a modeline sandbox bypass leading to arbitrary OS command execution. The `complete`, `guitabtooltip`, and `printheader` options lack the `P_MLE` flag, and the `mapset()` function is missing a `check_secure()` call, enabling exploitation from sandboxed expressions.

Risk Assessment

The risk involves remote code execution when a user opens a crafted file, potentially leading to system compromise, data theft, or lateral movement within the network.

Recommendation

Upgrade Vim to version 9.2.0276 or later immediately. If upgrading is not feasible, disable modeline processing in the user configuration.

Other vulnerabilities in Vim

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS