CVE-2026-34982

Publication date 6 April 2026

Last updated 14 April 2026


Ubuntu priority

Cvss 3 Severity Score

8.2 · High

Score breakdown

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.

Status

Package Ubuntu Release Status
vim 25.10 questing
Fixed 2:9.1.0967-1ubuntu6.2
24.04 LTS noble
Fixed 2:9.1.0016-1ubuntu7.11
22.04 LTS jammy
Fixed 2:8.2.3995-1ubuntu2.27
20.04 LTS focal
Fixed 2:8.1.2269-1ubuntu5.32+esm3
18.04 LTS bionic
Not affected
16.04 LTS xenial
Not affected
14.04 LTS trusty
Not affected

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
vim

Severity score breakdown

Parameter Value
Base score 8.2 · High
Attack vector Local
Attack complexity Low
Privileges required None
User interaction Required
Scope Changed
Confidentiality High
Integrity impact High
Availability impact None
Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

References

Related Ubuntu Security Notices (USN)

Other references


Access our resources on patching vulnerabilities