MediumGHSA-7f3f-x5f5-79gwCVE-2025-22241PYSEC-2026-1895

Salt's file contents overwrite the VirtKey class

Published 13 Jun 2025 · Updated 7 Jul 2026

Is your project on an affected salt?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

saltPyPI
Affected
>=3007.0rc1 <3007.4
Fixed in
3007.4
Update to the fixed version for your release line, for example:pip install 'salt>=3007.4'
saltPyPI
Affected
>=3006.0rc1 <3006.12
Fixed in
3006.12
Update to the fixed version for your release line, for example:pip install 'salt>=3006.12'

Details

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.

Is GHSA-7f3f-x5f5-79gw in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected salt, and gives you the command that fixes it.

More advisories for salt

  • HighCVE-2025-62348Salt junos Module Vulnerable to Code Injection via Specially Crafted YAML Payload · 30 Jan 2026
  • HighCVE-2025-62349Salt Authentication Protocol Version Downgrade Allows Minion Impersonation · 30 Jan 2026
  • CriticalCVE-2024-38824Salt vulnerable to directory traversal attack in file receiving method · 13 Jun 2025
  • MediumCVE-2025-22242Salt's worker process vulnerable to denial of service through file read operation · 13 Jun 2025
  • HighCVE-2025-22239Salt vulnerable to arbitrary event injection · 13 Jun 2025
  • HighCVE-2025-22236Salt has minion event bus authorization bypass vulnerability · 13 Jun 2025
All 69 advisories for salt

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.