Skip to main content

Vim CVE-2026-43961

| EUVDEUVD-2026-62411 HIGH
Code Injection (CWE-94)
N/A vendor:alpine
7.8
CVSS 3.1 · Vendor: vendor:alpine
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious file with injected Vimscript
  2. Delivery
    Deliver file to target via phishing or repository
  3. Exploit
    Victim opens file in vulnerable Vim
  4. Execution
    Modeline or script evaluation triggers code injection
  5. Impact
    Arbitrary commands execute as victim user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The victim must actively open a specially crafted file using a vulnerable version of Vim - this is the sole mandatory precondition. Exploitation is constrained to a local attack vector (AV:L) and requires user interaction (UI:R), meaning an attacker cannot exploit this without the file being opened by a Vim user. The attack does not require the attacker to be authenticated to the target system or to hold any system privileges (PR:N), but it does require the ability to deliver the malicious file to the victim's filesystem or persuade the victim to open a remote file. Exploitation is blocked if the user opens the file with a patched Vim build (9.2.0481+), if Vim modelines are disabled via 'set nomodeline', or if the file is not opened interactively in Vim. Exploitation is not possible against automated or headless Vim invocations that do not process Vimscript or modelines from file content.

Impact

The CVSS 7.8 High score reflects the full C:H/I:H/A:H impact triad, but real-world risk is substantially moderated by several factors. AV:L limits exposure to local or socially-engineered delivery - an attacker cannot trigger exploitation remotely without first convincing a user to open a crafted file (UI:R). The EPSS score of 0.01% (3rd percentile) strongly suggests this vulnerability is not being actively targeted at scale, and it is absent from CISA KEV, confirming no confirmed active exploitation at time of analysis. No public proof-of-concept code has been identified from the provided data. The primary real-world risk scenario is a targeted spear-phishing or supply-chain attack where a victim opens a booby-trapped text file. The PR:N metric is noteworthy: while no system privileges are needed to exploit, successful exploitation still requires the social engineering step (UI:R), which meaningfully raises the bar for mass exploitation. This is therefore a credible but low-urgency priority for most environments - higher risk for developer or sysadmin workstations where Vim is regularly used to open untrusted files.

Exploit ScenarioDerived

An attacker crafts a malicious text file (e.g., a configuration file, patch, or document) embedding Vimscript or modeline directives that trigger code injection when parsed by Vim. The attacker delivers this file to the target via email attachment, shared repository, or download, and the victim opens it with Vim in a standard interactive session, causing arbitrary commands to execute with the victim's OS privileges. No confirmed proof-of-concept exploit code has been identified in the provided data, so exploitation likely requires manual crafting based on knowledge of the specific vulnerable code path.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Aug 19, 2026

Code injection in Vim enables local arbitrary code execution when a user opens a specially crafted file, affecting versions prior to the fix packaged as 9.2.0481-r0 on Alpine Linux and addressed separately under Ubuntu USN-8415-1. The vulnerability (CWE-94) arises from improper control over code generation within Vim's scripting or modeline processing, allowing an attacker who can deliver a malicious file to achieve full compromise of confidentiality, integrity, and availability on the target system. No public exploit has been identified at time of analysis, and the EPSS score of 0.01% (3rd percentile) suggests negligible current exploitation activity despite the High CVSS rating.

Earlier versions of this analysis (1)
v1 May 27, 2026 - 22:32

Vim on Alpine Linux contains a vulnerability addressed by the package update to version 9.2.0481-r0. The specific nature, impact, and exploitability of this vulnerability are not disclosed in available intelligence - the only confirmed data point is that Alpine Linux issued a fix. Without a CVE description, CVSS score, or CWE classification, the severity, attack vector, and affected functionality cannot be characterised. Security teams should treat this as a pending-triage item until vendor advisory details are published.

RemediationAI

On Alpine Linux, upgrade the vim package to 9.2.0481-r0 or later using 'apk upgrade vim'. On Ubuntu, apply the fix described in USN-8415-1 (https://ubuntu.com/security/notices/USN-8415-1) via 'apt update && apt upgrade vim'. For Red Hat-based systems, monitor https://access.redhat.com/security/cve/CVE-2026-43961 for a patched RPM. As a compensating control pending patching, disable Vim modelines globally by adding 'set nomodeline' to /etc/vim/vimrc or ~/.vimrc - this prevents file-embedded directives from executing, though it may affect legitimate workflow for users relying on per-file Vim settings. Additionally, avoid opening files from untrusted sources in Vim, and consider using restricted mode ('vim -Z') for scenarios requiring untrusted file inspection. The upstream security advisory at https://github.com/vim/vim/security/advisories/GHSA-66hr-7p6x-x5j3 should be consulted for the canonical upstream fix and any additional mitigations.

Affected VersionsENISA

vim 0 <9.2.0480

Affected Packages

euvd vim fix: 9.2.0480

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Vim is a ubiquitous Unix/Linux text editor with an embedded scripting engine (Vimscript) and support for modelines - per-file directives that are executed when a file is opened. CWE-94 (Improper Control of Generation of Code / Code Injection) indicates the root cause lies in insufficient sanitization or sandboxing of executable constructs derived from file content. Historically, Vim code injection vulnerabilities have exploited modelines, the :source command, or Vimscript evaluation functions such as execute() and eval(), allowing embedded commands in a file to run with the privileges of the user running the editor. The upstream fix is tracked in GitHub Security Advisory GHSA-66hr-7p6x-x5j3 within the vim/vim repository, and the patched release is confirmed at version 9.2.0481 on Alpine Linux. Red Hat also tracks this issue (BZ#2460434), indicating cross-distribution impact.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vendor:alpine) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local delivery of a malicious file with no privileges needed, but mandatory user interaction to open it; full system impact once triggered.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vendor:alpine).

CVSS VectorVendor: vendor:alpine

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Analysis Updated
Aug 19, 2026 - 14:28 vuln.today
v2 - CVSS changed
CVSS changed
Aug 19, 2026 - 14:22 NVD
7.8 (HIGH)

DescriptionCVE.org

Alpine Linux: vim fixed in 9.2.0481-r0

Executive ViewAI

Why It Matters

Vim code injection vulnerability (CVE-2026-43961) affecting versions prior to 9.2.0481 allows arbitrary code execution through specially crafted files, creating risk for all users with outdated Vim installations. Currently showing minimal exploitation activity (0.01% EPSS) but poses significant risk to developers and system administrators who handle potentially untrusted files.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Prevalence
High
default text editor on most Linux and Unix systems
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy