{"id":"CVE-2025-22238","aliases":["GHSA-r546-h3ff-q585","PYSEC-2026-1901"],"title":"Salt vulnerable to directory traversal attack in minion file cache creation","summary":"Salt vulnerable to directory traversal attack in minion file cache creation","severity":"medium","cvss":4.2,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:N","vendor":"salt","product":"salt","ecosystem":"pip","affected":["salt >= 3006.0rc1, < 3006.12","salt >= 3007.0rc1, < 3007.4"],"patched":["salt 3006.12","salt 3007.4"],"published":"2025-06-13","updated":"2026-07-07","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-r546-h3ff-q585","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22238"},{"url":"https://github.com/saltstack/salt/commit/4b30218edf1a979855ea191d72b30c89f4a5a582"},{"url":"https://docs.saltproject.io/en/3006/topics/releases/3006.12.html"},{"url":"https://docs.saltproject.io/en/3007/topics/releases/3007.4.html"},{"url":"https://github.com/saltstack/salt"}],"tags":["osv","pip"],"epss":0.00291,"epssPercentile":0.21956,"ingestedAt":"2026-07-08T18:25:52.650Z","slug":"CVE-2025-22238","body":"## Overview\n\nDirectory traversal attack in minion file cache creation. The master's default cache is vulnerable to a directory traversal attack. Which could be leveraged to write or overwrite 'cache' files outside of the cache directory.\n\n## Affected packages\n\n- `salt >= 3006.0rc1, < 3006.12`\n- `salt >= 3007.0rc1, < 3007.4`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `salt 3006.12`\n- `salt 3007.4`","depth":"sunlit","depthScore":23,"depthScoreParts":{"impact":23.1,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}