CVE-2015-1838 Salt improper handling of tmp files
An attacker can exploit improper file handling in /tmp to execute arbitrary code or escalate privileges via the SaltStack serverdensity_device module.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2015-1838?
CVE-2015-1838 is a medium-severity path traversal vulnerability in Fedoraproject Fedora, published on 13 Apr 2017. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
modules/serverdensity_device.py in SaltStack before 2014.7.4 does not properly handle files in /tmp.
Weakness: CWE-19
Which versions are affected by CVE-2015-1838?
3 open source packages ship an affected version, including salt. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
salt PyPI | All versions | 2014.7.4 |
salt PyPI | All versions | 2014.7.4 |
salt PyPI | All versions | 2014.7.4 |
Products include Fedoraproject Fedora, Saltstack Salt.
How do I fix CVE-2015-1838?
Upgrade salt to 2014.7.4 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2015-1838 being exploited?
There is no known exploitation of CVE-2015-1838 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as GHSA-92pw-mff9-jqgm, PYSEC-2017-29.