CVE-2015-4021 Integer overflow in n/a

Medium 5.0 Published Updated

Remote attackers can cause denial of service via integer underflow and memory corruption in PHP's phar extension by crafting a malicious tar archive.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2015-4021?

CVE-2015-4021 is a medium-severity vulnerability in Apple Mac Os X, published on 9 Jun 2015. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-189

Which versions are affected by CVE-2015-4021?

It affects 9 products.

Products include Apple Mac Os X, Php Php, Redhat Enterprise Linux, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Hpc Node, Redhat Enterprise Linux Hpc Node Eus and 3 more.

How do I fix CVE-2015-4021?

Upgrade to a fixed version.

Is CVE-2015-4021 being exploited?

There is no known exploitation of CVE-2015-4021 in the wild and no public exploit code.

All Apple Mac Os X vulnerabilities

Sources

Also known as GHSA-42r5-64j2-gjmp, UBUNTU-CVE-2015-4021.

Is CVE-2015-4021 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free