salt
Affected
- introduced
0, fixed3005.4, introduced3006.0rc1, fixed3006.4(ecosystem)
Fixed versions
3005.4, 3006.4
Fix
- Fixed version
3005.4pip install --upgrade salt==3005.4 - Fixed version
3006.4pip install --upgrade salt==3006.4
Advisory
Also known as: CVE-2023-34049, GHSA-4277-m35q-7c9w
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.
Medium Basis: CVSS v3 score 6.7, vector CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
0, fixed 3005.4, introduced 3006.0rc1, fixed 3006.4 (ecosystem)3005.4, 3006.4
3005.4pip install --upgrade salt==3005.43006.4pip install --upgrade salt==3006.4Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0