CVE-2025-22240
MEDIUM 6.3CVSS 3.1Salt allows arbitrary directory creation or file deletion
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.
- Published
- 13 Jun 2025
- Last modified
- 7 Jul 2026
- Assigned by
- security@vmware.com
- NVD status
- Deferred
- Weakness
- CWE-22
- Also known as
- GHSA-xh32-3m67-qjgfPYSEC-2026-1903
- Sources
- NVDJSONOSV GHSA-xh32-3m67-qjgfJSONOSV PYSEC-2026-1903JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@vmware.com (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | salt | >= 3007.0rc1, < 3007.4 | 3007.4 |
| OSV | PyPI | salt | >= 3006.0rc1, < 3006.12 | 3006.12 |
| OSV | PyPI | salt | >= 3006.0rc1, < 3006.12; >= 3007.0rc1, < 3007.4 | 3006.12, 3007.4 |
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
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 13 Jun 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jun 2025)