CVE-2015-7529 SoSReport Predictable Tmp File Names

High 7.8 Published Updated

Local attackers can exploit symlink attacks in temporary directories to read sensitive data or escalate privileges using the sosreport utility.

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-7529?

CVE-2015-7529 is a high-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 6 Nov 2017. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

sosreport in SoS 3.x allows local users to obtain sensitive information from sosreport files or gain privileges via a symlink attack on an archive file in a temporary directory, as demonstrated by sosreport-$hostname-$date.tar in /tmp/sosreport-$hostname-$date.

Weakness: CWE-59

Which versions are affected by CVE-2015-7529?

3 open source packages ship an affected version, including sosreport. It affects 8 products.

PackageAffectedFixed in
sosreport PyPIFrom 3.0None
sosreport PyPIFrom 3.03.3
sosreport PyPIFrom 3.03.3
Linux distribution packages (8)
sos Red Hat:enterprise_linux:6::clientAll versions0:3.2-28.el6_7.2
sos Red Hat:enterprise_linux:6::computenodeAll versions0:3.2-28.el6_7.2
sos Red Hat:enterprise_linux:6::serverAll versions0:3.2-28.el6_7.2
sos Red Hat:enterprise_linux:6::workstationAll versions0:3.2-28.el6_7.2
sos Red Hat:enterprise_linux:7::clientAll versions0:3.2-35.el7_2.3
sos Red Hat:enterprise_linux:7::computenodeAll versions0:3.2-35.el7_2.3
sos Red Hat:enterprise_linux:7::serverAll versions0:3.2-35.el7_2.3
sos Red Hat:enterprise_linux:7::workstationAll versions0:3.2-35.el7_2.3

Products include Canonical Ubuntu Linux, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus, Redhat Enterprise Linux Server Eus, Redhat Enterprise Linux Server Tus and 2 more.

How do I fix CVE-2015-7529?

Upgrade sosreport to 3.3 or later.

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

Is CVE-2015-7529 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2015-7529, GHSA-3g56-2hh3-35ph, PYSEC-2017-73, RHSA-2016:0152, RHSA-2016:0188, UBUNTU-CVE-2015-7529.

Is CVE-2015-7529 in your software?

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

Check your SBOMs for free