GitHub Advisory Database
GHSA-xh32-3m67-qjgf
Salt allows arbitrary directory creation or file deletion
Details
Arbitrary directory creation or file deletion. In the find_file method of the GitFS class, a path is created using os.path.join using unvalidated input from the “tgt_env” variable. This can be exploited by an attacker to delete any file on the Master's process has permissions to.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | salt | From 3007.0rc1 before 3007.4 (fixed in 3007.4) |
| PyPI | salt | From 3006.0rc1 before 3006.12 (fixed in 3006.12) |