Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. salt
  4. ›
  5. CVE-2025-22240

CVE-2025-22240: Salt allows arbitrary directory creation or file deletion

June 13, 2025

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.

References

  • docs.saltproject.io/en/3006/topics/releases/3006.12.html
  • docs.saltproject.io/en/3007/topics/releases/3007.4.html
  • github.com/advisories/GHSA-xh32-3m67-qjgf
  • github.com/saltstack/salt
  • github.com/saltstack/salt/commit/f7c28ffbf18dbf693a15b1ba9493918de3e88cf3
  • nvd.nist.gov/vuln/detail/CVE-2025-22240

Code Behaviors & Features

Detect and mitigate CVE-2025-22240 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3007.0rc1 before 3007.4, all versions starting from 3006.0rc1 before 3006.12

Fixed versions

  • 3007.4
  • 3006.12

Solution

Upgrade to versions 3006.12, 3007.4 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/salt/CVE-2025-22240.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:39 +0000.