SaltStack GitFS arbitrary file deletion via unvalidated tgt_env path
CVE-2025-22240 Published on June 13, 2025
CVE-2025-22240 salt advisory
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.
Vulnerability Analysis
CVE-2025-22240 is exploitable with local system access, requires user interaction and user privileges. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Type
What is a Directory traversal Vulnerability?
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CVE-2025-22240 has been classified to as a Directory traversal vulnerability or weakness.
Products Associated with CVE-2025-22240
Want to know whenever a new CVE is published for SaltStack Salt? stack.watch will email you.
Affected Versions
VMware SALT:- Version 3006.x and below 3006.12 is affected.
- Version 3007.x and below 3007.4 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.