Salt allows arbitrary directory creation or file deletion
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | salt | >= 3007.0rc1, < 3007.4, >= 3006.0rc1, < 3006.12 | 3007.4, 3006.12 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-22240
- https://github.com/saltstack/salt/commit/f7c28ffbf18dbf693a15b1ba9493918de3e88cf3
- https://docs.saltproject.io/en/3006/topics/releases/3006.12.html
- https://docs.saltproject.io/en/3007/topics/releases/3007.4.html
- https://github.com/saltstack/salt
- https://pypi.org/project/salt
- https://github.com/advisories/GHSA-xh32-3m67-qjgf
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-22- Platform
- Python (PyPI)
- Package
salt- Disclosed
- 13.06.2025
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1903 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-xh32-3m67-qjgf - 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 allows arbitrary directory creation or file deletion 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.