# CVE-2025-22240: CVE-2025-22240 salt advisory

- Severity: Medium 6.3 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 10% of CVEs (2026-11-30)
- Published: 2025-06-13T07:03:35.139Z
- Modified: 2026-07-07T17:57:04.265Z
- Also known as: GHSA-xh32-3m67-qjgf, PYSEC-2026-1903
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- Salt: from 3006.x before 3006.12; from 3007.x before 3007.4
- salt (PyPI): from 3007.0rc1 before 3007.4; from 3006.0rc1 before 3006.12

## Every score

- vmware: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://docs.saltproject.io/en/3006/topics/releases/3006.12.html> (web)
- <https://docs.saltproject.io/en/3007/topics/releases/3007.4.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-22240> (advisory)
- <https://github.com/saltstack/salt/commit/f7c28ffbf18dbf693a15b1ba9493918de3e88cf3> (web)
- <https://github.com/saltstack/salt> (package)
- <https://pypi.org/project/salt> (package)
- <https://github.com/advisories/GHSA-xh32-3m67-qjgf> (advisory)

## Sources

- CVE List: [CVE-2025-22240](https://www.cve.org/CVERecord?id=CVE-2025-22240), CVE Terms of Use, modified 2025-06-13
- GitHub Advisory Database: [GHSA-xh32-3m67-qjgf](https://github.com/advisories/GHSA-xh32-3m67-qjgf), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-22240](https://nvd.nist.gov/vuln/detail/CVE-2025-22240), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1903](https://osv.dev/vulnerability/PYSEC-2026-1903), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-22240 · Whole record: https://cve.day/CVE-2025-22240.json · Rebuilt by cve.day 2026-11-25T22:58:59.194Z
