← Vulnerability feed

Vulnerability record · CVE-2021-25282 · published 27 February 2021

CVE-2021-25282: SaltStack Salt wheel pillar_roots.write directory traversal

Saltstack · Salt

SaltStack Salt before 3002.5 exposes a directory traversal flaw in the salt.wheel.pillar_roots.write method. An unauthenticated remote attacker can abuse path handling to write files outside the intended pillar roots directory. Because Salt is a configuration management and remote execution platform, arbitrary file write on the master can lead to remote command execution and full control of managed infrastructure.

9.1 CVSS 3.1 Critical EPSS 92% · top 0.2% CWE-22 · Path traversal
9.1CVSS 3.1 base score, v2 6.4
92%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
22References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

An issue was discovered in through SaltStack Salt before 3002.5. The salt.wheel.pillar_roots.write method is vulnerable to directory traversal.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityCVSS 9.1 with unauthenticated network reachability, public exploit code and an EPSS above 0.92 make this an urgent patch target despite no KEV listing.

What it is

SaltStack Salt before 3002.5 exposes a directory traversal flaw in the salt.wheel.pillar_roots.write method. An unauthenticated remote attacker can abuse path handling to write files outside the intended pillar roots directory. Because Salt is a configuration management and remote execution platform, arbitrary file write on the master can lead to remote command execution and full control of managed infrastructure.

Impact

An attacker gains the ability to write arbitrary files on the Salt master, which can be leveraged to execute commands and take over the master and its managed minions. Integrity and availability are both rated high in the CVSS vector, with no confidentiality impact stated.

Attack surface

The flaw is reachable over the network through the Salt API/wheel interface, with the CVSS vector indicating no authentication (PR:N) and no user interaction (UI:N). Any exposed Salt API endpoint is a potential entry point.

Exploitation

Not listed in CISA KEV, but EPSS is very high at 0.924 (99.8th percentile) and a public exploit reference exists (Packet Storm, tagged Exploit), indicating mature, widely available exploitation.

What to do

  • Upgrade Salt to 3002.5 or later immediately; this is the vendor-fixed release.
  • Apply distribution updates for Debian, Fedora and Gentoo packages that backport the fix.
  • Restrict network access to the Salt API and wheel interfaces to trusted management networks only.
  • Run the Salt master with least privilege and isolate it from unrelated systems to limit file-write impact.
  • Audit pillar root directories for unexpected or modified files.

Detection

  • Monitor Salt master logs for wheel pillar_roots.write calls, especially with traversal sequences such as ../ in paths.
  • Alert on file creation or modification outside configured pillar roots on the Salt master.
  • Detect unexpected child processes or command execution spawned by the salt-master service.
  • Review network logs for external connections to the Salt API port from untrusted sources.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://packetstormsecurity.com/files/162058/SaltStack-Salt-API-Unauthenticated-Remote-Command-Execution.html ExploitThird Party AdvisoryVDB Entry
https://github.com/saltstack/salt/releases Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html Mailing ListThird Party Advisory
https://lists.debian.org/debian-lts-announce/2022/01/msg00000.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDX Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQE Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4 Mailing ListThird Party Advisory
https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25/ Vendor Advisory
https://security.gentoo.org/glsa/202103-01 Third Party Advisory
https://security.gentoo.org/glsa/202310-22 Third Party Advisory
https://www.debian.org/security/2021/dsa-5011 Third Party Advisory
http://packetstormsecurity.com/files/162058/SaltStack-Salt-API-Unauthenticated-Remote-Command-Execution.html ExploitThird Party AdvisoryVDB Entry
https://github.com/saltstack/salt/releases Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html Mailing ListThird Party Advisory
https://lists.debian.org/debian-lts-announce/2022/01/msg00000.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDX Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQE Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4 Mailing ListThird Party Advisory
https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25/ Vendor Advisory
https://security.gentoo.org/glsa/202103-01 Third Party Advisory
https://security.gentoo.org/glsa/202310-22 Third Party Advisory
https://www.debian.org/security/2021/dsa-5011 Third Party Advisory

Track CVE-2021-25282 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2021-25282), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.