Advisory

PYSEC-2026-1901

Also known as: CVE-2025-22238, GHSA-r546-h3ff-q585

Summary

Salt vulnerable to directory traversal attack in minion file cache creation

Details

Directory traversal attack in minion file cache creation. The master's default cache is vulnerable to a directory traversal attack. Which could be leveraged to write or overwrite 'cache' files outside of the cache directory.

Severity

Medium Basis: CVSS v3 score 4.2, vector CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/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 3006.0rc1, fixed 3006.12, introduced 3007.0rc1, fixed 3007.4 (ecosystem)

Fixed versions

3006.12, 3007.4

Fix

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

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