FlawAtlas
Search the atlas
CVE-2025-22240 Moderate

Salt allows arbitrary directory creation or file deletion

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.

Exploit probability 0.1%
Published July 7, 2026
Required by Not available
Last source change July 7, 2026

02 / AFFECTED SOFTWARE

Affected packages

PyPI salt

20 explicit affected versions

PyPI salt

20 explicit affected versions

04 / EVIDENCE

Source records

Open Source Vulnerabilities GHSA-xh32-3m67-qjgf

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.

View original source
Open Source Vulnerabilities PYSEC-2026-1903

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.

View original source

05 / REFERENCES

Further evidence