CVE-2016-4072
php: Invalid memory write in phar on filename containing \0 inside name
Severity
ModerateRed Hat Product Security
CVSS 3.0
Review impact separately from score.
Published · March 19, 2016
Updated · June 28, 2026
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.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.0 · 4.5CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
CVSS 2.0 · 4.1AV:L/AC:M/Au:S/C:P/I:P/A:P
CWE-787 · Out-of-bounds Write