CVE-2015-4021

CVE-2015-4021 is a medium-severity vulnerability in Php with a CVSS 2.0 base score of 5.0. Its EPSS exploit-prediction score of 21% places it in the 97th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-189.

Key facts

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.

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.
How severe is CVE-2015-4021?
CVE-2015-4021 has a CVSS 2.0 base score of 5.0, rated medium severity.
Is CVE-2015-4021 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 21% (97th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2015-4021?
CVE-2015-4021 primarily affects Php. In total, 61 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2015-4021?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2015-4021 published?
CVE-2015-4021 was published on 2015-06-09 and last updated on 2026-06-17.

References

Affected products (61)

More vulnerabilities in Php

All CVEs affecting Php →

Other CWE-189 (Numeric Errors) vulnerabilities

Browse all CWE-189 (Numeric Errors) vulnerabilities →

Threat intelligence

Threat-intel indicators referencing this CVE: