Command Injection Vulnerability in Vim Package - CVE-2026-33412

vim Updated 25 Mar 2026

Summary

24/03/2026
N/A
Yes i
Medium
5.6

ALPINE-CVE-2026-33412: Vim is an open source, command line text editor. Affects vim versions < 9.2.0219-r0. Fixed in 9.2.0219-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Vim is a widely-used open-source command line text editor known for its efficiency and versatility in text manipulation. It supports various programming languages and offers features like syntax highlighting, multi-level undo, and extensive plugin support. However, prior to version 9.2.0202, Vim is vulnerable to a command injection issue in its glob() function on Unix-like systems, which can be exploited if certain conditions are met.

Vulnerability Detail

The vulnerability arises from the way Vim handles patterns passed to its glob() function. By including a newline character (\n) in the pattern, an attacker can potentially execute arbitrary shell commands. This issue is contingent upon the user's 'shell' setting, making it a significant risk for users who may inadvertently expose their systems to command execution vulnerabilities. The ramifications of this vulnerability could lead to unauthorized access or control over the affected system, depending on the commands executed.

How To Fix

Minimum fixed version

9.2.0219-r0

This is the first release that contains the fix.

sudo apk add --upgrade vim

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using patterns with newline characters in the glob() function until they can update to the patched version. Additionally, reviewing and adjusting the 'shell' setting in Vim may help mitigate the risk.

Conclusion

The command injection vulnerability in Vim (CVE-2026-33412) poses a significant risk to users of the text editor prior to version 9.2.0202. It is crucial for users to update their software to the patched version to mitigate potential security threats. Additionally, utilizing tools like Vulert can help monitor for such vulnerabilities in the future.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2026-33412 is a command injection vulnerability found in the Vim text editor that allows attackers to execute arbitrary shell commands by manipulating the glob() function.

You can check your Vim version by running 'vim --version' in the terminal. If it is below 9.2.0202, it is vulnerable.

If exploited, this vulnerability could allow an attacker to execute arbitrary commands on the affected system, potentially leading to unauthorized access or control.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

More information can be found on the official CVE database or by visiting Vulert's playground at Vulert Scanner.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

9.2.0219-r0

This is the first release that contains the fix.

sudo apk add --upgrade vim

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback