cve.bz

CVE-2025-22240

6.3 mediumEPSS 0.2%

Medium (6.3). EPSS 0.2% chance of exploitation in the next 30 days. Fixed in salt 3006.12, 3007.4.

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.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
EPSS
0.2% chance of exploitation in the next 30 days; higher than 5% of CVEs (scores of 2026-10-31)
CWE
CWE-22
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xh32-3m67-qjgfPyPIsalt>=3007.0rc1 <3007.43007.4
GHSA-xh32-3m67-qjgfPyPIsalt>=3006.0rc1 <3006.123006.12
PYSEC-2026-1903PyPIsalt>=3006.0rc1 <3006.12
>=3007.0rc1 <3007.4
3006.12, 3007.4

References

Check your stackJSON