{"id":"CVE-2016-4072","url":"https://www.cyber-defence.io/tools/cve/CVE-2016-4072","generatedAt":"2026-10-27T19:43:21.547Z","title":"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…","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.","published":"2016-05-20T11:00:17.000Z","lastModified":"2026-06-17T00:46:50.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.0","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-20"],"affected":["php/php","apple/mac os x"],"epss":{"score":0.05932,"percentile":0.93207,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (5.93%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"http://lists.apple.com/archives/security-announce/2016/May/msg00004.html","source":"cve@mitre.org"},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html","source":"cve@mitre.org"},{"url":"http://www.debian.org/security/2016/dsa-3560","source":"cve@mitre.org"},{"url":"http://www.openwall.com/lists/oss-security/2016/04/24/1","source":"cve@mitre.org"},{"url":"http://www.php.net/ChangeLog-5.php","source":"cve@mitre.org"},{"url":"http://www.php.net/ChangeLog-7.php","source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/bid/85993","source":"cve@mitre.org"},{"url":"http://www.ubuntu.com/usn/USN-2952-1","source":"cve@mitre.org"},{"url":"http://www.ubuntu.com/usn/USN-2952-2","source":"cve@mitre.org"},{"url":"https://bugs.php.net/bug.php?id=71860","source":"cve@mitre.org"},{"url":"https://gist.github.com/smalyshev/80b5c2909832872f2ba2","source":"cve@mitre.org"},{"url":"https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=1e9b175204e3286d64dfd6c9f09151c31b5e099a","source":"cve@mitre.org"},{"url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731","source":"cve@mitre.org"},{"url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05320149","source":"cve@mitre.org"},{"url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722","source":"cve@mitre.org"},{"url":"https://security.gentoo.org/glsa/201611-22","source":"cve@mitre.org"},{"url":"https://support.apple.com/HT206567","source":"cve@mitre.org"},{"url":"http://lists.apple.com/archives/security-announce/2016/May/msg00004.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.debian.org/security/2016/dsa-3560","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.openwall.com/lists/oss-security/2016/04/24/1","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.php.net/ChangeLog-5.php","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.php.net/ChangeLog-7.php","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/85993","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.ubuntu.com/usn/USN-2952-1","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.ubuntu.com/usn/USN-2952-2","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugs.php.net/bug.php?id=71860","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://gist.github.com/smalyshev/80b5c2909832872f2ba2","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=1e9b175204e3286d64dfd6c9f09151c31b5e099a","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05320149","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/201611-22","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/HT206567","source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-4072","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}