CVE-2026-33412
Modified Modified - Updated After Analysis

Command Injection in Vim glob() Function Allows Arbitrary Code Execution

Vulnerability report for CVE-2026-33412, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-03-24

Last updated on: 2026-06-30

Assigner: GitHub, Inc.

Description

Vim is an open source, command line text editor. Prior to version 9.2.0202, a command injection vulnerability exists in Vim's glob() function on Unix-like systems. By including a newline character (\n) in a pattern passed to glob(), an attacker may be able to execute arbitrary shell commands. This vulnerability depends on the user's 'shell' setting. This issue has been patched in version 9.2.0202.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-03-24
Last Modified
2026-06-30
Generated
2026-07-07
AI Q&A
2026-03-24
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
vim vim to 9.2.0202 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the glob() function of the Vim text editor on Unix-like systems prior to version 9.2.0202. An attacker can include a newline character (\n) in a pattern passed to the glob() function, which may allow them to execute arbitrary shell commands. The exploitability depends on the user's 'shell' setting.

Impact Analysis

If exploited, this vulnerability can allow an attacker to execute arbitrary shell commands with the privileges of the user running Vim. This could lead to unauthorized actions such as modifying files, stealing data, or further compromising the system.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

To mitigate this vulnerability, you should upgrade Vim to version 9.2.0202 or later, where the issue has been patched.

Avoid using untrusted input in the glob() function, especially patterns containing newline characters, until the update is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-33412. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart