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.

Project Subscriptions

Vendors Products
Mac Os X Subscribe
Enterprise Linux Subscribe
Enterprise Linux Desktop Subscribe
Enterprise Linux Hpc Node Subscribe
Enterprise Linux Hpc Node Eus Subscribe
Enterprise Linux Server Subscribe
Enterprise Linux Server Eus Subscribe
Enterprise Linux Workstation Subscribe
Rhel Software Collections Subscribe
Advisories
Source ID Title
Debian DLA Debian DLA DLA-307-1 php5 security update
Debian DSA Debian DSA DSA-3280-1 php5 security update
Ubuntu USN Ubuntu USN USN-2658-1 PHP vulnerabilities
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Sun, 13 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.32894}

epss

{'score': 0.36369}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-06T06:04:02.980Z

Reserved: 2015-05-18T00:00:00.000Z

Link: CVE-2015-4021

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2015-06-09T18:59:04.567

Modified: 2025-04-12T10:46:40.837

Link: CVE-2015-4021

cve-icon Redhat

Severity : Moderate

Publid Date: 2015-05-14T00:00:00Z

Links: CVE-2015-4021 - Bugzilla

cve-icon OpenCVE Enrichment

No data.