CVE-2016-4072: 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…

CVE-2016-4072 affects 9 listed versions of PHP in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
6%EPSS (next 30 days)
20 May 2016published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PHP

9 of 250 listed versions are affected. Fixed in 5.5.34. The newest release, 8.6.0, is not affected.

5.5.33 5.5.32 5.5.31 5.5.30 5.5.29 5.5.27 5.5.26 5.5.25 5.5.24

What it is

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.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by MITRE on 20 May 2016. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2016-4072 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.