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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: High; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-xh32-3m67-qjgf, PYSEC-2026-1903
- **Published:** 2025-06-13T07:03:35.139Z
- **Modified:** 2026-07-07T17:57:04.265Z

## Who should check

- Projects that depend on PyPI package salt (\>= 3007.0rc1, \< 3007.4)
- Anyone running VMware SALT \>= 3006.x, \< 3006.12; \>= 3007.x, \< 3007.4

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

## Affected and fixed versions

- PyPI `salt`: affected \>= 3007.0rc1, \< 3007.4; fixed 3007.4, 3006.12 (osv)
- VMware SALT: \>= 3006.x, \< 3006.12; \>= 3007.x, \< 3007.4 (cvelist)

## Mitigation

- Upgrade salt to one of 3007.4, 3006.12 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-22240. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22240.md
Affected: salt >= 3007.0rc1, < 3007.4
Fixed in: 3007.4, 3006.12

Steps:
1. Search this machine and project for salt (PyPI), VMware SALT: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-22240 being exploited?

There is no confirmed exploitation: CVE-2025-22240 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-22240?

Medium: CVSS 6.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-22240?

salt \>= 3007.0rc1, \< 3007.4.

### Is there a fix for CVE-2025-22240?

Yes. Fixed in 3007.4, 3006.12. Upgrade salt to one of 3007.4, 3006.12 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-22240?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-22240>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xh32-3m67-qjgf> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1903> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-22240> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-22240>
