| Name | CVE-2026-34982 |
| Description | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1132450 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| vim (PTS) | bullseye | 2:8.2.2434-3+deb11u1 | vulnerable |
| bullseye (security) | 2:8.2.2434-3+deb11u3 | vulnerable | |
| bookworm | 2:9.0.1378-2+deb12u2 | vulnerable | |
| trixie | 2:9.1.1230-2 | vulnerable | |
| forky, sid | 2:9.2.0355-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| vim | source | (unstable) | 2:9.2.0315-1 | 1132450 |
https://github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9
Fixed by: https://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615f13a7de44c0587 (v9.2.0276)