CVE-2024-22232: PYSEC-2026-1891 - Path traversal in saltstack

CVE-2024-22232 · Severity: low · CVSS 3.1 · Published 2026-07-07

SaltStack Salt is a configuration management and infrastructure automation platform widely used to manage servers at scale. A path traversal vulnerability in the Salt file server allows authenticated attackers to read arbitrary files from the Salt master's filesystem by crafting a specially designed URL, potentially exposing sensitive configuration data, credentials, and other confidential information.

Technologies: salt (PyPI), Saltstack Salt. Vendors: PyPI, Saltstack.

Quick answers

Is CVE-2024-22232 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-22232 being exploited in the wild.
How severe is CVE-2024-22232?
Low severity, with a CVSS score of 3.1, published 7 July 2026.
Which products and versions are affected?
salt (PyPI) ECOSYSTEM:introduced=0,fixed=3005.5,introduced=3006.0,fixed=3006.6; Saltstack Salt Before 3005.5 and before 3006.6.
Is there a fix for CVE-2024-22232?
Yes. salt (PyPI): upgrade to 3006.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2024-22232 attacked?
It is attacked over the network.
Am I affected by CVE-2024-22232?
Check whether you run salt (PyPI) or Saltstack Salt at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • salt (PyPI): upgrade to 3006.6 or later
    pip install "salt>=3006.6"

Technical details

The vulnerability is a path traversal (CWE-22) in the Salt file server's find_file function. The root cause involves inadequate validation of file paths, particularly insufficient checks for absolute paths and directory traversal sequences (../) that were previously removed. The attack requires an authenticated user with access to the file server and is network-reachable. An attacker can exploit this by crafting malicious URLs containing path traversal payloads to read arbitrary files outside the intended serving directory on the Salt master. The fix was implemented in version 3005.5 and 3006.6, removing faulty validation logic and replacing it with proper URL escape handling.

Affected products

  • SaltStack Salt Before 3005.5 and before 3006.6

Identifiers

  • CVE-2024-22232
  • GHSA-2qw3-2wv6-p64x
  • PYSEC-2026-1891

Timeline

  • 2024-06-27: disclosed: Published as GHSA-2qw3-2wv6-p64x
  • 2024-01-24: patched: Fix committed to salt repository

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.