GHSA-xxw3-765m-f37p CVE-2021-25281 PYSEC-2021-50
SaltStack Salt Improper Authentication vulnerability
- Severity
- 9.8 / 10
- Critical · CVSS 3.1
- Exploit chance (EPSS)
- 73.13%
- Chance of exploitation in the next 30 days. Higher than 99.46% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-287 Improper Authentication
- Fix
2015.8.13- Upgrade salt to this version or later
Description
An issue was discovered in through SaltStack Salt before 3002.5. salt-api does not honor eauth credentials for the wheel_async client. Thus, an attacker can remotely run any wheel modules on the master.
Affected versions
PyPI
| Package | Vulnerable | Fixed in |
|---|---|---|
| salt | < 2015.8.13 |
2015.8.13 |
| salt | >= 2016.3.0, < 2016.11.5 |
2016.11.5 |
| salt | >= 2016.11.7, < 2016.11.10 |
2016.11.10 |
| salt | >= 2017.5.0, < 2017.7.8 |
2017.7.8 |
| salt | >= 2018.2.0, <= 2018.3.5 |
No fix yet |
| salt | >= 2019.2.0, < 2019.2.8 |
2019.2.8 |
| salt | >= 3000, < 3000.7 |
3000.7 |
| salt | >= 3001, < 3001.5 |
3001.5 |
| salt | >= 3002, < 3002.3 |
3002.3 |
| salt | < 2015.8.10>= 2015.8.11, < 2015.8.13>= 2016.3.0, < 2016.3.4>= 2016.3.5, < 2016.3.6>= 2016.3.7, < 2016.3.8>= 2016.11.0, < 2016.11.3>= 2016.11.4, < 2016.11.5>= 2016.11.7, < 2016.11.10>= 2017.7.0, < 2017.7.8>= 2018.3.0rc1, < 2019.2.0rc1>= 2019.2.0, < 2019.2.5>= 2019.2.6, < 2019.2.8>= 3000, < 3000.6>= 3001, < 3001.4>= 3002, < 3002.5 |
2015.8.102015.8.132016.3.42016.3.62016.3.82016.11.32016.11.52016.11.102017.7.82019.2.0rc12019.2.52019.2.83000.63001.43002.5 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
salt PyPI → 2015.8.13
- pip
pip install --upgrade "salt>=2015.8.13"- poetry
poetry add "salt>=2015.8.13"- uv
uv add "salt>=2015.8.13"
Severity breakdown
CVSS 3.1 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Weakness
CWE-287: Improper Authentication
When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.
How to prevent it
- Architecture and Design: Use an authentication framework or library such as the OWASP ESAPI Authentication feature.
References
Advisories
Write-ups
Packages
Other links
- saltstack.com/blog/active-saltstack-cve-announced-2021-jan-21
- debian.org/security/2021/dsa-5011
- security.gentoo.org/glsa/202310-22
- security.gentoo.org/glsa/202103-01
- saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YOGNT…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUGLO…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7GRVZ…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YOG…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUG…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7GR…
- lists.debian.org/debian-lts-announce/2021/11/msg00009.html
- github.com/saltstack/salt/releases
- github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/top…
- github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/top…
- github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/top…
- github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2021-50.yaml
- packetstormsecurity.com/files/162058/SaltStack-Salt-API-Unauthenticated-Remote-Command-Execu…
- saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YOGNT…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7GRVZ…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUGLO…
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| CVE-2020-16846 SaltStack Salt Command Injection in netapi ssh client | Critical Known exploited | Also affects salt |
| CVE-2020-11652 SaltStack Salt is vulnerable Arbitrary Directory Access | High Known exploited | Also affects salt |
| CVE-2020-11651 SaltStack Salt Unauthenticated Remote Code Execution | Critical Known exploited | Also affects salt |
| GHSA-vcf3-26xf-fw4m Salt Authentication Protocol Version Downgrade Allows Minion Impersonation | Medium | Also affects salt |
| GHSA-77w2-v593-vxvv Salt junos Module Vulnerable to Code Injection via Specially Crafted YAML Payload | High | Also affects salt |
| GHSA-8pcp-r83j-fc92 Salt vulnerable to directory traversal attack in file receiving method | High | Also affects salt |
| GHSA-989c-m532-p2hv Salt's worker process vulnerable to denial of service through file read operation | Medium | Also affects salt |
| GHSA-7f3f-x5f5-79gw Salt's file contents overwrite the VirtKey class | Medium | Also affects salt |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor