CVE-2015-1839 SaltStack has insecure /tmp file handling in salt/modules/chef.py

Medium 5.3 Published Updated

An attacker can exploit improper file handling in /tmp to execute arbitrary code or escalate privileges via the SaltStack Chef 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-1839?

CVE-2015-1839 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/chef.py in SaltStack before 2014.7.4 does not properly handle files in /tmp.

Weakness: CWE-19

Which versions are affected by CVE-2015-1839?

3 open source packages ship an affected version, including salt. It affects 2 products.

PackageAffectedFixed in
salt PyPIAll versions2014.7.4
salt PyPIAll versions2014.7.4
salt PyPIAll versions2014.7.4

Products include Fedoraproject Fedora, Saltstack Salt.

How do I fix CVE-2015-1839?

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-1839 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as GHSA-6grp-75pq-c8cj, PYSEC-2017-30.

Is CVE-2015-1839 in your software?

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

Check your SBOMs for free