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-46483

CVE-2026-46483: Vim Text Editor RCE Vulnerability

CVE-2026-46483 is a command injection flaw in Vim that allows remote code execution through crafted .tgz archive filenames. This article covers technical details, affected versions, impact, and mitigation.

Published: May 21, 2026

CVE-2026-46483 Overview

CVE-2026-46483 is a command injection vulnerability [CWE-78] in the Vim text editor's tar.vim runtime plugin. The flaw exists in the tar#Vimuntar() function within runtime/autoload/tar.vim when decompressing .tgz archives on Unix-like systems. The function builds :!gunzip and :!gzip -d commands using shellescape(tartail) without the {special} flag. This omission allows a crafted archive filename to trigger Vim cmdline-special expansion and execute arbitrary shell commands in the user's context. The issue affects Vim versions prior to 9.2.0479 and was fixed in release 9.2.0479.

Critical Impact

A maliciously named .tgz archive can execute arbitrary shell commands with the privileges of the user running Vim, leading to full local code execution.

Affected Products

  • Vim versions prior to 9.2.0479
  • runtime/autoload/tar.vim plugin on Unix-like systems
  • Any platform where Vim processes .tgz archives through the tar plugin

Discovery Timeline

  • 2026-05-15 - CVE-2026-46483 published to NVD
  • 2026-05-19 - Last updated in NVD database

Technical Details for CVE-2026-46483

Vulnerability Analysis

The vulnerability resides in Vim's tar.vim runtime plugin, which provides transparent editing of tar archives. When a user opens a .tgz file, the tar#Vimuntar() function invokes external decompression utilities through Vim's :! shell-execution syntax. The function passes the archive filename through shellescape() to neutralize shell metacharacters but omits the {special} argument required when the escaped value is embedded in a :! command.

Without {special}, Vim's cmdline-special characters such as %, #, and ! are not escaped. These tokens undergo Vim expansion before the shell receives the command line. An attacker who controls the archive filename can embed cmdline-special sequences that Vim expands into attacker-chosen content, bypassing the shell-quoting protection entirely.

Root Cause

The root cause is incorrect use of shellescape() when constructing shell commands for :!. The Vim documentation states that the {special} flag must be set to non-zero when the result will be passed to :! so that cmdline-special characters receive a backslash escape. The pre-patch code called shellescape(tartail) instead of shellescape(tartail, 1), leaving expansion-time substitution exploitable.

Attack Vector

Exploitation requires a victim to open a crafted .tgz archive in Vim. The archive filename contains cmdline-special metacharacters that Vim expands when building the :!gunzip or :!gzip -d command. Once expansion occurs, the shell executes attacker-controlled commands under the user's account. User interaction is required, and the attacker must place the file where the victim will open it.

text
"   2026 Apr 09 by Vim Project: fix bug with dotted filename (#19930)
"   2026 Apr 15 by Vim Project: fix more path traversal issues (#19981)
"   2026 Apr 16 by Vim Project: use g:tar_secure in tar#Extract()
"   2026 May 14 by Vim Project: use correct shellescape() call in Vimuntar()

Source: Vim commit 3fb5e58fbc63 — the patch header documents the corrected shellescape() call in Vimuntar().

Detection Methods for CVE-2026-46483

Indicators of Compromise

  • .tgz archive files with unusual filenames containing %, #, or ! characters
  • Unexpected child shell processes spawned by vim or gvim when opening archive files
  • Shell history entries showing commands triggered by file open operations rather than user input
  • Outbound network connections initiated shortly after a user opens a .tgz file in Vim

Detection Strategies

  • Monitor process trees where vim or gvim is the parent of sh, bash, gunzip, or gzip invocations with anomalous arguments
  • Inspect file write events for .tgz files placed in user-accessible locations such as Downloads, /tmp, or shared directories
  • Track Vim plugin and runtime version inventory across endpoints to identify hosts running versions earlier than 9.2.0479

Monitoring Recommendations

  • Enable command-line auditing through auditd or equivalent on Linux endpoints to capture full shell command arguments
  • Log file open events for archive types associated with editor plugins
  • Alert on filename patterns containing cmdline-special characters in user-writable directories

How to Mitigate CVE-2026-46483

Immediate Actions Required

  • Upgrade Vim to version 9.2.0479 or later on all Unix-like systems
  • Audit endpoint inventory to identify Vim builds shipped by distribution packages that remain at vulnerable versions
  • Instruct users to avoid opening untrusted .tgz archives directly in Vim until patches are deployed

Patch Information

The fix is delivered in Vim patch 9.2.0479, which corrects the shellescape() invocation in tar#Vimuntar() to include the {special} flag. Review the Vim Security Advisory GHSA-2fpv-9ff7-xg5w and the GitHub Release v9.2.0479 for source and binary distribution details.

Workarounds

  • Disable the bundled tar plugin by adding let g:loaded_tarPlugin = 1 and let g:loaded_tar = 1 to ~/.vimrc
  • Decompress .tgz archives outside of Vim using standalone tar and gzip utilities before editing contents
  • Restrict file associations so that archive files do not open in Vim by default
bash
# Disable Vim tar plugin until patched version is installed
cat >> ~/.vimrc <<'EOF'
let g:loaded_tarPlugin = 1
let g:loaded_tar = 1
EOF

# Verify installed Vim version meets or exceeds the fixed release
vim --version | head -n 1

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.0

  • EPSS Probability0.02%

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

  • GitHub Security Advisory GHSA-2fpv-9ff7-xg5w
  • Related CVEs
  • CVE-2026-44656: Vim Command Injection RCE Vulnerability

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

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

  • CVE-2026-39881: 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