saltstack/salt · Security
Salt allows arbitrary directory creation or file deletion
- GHSA ID
- GHSA-xh32-3m67-qjgf
- CVE ID
- CVE-2025-22240
- Severity
- medium
- Published
- Updated
- CVSS
- 6.3 · CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
- CVSS v3
- 6.3 · CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
Description
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.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-22240 ↗
- 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/commit/f7c28ffbf18dbf693a15b1ba9493918de3e88cf3 ↗
- https://github.com/advisories/GHSA-xh32-3m67-qjgf ↗