GHSA-4277-m35q-7c9w CVE-2023-34049 PYSEC-2026-1892
Salt preflight script could be attacker controlled
- Severity
- 6.7 / 10
- Medium · CVSS 3.1
- Exploit chance (EPSS)
- 0.21%
- Chance of exploitation in the next 30 days. Higher than 10.78% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-340 Generation of Predictable Numbers or Identifiers
- Fix
3005.4- Upgrade salt to this version or later
Description
The Salt-SSH pre-flight option copies the script to the target at a predictable path, which allows an attacker to force Salt-SSH to run their script. If an attacker has access to the target VM and knows the path to the pre-flight script before it runs they can ensure Salt-SSH runs their script with the privileges of the user running Salt-SSH. Do not make the copy path on the target predictable and ensure we check return codes of the scp command if the copy fails.
Affected versions
PyPI
| Package | Vulnerable | Fixed in |
|---|---|---|
| salt | < 3005.4 |
3005.4 |
| salt | >= 3006.0rc1, < 3006.4 |
3006.4 |
| salt | < 3005.4>= 3006.0rc1, < 3006.4 |
3005.43006.4 |
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 → 3005.4
- pip
pip install --upgrade "salt>=3005.4"- poetry
poetry add "salt>=3005.4"- uv
uv add "salt>=3005.4"
Severity breakdown
CVSS 3.1 6.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Weakness
CWE-340: Generation of Predictable Numbers or Identifiers
The product uses a scheme that generates numbers or identifiers that are more predictable than required.
References
Advisories
Packages
Other links
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