Advisory

PYSEC-2026-1895

Also known as: CVE-2025-22241, GHSA-7f3f-x5f5-79gw

Summary

Salt's file contents overwrite the VirtKey class

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.

Severity

Medium Basis: CVSS v3 score 5.6, vector CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N

Dates

Published
2026-07-07 16:02 UTC
Modified
2026-07-07 17:48 UTC

Affected packages and fixes

salt

PyPI · All systems

Affected

  • introduced 3007.0rc1, fixed 3007.4, introduced 3006.0rc1, fixed 3006.12 (ecosystem)

Fixed versions

3007.4, 3006.12

Fix

  • Fixed version 3007.4
    pip install --upgrade salt==3007.4
  • Fixed version 3006.12
    pip install --upgrade salt==3006.12

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences