ADVISORIES

PyPA Advisory Database

PYSEC-2026-1903

Salt allows arbitrary directory creation or file deletion

Details

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

EcosystemPackageAffected versions
PyPIsalt
From 3006.0rc1 before 3006.12 (fixed in 3006.12)
From 3007.0rc1 before 3007.4 (fixed in 3007.4)

References