Arbitrary Directory Creation and File Deletion in SaltStack's GitFS
CVE-2025-22240
6.3MEDIUM
What is CVE-2025-22240?
A vulnerability exists within the GitFS class in SaltStack, specifically in the find_file method, where paths are constructed using unvalidated input from the 'tgt_env' variable. An attacker can exploit this weakness to perform arbitrary directory creation or delete any file, provided they have sufficient permissions within the Master's process. This could lead to severe disruptions and data loss, making it critical to address this issue promptly.
Affected Version(s)
SALT 3006.x < 3006.12
SALT 3007.x < 3007.4