CVE-2021-21996 Exposure of Resource to Wrong Sphere in salt
Attackers controlling source URLs can gain root file system access on Salt minions, requiring immediate upgrades to SaltStack Salt.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-21996?
CVE-2021-21996 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 8 Sep 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
An issue was discovered in SaltStack Salt before 3003.3. A user who has control of the source, and source_hash URLs can gain full file system access as root on a salt minion.
Which versions are affected by CVE-2021-21996?
3 open source packages ship an affected version, including salt. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
salt PyPI | All versions | 3003.3 |
salt PyPI | All versions | 3003.3 |
salt PyPI | All versions | 3003.3 |
Linux distribution packages (37)
salt SUSE:Enterprise Storage 6 | All versions | 3002.2-48.4 |
salt SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 3002.2-48.4 |
salt SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 3002.2-48.4 |
salt SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 3002.2-8.41.17.1 |
salt SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 3002.2-8.41.17.1 |
salt SUSE:Linux Enterprise Micro 5.0 | All versions | 3002.2-49.2 |
salt SUSE:Linux Enterprise Micro 5.1 | All versions | 3002.2-50.1.15.1 |
salt SUSE:Linux Enterprise Module for Advanced Systems Management 12 | All versions | 3000-46.151.2 |
salt SUSE:Linux Enterprise Module for Basesystem 15 SP2 | All versions | 3002.2-49.2 |
salt SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 3002.2-50.1.15.1 |
salt SUSE:Linux Enterprise Module for Server Applications 15 SP2 | All versions | 3002.2-49.2 |
salt SUSE:Linux Enterprise Module for Server Applications 15 SP3 | All versions | 3002.2-50.1.15.1 |
salt SUSE:Linux Enterprise Module for Transactional Server 15 SP2 | All versions | 3002.2-49.2 |
salt SUSE:Linux Enterprise Module for Transactional Server 15 SP3 | All versions | 3002.2-50.1.15.1 |
salt SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLS | All versions | 2016.11.10-43.84.1 |
spacecmd SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLS | All versions | 4.2.13-18.93.1 |
spacewalk-client-tools SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLS | All versions | 4.2.14-27.59.1 |
salt SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLS | All versions | 2016.11.10-43.84.1 |
spacecmd SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLS | All versions | 4.2.13-18.93.1 |
spacewalk-client-tools SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLS | All versions | 4.2.14-27.59.1 |
salt SUSE:Linux Enterprise Server 15 SP1-BCL | All versions | 3002.2-48.4 |
salt SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 3002.2-48.4 |
salt SUSE:Linux Enterprise Server 15-LTSS | All versions | 3002.2-8.41.17.1 |
salt SUSE:Linux Enterprise Server for SAP Applications 15 | All versions | 3002.2-8.41.17.1 |
salt SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 3002.2-48.4 |
salt SUSE:Manager Client Tools 12 | All versions | 3000-46.151.2 |
grafana-formula SUSE:Manager Server Module 4.1 | All versions | 0.4.2-3.12.2 |
prometheus-formula SUSE:Manager Server Module 4.1 | All versions | 0.3.4-3.12.2 |
py26-compat-salt SUSE:Manager Server Module 4.1 | All versions | 2016.11.10-17.2 |
py26-compat-tornado SUSE:Manager Server Module 4.1 | All versions | 4.2.1-3.3.2 |
py27-compat-salt SUSE:Manager Server Module 4.1 | All versions | 3000.3-6.15.2 |
spacecmd SUSE:Manager Server Module 4.1 | All versions | 4.1.15-4.30.2 |
spacewalk-backend SUSE:Manager Server Module 4.1 | All versions | 4.1.29-4.44.2 |
spacewalk-certs-tools SUSE:Manager Server Module 4.1 | All versions | 4.1.19-3.22.2 |
spacewalk-java SUSE:Manager Server Module 4.1 | All versions | 4.1.41-3.58.2 |
spacewalk-reports SUSE:Manager Server Module 4.1 | All versions | 4.1.4-3.6.2 |
spacewalk-web SUSE:Manager Server Module 4.1 | All versions | 4.1.30-3.36.1 |
Products include Debian Debian Linux, Fedoraproject Fedora, Saltstack Salt.
How do I fix CVE-2021-21996?
Upgrade salt to 3003.3 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-21996 being exploited?
There is no known exploitation of CVE-2021-21996 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DLA-2823-1, DSA-5011-1, GHSA-pf7h-h2wq-m7pg, PYSEC-2021-318, SUSE-SU-2021:14833-1, SUSE-SU-2021:3550-1 and 9 more.