CVE-2024-22231 Syndic cache directory creation is vulnerable to a directory traversal attack

Medium 5.0 Published Updated

A malicious attacker can exploit a directory traversal vulnerability in Salt Project to create arbitrary directories on the Salt master.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-22231?

CVE-2024-22231 is a medium-severity path traversal vulnerability in VMware Salt Project, published on 27 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Syndic cache directory creation is vulnerable to a directory traversal attack in salt project which can lead a malicious attacker to create an arbitrary directory on a Salt master.

Weakness: CWE-22

Which versions are affected by CVE-2024-22231?

5 open source packages ship an affected version, including salt.

PackageAffectedFixed in
salt PyPIAll versions3005.5, 3006.6
salt PyPIAll versions3005.5
salt PyPIAll versions3005.5
salt PyPIFrom 3006.03006.6
salt PyPIFrom 3006.03006.6

How do I fix CVE-2024-22231?

Upgrade salt to a fixed version for your release line: 3005.5 or 3006.6.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-22231 being exploited?

There is no known exploitation of CVE-2024-22231 in the wild and no public exploit code.

Sources

Also known as GHSA-q27c-j6j9-53w3, PYSEC-2026-1900, UBUNTU-CVE-2024-22231.

Is CVE-2024-22231 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free