Back to CVE records
Medium 5.0Published Jun 9, 2015

CVE-2015-4021The 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 cha…

Updated under an hour ago ()

Does this affect you?

It affects redhat enterprise_linux_desktop and 8 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

Free: a daily email for up to 3 products and the weekly digest. No card, no password. By continuing you agree to the Terms and Privacy Policy.

CVSS
5.0 MEDIUM (v2.0, NVD)AV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness (CWE)
CWE-189
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Not given
NVD analysis
Modified
Record last updated
Jun 16, 2026
First seen by InfoSec Signals
Nov 1, 2026

Affected products

Affected products
redhat enterprise_linux_desktop
redhat:enterprise_linux_desktop
7.0
NVD
redhat enterprise_linux_hpc_node
redhat:enterprise_linux_hpc_node
7.0
NVD
redhat enterprise_linux_hpc_node_eus
redhat:enterprise_linux_hpc_node_eus
7.1
NVD
redhat enterprise_linux_server
redhat:enterprise_linux_server
7.0
NVD
redhat enterprise_linux_server_eus
redhat:enterprise_linux_server_eus
7.1
NVD
redhat enterprise_linux_workstation
redhat:enterprise_linux_workstation
7.0
NVD
apple mac_os_x
apple:mac_os_x
through 10.10.4
NVD
redhat enterprise_linux
redhat:enterprise_linux
6.0; 7.0
NVD
php php
php:php
through 5.4.40; 5.4.39; 5.5.0; 5.5.0; 5.5.0; 5.5.0; 5.5.0; 5.5.0; and 44 more ranges
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Essential cookies only, unless you allow a Google ads cookie. See our .