{"id":"CVE-2025-22240","published":"2025-06-13T07:03:35Z","modified":"2025-06-13T13:42:42Z","title":"CVE-2025-22240 salt advisory","vendor":"VMware","product":"SALT","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0017,"percentile":0.06603,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://docs.saltproject.io/en/3006/topics/releases/3006.12.html","tags":[]},{"url":"https://docs.saltproject.io/en/3007/topics/releases/3007.4.html","tags":[]}],"priority":{"score":5.7,"factors":[{"name":"EPSS percentile","points":1.32},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"vmware","affectedVersions":[{"vendor":"VMware","product":"SALT","versions":[">= 3006.x, < 3006.12",">= 3007.x, < 3007.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-06-13T13:40:39.603922Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"salt","vulnerableRanges":[">=3007.0rc1, <3007.4",">=3006.0rc1, <3006.12"],"patched":["3007.4","3006.12"],"from":["GHSA-xh32-3m67-qjgf","PYSEC-2026-1903"],"provenance":"source"}],"summary":{"text":"A path traversal flaw exists in the find_file method of the GitFS class in VMware's SALT product, where a path built with os.path.join uses unvalidated input from the tgt_env variable. An attacker who can exploit it can create arbitrary directories or delete any file that the Master process has permission to remove, and this requires local access to the system with high privileges, user interaction, and an attack complexity that is high.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:42Z"},"euvd":{"id":"EUVD-2025-18250","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vmware-salt-cve-2017-12791","parents":[{"from":"CVE-2024-38825","to":"CVE-2025-22240","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["salt/utils/gitfs.py","salt/utils/verify.py"],"commits":["https://github.com/saltstack/salt/commit/5ff18fd0ececdfd083ddce693c3ccef30e44f155","https://github.com/saltstack/salt/commit/d7cb64e44db5f82fd615373f5dca2eb1fb29bbab","https://github.com/saltstack/salt/commit/f7c28ffbf18dbf693a15b1ba9493918de3e88cf3"],"basis":"shared function","functions":["find_file"]}]}]}}