CVE-2016-4072 Code injection in n/a

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code via crafted filenames in the PHP Phar extension due to improper null character handling.

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

What is CVE-2016-4072?

CVE-2016-4072 is a critical code injection vulnerability in Apple Mac Os X, published on 20 May 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Phar extension in PHP before 5.5.34, 5.6.x before 5.6.20, and 7.x before 7.0.5 allows remote attackers to execute arbitrary code via a crafted filename, as demonstrated by mishandling of \0 characters by the phar_analyze_path function in ext/phar/phar.c.

Weakness: CWE-20

Which versions are affected by CVE-2016-4072?

It affects 2 products.

Products include Apple Mac Os X, Php Php.

How do I fix CVE-2016-4072?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2016-4072 being exploited?

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

All Apple Mac Os X vulnerabilities

Sources

Also known as GHSA-j2xj-f75j-96w3, UBUNTU-CVE-2016-4072.

Is CVE-2016-4072 in your software?

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

Check your SBOMs for free