CVE-2023-34049
Salt security advisory release - 2023-OCT-27
Reported by vmware · Published November 14, 2024
salt is fixed in 3006.4 and 3005.4 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| salt | PyPI | 3006.4, 3005.4 |
| salt | salt_project | 3006.4, 3005.4 |
| SALT | Salt | 3006.4, 3005.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Salt | SALT | 3005, 3004 |
| salt_project | salt | 3005, 3004 |
| PyPI | salt | 0, 3006.0rc1 |
| Salt | SALT | 3005, 3004 |
Timeline
- Oct 29, 2023 CVE Published
- Nov 14, 2024 EPSS Score (30 in total, the first dated here)
- Nov 14, 2024 PoC Published (2 in total, the first dated here)
- Nov 14, 2024 CVE Updated
- Mar 10, 2026 Security Advisory (2 in total, the first dated here)
- Aug 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-34049
vulnetix vdb fixes CVE-2023-34049
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-34049/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-34049 advisory
- https://github.com/advisories/GHSA-4277-m35q-7c9w advisory
- https://github.com/saltstack/salt/commit/286d55eb5a6e6bf9428405bdf5632b419bdf8444 patch
- https://github.com/saltstack/salt/commit/7a14112f2a16ce70e3c3e1862c92e37af5f2c7a4 patch
- https://github.com/saltstack/salt url
- https://saltproject.io/security-announcements/2023-10-27-advisory advisory