CVE-2025-22240
Salt allows arbitrary directory creation or file deletion
6.3
MEDIUM
CVSS 3.1
EPSS 0.10%
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.
How to fix CVE-2025-22240
To remediate CVE-2025-22240, upgrade the affected package to a fixed version below.
- —upgrade to 3007.4 or later
Is CVE-2025-22240 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- >= 3007.0rc1, < 3007.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.3 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |