MEDIUM 6.3 PyPI

Salt allows arbitrary directory creation or file deletion

GHSA-xh32-3m67-qjgf · CVE-2025-22240 · PYSEC-2026-1903

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes