CVE-2025-22240
Python vulnerability analysis and mitigation

Overview

CVE-2025-22240 is a path traversal vulnerability discovered in the GitFS class of Salt Project, disclosed on June 13, 2025. The vulnerability affects the findfile method where a path is created using os.path.join with unvalidated input from the "tgtenv" variable. This security flaw impacts both Salt versions 3006.12 and 3007.4 (Salt Release Notes, Salt 3007.4).

Technical details

The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) and has been assigned a CVSS v3.1 base score of 6.3 (Medium). The CVSS vector string is CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H, indicating that exploitation requires local access, high attack complexity, high privileges, and user interaction (Wiz).

Impact

The vulnerability allows an attacker to perform arbitrary directory creation or file deletion operations. Specifically, an attacker can exploit this vulnerability to delete any file that the Master's process has permissions to access. The high CVSS impact scores for Confidentiality, Integrity, and Availability (all rated as High) indicate that successful exploitation could result in significant system compromise (Wiz).

Mitigation and workarounds

The vulnerability has been addressed in Salt versions 3006.12 and 3007.4. Users are strongly advised to upgrade to these patched versions to protect against this vulnerability (Salt Release Notes, Salt 3007.4).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management