NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2025-22240: Salt allows arbitrary directory creation or file deletion

mediumCVSS 3.1 6.3GHSA-xh32-3m67-qjgf

Arbitrary directory creation or file deletion. In the findfile method of the GitFS class, a path is created using os.path.join using unvalidated input from the “tgtenv” variable. This can be exploited by an attacker to delete any file on the Master's process has permissions to.

Published Jun 13, 2025

Affected packages

salt

Ecosystem
PyPI
Affected
>= 3007.0rc1, < 3007.4
Fixed in
3007.4
Check
pip show salt

salt

Ecosystem
PyPI
Affected
>= 3006.0rc1, < 3006.12
Fixed in
3006.12
Check
pip show salt

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries