CVE-2021-21996 Exposure of Resource to Wrong Sphere in salt

High 7.5 Published Updated

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.

PackageAffectedFixed in
salt PyPIAll versions3003.3
salt PyPIAll versions3003.3
salt PyPIAll versions3003.3
Linux distribution packages (37)
salt SUSE:Enterprise Storage 6All versions3002.2-48.4
salt SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions3002.2-48.4
salt SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions3002.2-48.4
salt SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions3002.2-8.41.17.1
salt SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions3002.2-8.41.17.1
salt SUSE:Linux Enterprise Micro 5.0All versions3002.2-49.2
salt SUSE:Linux Enterprise Micro 5.1All versions3002.2-50.1.15.1
salt SUSE:Linux Enterprise Module for Advanced Systems Management 12All versions3000-46.151.2
salt SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions3002.2-49.2
salt SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions3002.2-50.1.15.1
salt SUSE:Linux Enterprise Module for Server Applications 15 SP2All versions3002.2-49.2
salt SUSE:Linux Enterprise Module for Server Applications 15 SP3All versions3002.2-50.1.15.1
salt SUSE:Linux Enterprise Module for Transactional Server 15 SP2All versions3002.2-49.2
salt SUSE:Linux Enterprise Module for Transactional Server 15 SP3All versions3002.2-50.1.15.1
salt SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSAll versions2016.11.10-43.84.1
spacecmd SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSAll versions4.2.13-18.93.1
spacewalk-client-tools SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSAll versions4.2.14-27.59.1
salt SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLSAll versions2016.11.10-43.84.1
spacecmd SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLSAll versions4.2.13-18.93.1
spacewalk-client-tools SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLSAll versions4.2.14-27.59.1
salt SUSE:Linux Enterprise Server 15 SP1-BCLAll versions3002.2-48.4
salt SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions3002.2-48.4
salt SUSE:Linux Enterprise Server 15-LTSSAll versions3002.2-8.41.17.1
salt SUSE:Linux Enterprise Server for SAP Applications 15All versions3002.2-8.41.17.1
salt SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions3002.2-48.4
salt SUSE:Manager Client Tools 12All versions3000-46.151.2
grafana-formula SUSE:Manager Server Module 4.1All versions0.4.2-3.12.2
prometheus-formula SUSE:Manager Server Module 4.1All versions0.3.4-3.12.2
py26-compat-salt SUSE:Manager Server Module 4.1All versions2016.11.10-17.2
py26-compat-tornado SUSE:Manager Server Module 4.1All versions4.2.1-3.3.2
py27-compat-salt SUSE:Manager Server Module 4.1All versions3000.3-6.15.2
spacecmd SUSE:Manager Server Module 4.1All versions4.1.15-4.30.2
spacewalk-backend SUSE:Manager Server Module 4.1All versions4.1.29-4.44.2
spacewalk-certs-tools SUSE:Manager Server Module 4.1All versions4.1.19-3.22.2
spacewalk-java SUSE:Manager Server Module 4.1All versions4.1.41-3.58.2
spacewalk-reports SUSE:Manager Server Module 4.1All versions4.1.4-3.6.2
spacewalk-web SUSE:Manager Server Module 4.1All versions4.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.

All Debian Debian Linux vulnerabilities

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.

Is CVE-2021-21996 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free