Advisory

GHSA-4277-m35q-7c9w

Also known as: CVE-2023-34049, PYSEC-2026-1892

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

Dates

Published
2024-11-14 06:30 UTC
Modified
2026-07-07 17:57 UTC

Affected packages and fixes

salt

PyPI · All systems

Affected

  • introduced 0, fixed 3005.4 (ecosystem)

Fixed versions

3005.4

Fix

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

salt

PyPI · All systems

Affected

  • introduced 3006.0rc1, fixed 3006.4 (ecosystem)

Fixed versions

3006.4

Fix

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

Sources & licences