CVE-2015-4021
No exploitation reported by the sources we read.
- Published2015-06-09
- WeaknessCWE-189
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2015-06-0918:59CVE publishedNVD
- 2026-10-2319:23EPSS crossed 10 %FIRST EPSS
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.4 | ≤ 5.4.40 | no fix published | NVD |
| 5.4 | = 5.4.39 | no fix published | NVD |
| 5.5 | = 5.5.0 | no fix published | NVD |
| 5.5 | = 5.5.1 | no fix published | NVD |
| 5.5 | = 5.5.2 | no fix published | NVD |
| 5.5 | = 5.5.3 | no fix published | NVD |
| 5.5 | = 5.5.4 | no fix published | NVD |
| 5.5 | = 5.5.5 | no fix published | NVD |
| 5.5 | = 5.5.6 | no fix published | NVD |
| 5.5 | = 5.5.7 | no fix published | NVD |
| 5.5 | = 5.5.8 | no fix published | NVD |
| 5.5 | = 5.5.9 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 6.0 | = 6.0 | no fix published | NVD |
| 7.0 | = 7.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 10.10 | ≤ 10.10.4 | no fix published | NVD |
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
php: memory corruption in phar_parse_tarfile caused by empty entry file name
php53.src as a component of Red Hat Enterprise Linux 5
Red Hat Security Advisory: php54-php security update
Red Hat Security Advisory: php security update
Red Hat Security Advisory: rh-php56-php security update
Red Hat Security Advisory: php55-php security update
Red Hat Security Advisory: php security and bug fix update
Fix
- 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
- No fix planned, says the vendor Red Hat Product Security CVE-2015-4021 · 1 productWill not fix
Advisories and patches
- php.netPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-18
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 2.05read 2026-10-23
- NVDweakness (CWE)CWE-189read 2026-10-23
- FIRST EPSSEPSS score20.5 %read 2026-11-18
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2015-4049same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-42r5-64j2-gjmpsame flawGitHub Advisory Database · CC-BY-4.0
- DLA-307-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-3280-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2015-0231advisory covering several CVEsMageia · LicenseRef-unstated
- RHSA-2015:1135advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2015:1186advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2015:1187advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2015:1218advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2015:1219advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2015:1253-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2015:1253-2advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2016:1638-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-2658-1advisory covering several CVEsUbuntu
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?
Is CVE-2015-4021 actively exploited?
What is the CVSS score for CVE-2015-4021?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-42r5-64j2-gjmp
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0