The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-33412

CVE-2026-33412: Vim Text Editor RCE Vulnerability

CVE-2026-33412 is a command injection RCE vulnerability in Vim text editor's glob() function that allows attackers to execute arbitrary shell commands via newline characters. This article covers technical details, affected versions, and mitigation.

Updated: May 14, 2026

CVE-2026-33412 Overview

CVE-2026-33412 is a command injection vulnerability in Vim, the open source command line text editor, affecting versions prior to 9.2.0202 on Unix-like systems. The flaw resides in Vim's glob() function, which fails to properly sanitize newline characters (\n) within pattern arguments. An attacker who can influence a pattern passed to glob() may execute arbitrary shell commands under the privileges of the Vim user. Successful exploitation depends on the user's configured shell setting. The maintainers patched the issue in version 9.2.0202.

Critical Impact

Arbitrary shell command execution through crafted glob patterns containing newline characters, leading to full compromise of confidentiality, integrity, and availability under the affected user context.

Affected Products

  • Vim versions prior to 9.2.0202
  • Unix-like operating systems where Vim invokes a shell to resolve glob patterns
  • Scripts, plugins, and modelines that pass attacker-influenced input to glob()

Discovery Timeline

  • 2026-03-19 - Issue discussed publicly on the OpenWall oss-security mailing list
  • 2026-03-24 - CVE-2026-33412 published to NVD
  • 2026-03-25 - Last updated in NVD database

Technical Details for CVE-2026-33412

Vulnerability Analysis

The vulnerability is classified as a Command Injection issue under [CWE-78] (Improper Neutralization of Special Elements used in an OS Command). Vim's glob() function expands file path patterns by delegating to a shell on Unix-like systems. When the supplied pattern contains a newline character, the shell interprets the content after the newline as a separate command. Because glob() is frequently called by plugins, autocommands, and user scripts with values derived from filenames, buffer contents, or external sources, the function becomes a viable injection sink. Exploitation requires local interaction, such as opening a crafted file or running a script that invokes glob() against untrusted data.

Root Cause

The root cause is missing neutralization of shell metacharacters, specifically the newline byte, before passing pattern arguments to the underlying shell invocation. Vim relied on the user's shell option to expand globs without escaping line terminators, so any pattern containing \n produced a shell command boundary that the interpreter then executed.

Attack Vector

An attacker crafts content that causes glob() to receive a pattern such as legit_path\ncommand_to_run. When Vim, a plugin, or a modeline calls glob() on that value, the shell splits the input on the newline and executes the appended command. Delivery paths include malicious filenames in an archive, hostile project directories opened in Vim, plugin behaviors that pass buffer text to glob(), or scripted environments where untrusted input flows into pattern arguments. Exploitation runs with the privileges of the Vim process and is constrained to interpreters honored by the user's shell setting.

No verified public proof-of-concept code is included in the advisory. See the GitHub Security Advisory GHSA-w5jw-f54h-x46c and the upstream fix commit for technical details on the corrected sanitization logic.

Detection Methods for CVE-2026-33412

Indicators of Compromise

  • Vim child processes spawning shells (sh, bash, zsh) that execute unexpected commands such as curl, wget, nc, or base64-encoded payloads.
  • Filenames or buffer content containing embedded newline bytes adjacent to shell metacharacters.
  • Unexpected outbound network connections initiated from a Vim process tree shortly after a file is opened.

Detection Strategies

  • Inventory installed Vim binaries and flag any version earlier than 9.2.0202 on Unix-like hosts.
  • Hunt for process lineage where vim or gvim is the parent of shell processes executing arguments not tied to expected editor workflows.
  • Inspect plugin and script repositories for calls to glob() that consume untrusted input without prior sanitization.

Monitoring Recommendations

  • Enable command-line auditing (for example, auditd with execve rules) on developer and administrator workstations.
  • Alert on Vim spawning interpreters that subsequently invoke networking or persistence tooling.
  • Review historical shell history and audit logs for anomalous commands executed in user sessions immediately after editor activity.

How to Mitigate CVE-2026-33412

Immediate Actions Required

  • Upgrade Vim to version 9.2.0202 or later on all Unix-like systems.
  • Audit shared plugins, build scripts, and CI runners that invoke glob() against attacker-influenced data.
  • Treat files received from untrusted sources, including archives and shared repositories, as potentially malicious until the patched version is deployed.

Patch Information

The fix is delivered in Vim 9.2.0202 and tracked in the upstream commit 645ed6597d1ea896c712cd7ddbb6edee79577e9a. Reference the Vim 9.2.0202 release notes, the upstream commit, and the GHSA-w5jw-f54h-x46c advisory for distribution-specific package updates.

Workarounds

  • Avoid invoking glob() on data sourced from untrusted files, buffers, or environment variables until patched.
  • Set the shell option to an interpreter with reduced functionality, or disable plugins that pass external content into glob().
  • Disable modelines (set nomodeline) to reduce the risk of attacker-controlled configuration influencing glob expansion.
bash
# Configuration example
# Verify installed Vim version
vim --version | head -n 1

# Debian/Ubuntu: upgrade Vim packages
sudo apt update && sudo apt install --only-upgrade vim vim-common vim-runtime

# RHEL/Fedora: upgrade Vim packages
sudo dnf upgrade vim-enhanced vim-common

# Defensive hardening in ~/.vimrc until patched
set nomodeline

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechVim

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Release v9.2.0202
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-w5jw-f54h-x46c

  • OpenWall OSS-Security Discussion
  • Related CVEs
  • CVE-2026-46483: Vim Text Editor RCE Vulnerability

  • CVE-2026-44656: Vim Command Injection RCE Vulnerability

  • CVE-2026-42307: Vim Text Editor RCE Vulnerability

  • CVE-2026-41411: Vim Text Editor RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English