VDB
Sign up
MEDIUM6.3

PYSEC-2026-1903

Salt allows arbitrary directory creation or file deletion

Quick fix

PYSEC-2026-1903 — salt: upgrade to the fixed version with the command below.

pip install --upgrade 'salt>=3006.12'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/salt
Introduced in: 3006.0rc1Fixed in: 3006.12
Fixpip install --upgrade 'salt>=3006.12'

References