NetSight
medium6.3

CVE-2025-22240

Salt allows arbitrary directory creation or file deletion

Impact

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 packages

EcosystemPackageAffectedFixed in
pipsalt>= 3007.0rc1, < 3007.43007.4

Weakness classification

References