CVE-2024-22231 Syndic cache directory creation is vulnerable to a directory traversal attack
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.
| Package | Affected | Fixed in |
|---|---|---|
salt PyPI | All versions | 3005.5, 3006.6 |
salt PyPI | All versions | 3005.5 |
salt PyPI | All versions | 3005.5 |
salt PyPI | From 3006.0 | 3006.6 |
salt PyPI | From 3006.0 | 3006.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.