6.3medium
CVE-2025-22240 salt advisory
- Severity
- 6.3medium CVSS:3.1 by vmware
- Exploit likelihood
- 0.25% (higher than 10% of CVEs)
- Published
- Last changed
- Assigned by
- vmware
- Also known as
- GHSA-xh32-3m67-qjgfPYSEC-2026-1903
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
| Product or package | Versions | Reported by |
|---|---|---|
| Salt | from 3006.x before 3006.12, from 3007.x before 3007.4 | CVE List |
| salt (PyPI) | from 3007.0rc1 before 3007.4, from 3006.0rc1 before 3006.12 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| vmware | 6.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 6.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Creación arbitraria de directorios o eliminación de archivos. En el método find_file de la clase GitFS, se crea una ruta mediante os.path.join con una entrada no validada de la variable "tgt_env". Un atacante puede aprovechar esto para eliminar cualquier archivo del proceso maestro al que tenga acceso.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-22240 changed 2025-06-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xh32-3m67-qjgf changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2025-22240 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1903 changed 2026-07-07 | CC-BY-4.0 |