CVE-2018-12015 Path traversal in n/a

High 7.5 Published Updated

Attackers can overwrite arbitrary files by exploiting a symlink bypass in the Perl Archive::Tar module during archive extraction.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-12015?

CVE-2018-12015 is a high-severity path traversal vulnerability in Apple Mac Os X, published on 7 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mechanism, and overwrite arbitrary files, via an archive file containing a symlink and a regular file with the same name.

Weakness: CWE-59

Which versions are affected by CVE-2018-12015?

It affects 9 products.

Linux distribution packages (12)
perl-Archive-Tar Red Hat:enterprise_linux:7::clientAll versions0:1.92-3.el7
perl-Archive-Tar Red Hat:enterprise_linux:7::computenodeAll versions0:1.92-3.el7
perl-Archive-Tar Red Hat:enterprise_linux:7::serverAll versions0:1.92-3.el7
perl-Archive-Tar Red Hat:enterprise_linux:7::workstationAll versions0:1.92-3.el7
perl SUSE:Linux Enterprise Module for Basesystem 15All versions5.26.1-7.3.1
perl SUSE:Linux Enterprise Module for Development Tools 15All versions5.26.1-7.3.1
perl SUSE:Linux Enterprise Point of Sale 11 SP3All versions5.10.0-64.81.13.1
perl SUSE:Linux Enterprise Server 11 SP3-LTSSAll versions5.10.0-64.81.13.1
perl SUSE:Linux Enterprise Server 11 SP3-TERADATAAll versions5.10.0-64.81.13.1
perl SUSE:Linux Enterprise Server 11 SP4All versions5.10.0-64.81.13.1
perl SUSE:Linux Enterprise Server for SAP Applications 11 SP4All versions5.10.0-64.81.13.1
perl SUSE:Linux Enterprise Software Development Kit 11 SP4All versions5.10.0-64.81.13.1

Products include Apple Mac Os X, Archive\ \, Canonical Ubuntu Linux, Debian Debian Linux, Netapp Data Ontap Edge, Netapp Oncommand Workflow Automation and 3 more.

How do I fix CVE-2018-12015?

Apply the vendor's patch.

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

Is CVE-2018-12015 being exploited?

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

All Apple Mac Os X vulnerabilities

Sources

Also known as ALPINE-CVE-2018-12015, CLEANSTART-2026-CC44025, CLSA-2026-1777878729, CLSA-2026-1777879919, DEBIAN-CVE-2018-12015, DSA-4226-1 and 6 more.

Is CVE-2018-12015 in your software?

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

Check your SBOMs for free