Advisory

GHSA-7f3f-x5f5-79gw

Also known as: CVE-2025-22241, PYSEC-2026-1895

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: The source's own band: MODERATE

Dates

Published
2025-06-13 09:30 UTC
Modified
2026-07-07 17:57 UTC

Affected packages and fixes

salt

PyPI · All systems

Affected

  • introduced 3007.0rc1, fixed 3007.4 (ecosystem)

Fixed versions

3007.4

Fix

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

salt

PyPI · All systems

Affected

  • introduced 3006.0rc1, fixed 3006.12 (ecosystem)

Fixed versions

3006.12

Fix

  • 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences