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

CVE-2025-22241: Salt's file contents overwrite the VirtKey class

June 13, 2025 (updated June 17, 2025)

File contents overwrite the VirtKey class is called when “on-demand pillar” data is requested and uses un-validated input to create paths to the “pki directory”. The functionality is used to auto-accept Minion authentication keys based on a pre-placed “authorization file” at a specific location and is present in the default configuration.

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-7f3f-x5f5-79gw
  • github.com/saltstack/salt
  • github.com/saltstack/salt/commit/9445f496fed61b15dc4364818007e5b765b0746f
  • nvd.nist.gov/vuln/detail/CVE-2025-22241

Code Behaviors & Features

Detect and mitigate CVE-2025-22241 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 5.6 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-73: External Control of File Name or Path

Source file

pypi/salt/CVE-2025-22241.yml

Spotted a mistake? Edit the file on GitLab.

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

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