Advisory

PYSEC-2026-1892

Also known as: CVE-2023-34049, GHSA-4277-m35q-7c9w

Summary

Salt preflight script could be attacker controlled

Details

The Salt-SSH pre-flight option copies the script to the target at a predictable path, which allows an attacker to force Salt-SSH to run their script. If an attacker has access to the target VM and knows the path to the pre-flight script before it runs they can ensure Salt-SSH runs their script with the privileges of the user running Salt-SSH. Do not make the copy path on the target predictable and ensure we check return codes of the scp command if the copy fails.

Severity

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

Dates

Published
2026-07-07 14:34 UTC
Modified
2026-07-07 17:47 UTC

Affected packages and fixes

salt

PyPI · All systems

Affected

  • introduced 0, fixed 3005.4, introduced 3006.0rc1, fixed 3006.4 (ecosystem)

Fixed versions

3005.4, 3006.4

Fix

  • Fixed version 3005.4
    pip install --upgrade salt==3005.4
  • Fixed version 3006.4
    pip install --upgrade salt==3006.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