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. 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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | salt | < 3005.4, >= 3006.0rc1, < 3006.4 | 3005.4, 3006.4 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-34049
- https://github.com/saltstack/salt/commit/286d55eb5a6e6bf9428405bdf5632b419bdf8444
- https://github.com/saltstack/salt/commit/7a14112f2a16ce70e3c3e1862c92e37af5f2c7a4
- https://github.com/saltstack/salt
- https://saltproject.io/security-announcements/2023-10-27-advisory
- https://pypi.org/project/salt
- https://github.com/advisories/GHSA-4277-m35q-7c9w
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-340- Platform
- Python (PyPI)
- Package
salt- Disclosed
- 14.11.2024
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1892 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-4277-m35q-7c9w - CC BY 4.0
Vulnerability history: salt
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 69
- First → latest
- 11.2013 01.2026
- Without a fix
- 0
- Exploited in attacks
- 3
Severity breakdown
- Critical 17
- High 32
- Medium 16
- Low 2
- Unrated 2
Disclosures per year
- 2017: 14
- 2018: 3
- 2019: 1
- 2020: 6
- 2021: 14
- 2022: 6
- 2023: 3
- 2024: 3
- 2025: 9
- 2026: 2
earlier: 8
-
Salt preflight script could be attacker controlled this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.