GitHub Advisoryadvisory · PyPI

GHSA-xh32-3m67-qjgf Salt allows arbitrary directory creation or file deletion

MEDIUM Published 2025-06-13 Modified 2025-06-13 Official page ↗
Aliases
CVE-2025-22240
Ecosystem
PyPI
Packages
salt
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-22
Reviewed
2025-06-13

Affected packages

• PyPI salt: >= 3007.0rc1, < 3007.4 → fixed in 3007.4 • PyPI salt: >= 3006.0rc1, < 3006.12 → fixed in 3006.12

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.

Related

Alias · CVE (1)

  • CVE-2025-22240 Arbitrary directory creation or file deletion. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References