CVE-2023-34049: Salt preflight script could be attacker controlled
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.
Published Nov 14, 2024
Affected packages
salt
- Ecosystem
- PyPI
- Affected
- < 3005.4
- Fixed in
- 3005.4
- Check
pip show salt
salt
- Ecosystem
- PyPI
- Affected
- >= 3006.0rc1, < 3006.4
- Fixed in
- 3006.4
- Check
pip show salt
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-34049
- https://saltproject.io/security-announcements/2023-10-27-advisory
- https://github.com/saltstack/salt/commit/286d55eb5a6e6bf9428405bdf5632b419bdf8444
- https://github.com/saltstack/salt/commit/7a14112f2a16ce70e3c3e1862c92e37af5f2c7a4
- https://github.com/advisories/GHSA-4277-m35q-7c9w
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2025-62348
Salt junos Module Vulnerable to Code Injection via Specially Crafted YAML Payload
high7.8Jan 30, 2026CVE-2025-62349
Salt Authentication Protocol Version Downgrade Allows Minion Impersonation
high6.2Jan 30, 2026CVE-2024-38824
Salt vulnerable to directory traversal attack in file receiving method
critical9.6Jun 13, 2025CVE-2024-38825
Salt's salt.auth.pki module does not properly authenticate callers
medium6.4Jun 13, 2025CVE-2025-22236
Salt has minion event bus authorization bypass vulnerability
high8.1Jun 13, 2025CVE-2025-22237
Salt's on demand pillar functionality vulnerable to arbitrary command injections
medium6.7Jun 13, 2025
