Skip to main content
No exploitation reportedFix available

CVE-2015-4021

No exploitation reported by the sources we read.

  • Published2015-06-09
  • WeaknessCWE-189

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

The phar_parse_tarfile function in ext/phar/tar.c in PHP before 5.4.41, 5.5.x before 5.5.25, and 5.6.x before 5.6.9 does not verify that the first character of a filename is different from the \0 character, which allows remote attackers to cause a denial of service (integer underflow and memory corruption) via a crafted entry in a tar archive.

Timeline

dates in UTC
  1. 2015-06-0918:59CVE publishedNVD
  2. 2026-10-2319:23EPSS crossed 10 %FIRST EPSS

Versions per branch

NVD
PHP
BranchAffectedFixed in
5.4≤ 5.4.40no fix published
5.4= 5.4.39no fix published
5.5= 5.5.0no fix published
5.5= 5.5.1no fix published
5.5= 5.5.2no fix published
5.5= 5.5.3no fix published
5.5= 5.5.4no fix published
5.5= 5.5.5no fix published
5.5= 5.5.6no fix published
5.5= 5.5.7no fix published
5.5= 5.5.8no fix published
5.5= 5.5.9no fix published
Redhat enterprise linux
BranchAffectedFixed in
6.0= 6.0no fix published
7.0= 7.0no fix published
Apple mac os x
BranchAffectedFixed in
10.10≤ 10.10.4no fix published

6 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • phpRed Hat:enterprise_linux:7::workstationall versions · fixed in 0:5.4.16-36.el7_1and 25 other packages
  • phpRed Hat:enterprise_linux:7::serverall versions · fixed in 0:5.4.16-36.ael7b_1and 25 other packages
  • phpRed Hat:enterprise_linux:7::computenodeall versions · fixed in 0:5.4.16-36.el7_1and 25 other packages
  • phpRed Hat:enterprise_linux:7::clientall versions · fixed in 0:5.4.16-36.el7_1and 25 other packages
  • phpRed Hat:enterprise_linux:6::workstationall versions · fixed in 0:5.3.3-46.el6_6and 27 other packages
  • phpRed Hat:enterprise_linux:6::serverall versions · fixed in 0:5.3.3-46.el6_6and 27 other packages
  • phpRed Hat:enterprise_linux:6::computenodeall versions · fixed in 0:5.3.3-46.el6_6and 27 other packages
  • phpRed Hat:enterprise_linux:6::clientall versions · fixed in 0:5.3.3-46.el6_6and 27 other packages

16 more package ranges on OSV.dev

Vendor advisories

  • CVE-2015-4021 Red Hat Product Security1,046 products fixed · 1 known affected

    php: memory corruption in phar_parse_tarfile caused by empty entry file name

    php53.src as a component of Red Hat Enterprise Linux 5

  • RHSA-2015:1219 Red Hat Product Security183 products fixed

    Red Hat Security Advisory: php54-php security update

  • RHSA-2015:1218 Red Hat Product Security263 products fixed

    Red Hat Security Advisory: php security update

  • RHSA-2015:1187 Red Hat Product Security211 products fixed

    Red Hat Security Advisory: rh-php56-php security update

  • RHSA-2015:1186 Red Hat Product Security197 products fixed

    Red Hat Security Advisory: php55-php security update

  • RHSA-2015:1135 Red Hat Product Security192 products fixed

    Red Hat Security Advisory: php security and bug fix update

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2015:1219 · 183 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  2. No fix planned, says the vendor Red Hat Product Security CVE-2015-4021 · 1 productWill not fix

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

Published
2015-06-09
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-42r5-64j2-gjmp

Frequently asked questions

What is CVE-2015-4021?

The phar_parse_tarfile function in ext/phar/tar.c in PHP before 5.4.41, 5.5.x before 5.5.25, and 5.6.x before 5.6.9 does not verify that the first character of a filename is different from the \0 character, which allows remote attackers to cause a denial of service (integer underflow and memory corruption) via a crafted entry in a tar archive.

Is CVE-2015-4021 actively exploited?

Active exploitation of CVE-2015-4021 has not been confirmed. Its EPSS score was 20.5% on 2026-11-17, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2015-4021?

A CVSS score has not been assigned to CVE-2015-4021 yet.

Running PHP? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record