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
    • 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-2021-25282

CVE-2021-25282: SaltStack Salt Path Traversal Flaw

CVE-2021-25282 is a path traversal vulnerability in SaltStack Salt affecting versions before 3002.5. Attackers can exploit the salt.wheel.pillar_roots.write method to access unauthorized directories.

Published: February 25, 2026

CVE-2021-25282 Overview

CVE-2021-25282 is a critical directory traversal vulnerability discovered in SaltStack Salt before version 3002.5. The vulnerability exists in the salt.wheel.pillar_roots.write method, which fails to properly sanitize file path inputs, allowing attackers to write arbitrary files to locations outside the intended directory structure. This flaw can be exploited remotely without authentication to compromise the integrity and availability of affected systems.

Critical Impact

Unauthenticated remote attackers can exploit this directory traversal vulnerability to write arbitrary files on Salt Master servers, potentially leading to complete system compromise, remote code execution, or denial of service across managed infrastructure.

Affected Products

  • SaltStack Salt versions prior to 3002.5
  • Fedora 32, 33, and 34
  • Debian Linux 9.0, 10.0, and 11.0

Discovery Timeline

  • 2021-02-25 - SaltStack releases security advisory
  • 2021-02-27 - CVE-2021-25282 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-25282

Vulnerability Analysis

This directory traversal vulnerability affects the Salt Master's wheel system, specifically the pillar_roots.write method responsible for managing pillar data files. The method accepts user-controlled file path parameters without adequate validation, enabling path traversal sequences (such as ../) to escape the intended pillar root directory.

When exploited, an attacker can write arbitrary content to any location on the filesystem accessible by the Salt Master process, which typically runs with elevated privileges. This can result in overwriting critical configuration files, injecting malicious code into executable locations, or disrupting system operations.

The vulnerability is particularly dangerous because it can be chained with other Salt vulnerabilities disclosed in the same security release to achieve unauthenticated remote code execution on Salt infrastructure.

Root Cause

The root cause of CVE-2021-25282 is insufficient input validation in the salt.wheel.pillar_roots.write method. The function accepts a file path parameter from API requests but fails to properly sanitize or validate that the resulting path remains within the designated pillar root directory. Path traversal sequences embedded in the filename parameter are processed literally, allowing directory escape.

Attack Vector

The attack can be executed remotely over the network against the Salt API or Salt Master service. An attacker crafts a malicious request to the pillar_roots.write wheel function, embedding path traversal sequences in the filename parameter. The Salt Master processes this request and writes the attacker-controlled content to an arbitrary filesystem location.

The vulnerability enables attackers to:

  • Write SSH authorized keys for persistent access
  • Overwrite configuration files to disable security controls
  • Plant malicious scripts in cron directories or startup locations
  • Corrupt system binaries or libraries to cause denial of service

For detailed technical analysis and proof-of-concept information, refer to the Packet Storm Exploit Analysis.

Detection Methods for CVE-2021-25282

Indicators of Compromise

  • Unexpected file modifications outside of normal pillar root directories on Salt Master systems
  • Suspicious API requests to wheel.pillar_roots.write containing path traversal sequences (../)
  • New or modified files in sensitive directories such as /root/.ssh/, /etc/cron.d/, or /etc/salt/
  • Salt Master process writing to unusual filesystem locations

Detection Strategies

  • Monitor Salt API and Master logs for requests containing path traversal patterns in wheel function calls
  • Implement file integrity monitoring (FIM) on Salt Master servers to detect unauthorized file modifications
  • Deploy network intrusion detection signatures to identify exploitation attempts targeting Salt services
  • Review Salt Master audit logs for anomalous pillar_roots.write invocations with suspicious path parameters

Monitoring Recommendations

  • Enable comprehensive logging for all Salt API and wheel function calls
  • Configure alerts for any file write operations outside designated pillar directories
  • Monitor Salt Master process activity for unexpected child processes or network connections
  • Regularly audit filesystem permissions and ownership on Salt Master servers

How to Mitigate CVE-2021-25282

Immediate Actions Required

  • Upgrade SaltStack Salt to version 3002.5 or later immediately
  • Restrict network access to Salt Master and Salt API services using firewall rules
  • Review Salt Master filesystem for signs of unauthorized file modifications
  • Audit Salt API authentication configuration and disable unnecessary access

Patch Information

SaltStack has released patched versions addressing CVE-2021-25282 and related vulnerabilities. Organizations should upgrade to Salt version 3002.5 or the latest available release for their deployment branch. The official Salt Project CVE Release provides detailed upgrade instructions and affected version information.

Distribution-specific patches are available:

  • Debian Security Advisory DSA-5011
  • Gentoo GLSA 2021-03
  • Fedora package updates via the standard repository channels

Workarounds

  • Implement strict network segmentation to limit access to Salt Master services to trusted management networks only
  • Configure external authentication mechanisms with strong access controls for the Salt API
  • Disable the Salt API if not required for operations
  • Deploy Web Application Firewall (WAF) rules to filter requests containing path traversal patterns
bash
# Restrict Salt API access using iptables
iptables -A INPUT -p tcp --dport 8000 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 8000 -j DROP

# Verify current Salt version
salt --version

# Update Salt on Debian/Ubuntu
apt-get update && apt-get upgrade salt-master salt-minion

# Update Salt on RHEL/CentOS
yum update salt-master salt-minion

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechSaltstack Salt

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability90.95%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • Packet Storm Exploit Analysis

  • GitHub Salt Releases

  • Debian LTS Advisory November 2021

  • Debian LTS Advisory January 2022

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 2021-03

  • Gentoo GLSA 2023-10

  • Debian Security Advisory DSA-5011
  • Vendor Resources
  • Salt Project CVE Release
  • Related CVEs
  • CVE-2020-11652: SaltStack Salt Path Traversal Vulnerability

  • CVE-2020-11651: SaltStack Salt Auth Bypass Vulnerability

  • CVE-2020-16846: SaltStack Salt RCE Vulnerability

  • CVE-2022-22967: SaltStack Salt Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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