CVE-2025-22240
JSON

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 packageVersionsReported by
Saltfrom 3006.x before 3006.12, from 3007.x before 3007.4CVE List
salt (PyPI)from 3007.0rc1 before 3007.4, from 3006.0rc1 before 3006.12GitHub Advisory Database, PyPA Advisory Database

All scores

vmware6.3medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
GitHub6.3medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory Database6.3medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-22

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

SourceRecordLicence
CVE ListCVE-2025-22240 changed 2025-06-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-xh32-3m67-qjgf changed 2026-07-07CC-BY-4.0
NVDCVE-2025-22240 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1903 changed 2026-07-07CC-BY-4.0