cve.bz

CVE-2018-12015 Link Following

7.5 highExploit referenceEPSS 7.2%Fix available

High (7.5). EPSS 7.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
7.2% (unchanged from 7.3% a week ago; 7.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-12015 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-12015?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-12015?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-12015 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
canonical:ubuntu_linux18.04
debian:debian_linux8.0
debian:debian_linux9.0
perl:perlthrough 5.26.2
archive\:\through 2.28
apple:mac_os_xbefore 10.14.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8perl5.20.2-3+deb8u11DSA-4226-1
Debian9perl5.24.1-3+deb9u4DSA-4226-1
Debian12, 13, 14perl5.26.2-6DEBIAN-CVE-2018-12015
Ubuntu14.04:LTSperl5.18.2-2ubuntu1.6UBUNTU-CVE-2018-12015 USN-3684-1
Ubuntu16.04:LTSperl5.22.1-9ubuntu0.5UBUNTU-CVE-2018-12015 USN-3684-1
Ubuntu18.04:LTSperl5.26.1-6ubuntu0.1UBUNTU-CVE-2018-12015 USN-3684-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreperl-Archive-Tar0:1.92-3.el7RHSA-2019:2097
Red Hathummingbird:1perl, perl-ph, perl-doc and 8 more0:5.42.2-524.1.hum1RHSA-2026:7604
Red Hathummingbird:1perl-AutoSplit, perl-AutoLoader0:5.74-524.1.hum1RHSA-2026:7604
Red Hathummingbird:1perl-B0:1.89-524.1.hum1RHSA-2026:7604
Red Hathummingbird:1perl-Benchmark, perl-Hash-Util-FieldHash0:1.27-524.1.hum1RHSA-2026:7604
Red Hathummingbird:1perl-Class-Struct0:0.68-524.1.hum1RHSA-2026:7604
Red Hathummingbird:1perl-DBM_Filter0:0.07-524.1.hum1RHSA-2026:7604
Red Hathummingbird:1perl-Devel-Peek0:1.36-524.1.hum1RHSA-2026:7604
Red Hathummingbird:1perl-Devel-SelfStubber0:1.06-524.1.hum1RHSA-2026:7604
Red Hathummingbird:1perl-DynaLoader0:1.57-524.1.hum1RHSA-2026:7604
Red Hathummingbird:1perl-English, perl-autouse0:1.11-524.1.hum1RHSA-2026:7604
Red Hathummingbird:1perl-Errno0:1.38-524.1.hum1RHSA-2026:7604
55 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP1-LTSS and 7 moreperl5.18.2-12.14.1SUSE-SU-2018:1972-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Development Tools 15perl5.26.1-7.3.1SUSE-SU-2018:1977-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 3 moreperl5.10.0-64.81.13.1SUSE-SU-2018:1992-1
SUSELinux Enterprise Server 12 SP2-BCLperl5.18.2-12.14.1SUSE-SU-2018:1972-2
Alpinev3.5, v3.6perl5.24.4-r1ALPINE-CVE-2018-12015
Alpinev3.7, v3.8, v3.9 and 15 moreperl5.26.2-r1ALPINE-CVE-2018-12015

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7perl-Archive-Tar-0:1.92-3.el7Fixed 2019-08-06RHSA-2019:2097
Red Hat Hardened Imagesperl-main-0.02-524.1.hum1Fixed 2026-04-10RHSA-2026:7604
Red Hat Hardened Imagesperl-main-5.42.2-524.1.hum1Fixed 2026-04-10RHSA-2026:7604
Red Hat Enterprise Linux 5perl-Archive-TarWill not fix
Red Hat Enterprise Linux 6perlWill not fix
Red Hat Enterprise Linux 8perl-Archive-TarNot affected
Red Hat Software Collectionsrh-perl520-perl-Archive-TarWill not fix
Red Hat Software Collectionsrh-perl524-perl-Archive-TarOut of support scope
Red Hat Software Collectionsrh-perl526-perl-Archive-TarWill not fix
Red Hat Software Collectionsrh-perl530-perl-Archive-TarNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-12015.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON