CVE-2016-4072
publishedphp: Invalid memory write in phar on filename containing \0 inside name
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | jessie | php5 | Advisory build | 5.6.20+dfsg-0+deb8u1 | DSA-3560-1 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56src | Advisory build | 2.3-1.el6 | RHSA-2016:2750 |
| Ubuntu | xenial | libapache2-mod-php7.0 | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Debian | wheezy | php5 | Advisory build | 5.4.45-0+deb7u3 | DLA-499-1 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56x86_64 | Advisory build | 2.3-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-phpsrc | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-phpx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-bcmathx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-clix86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-commonx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-dbax86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-dbgx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-debuginfox86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-develx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-embeddedx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-enchantx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-fpmx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-gdx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-gmpx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-imapx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-intlx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-ldapx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-mbstringx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-mysqlndx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-odbcx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-opcachex86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-pdox86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-pearnoarch | Advisory build | 1:1.9.5-4.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-pearsrc | Advisory build | 1:1.9.5-4.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-pgsqlx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-processx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-pspellx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-recodex86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-snmpx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-soapx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-tidyx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-xmlx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-php-xmlrpcx86_64 | Advisory build | 5.6.25-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-runtimex86_64 | Advisory build | 2.3-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php56-scldevelx86_64 | Advisory build | 2.3-1.el6 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56src | Advisory build | 2.3-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56x86_64 | Advisory build | 2.3-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-phpsrc | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-phpx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-bcmathx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-clix86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-commonx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-dbax86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-dbgx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-debuginfox86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-develx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-embeddedx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-enchantx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-fpmx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-gdx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-gmpx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-intlx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-ldapx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-mbstringx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-mysqlndx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-odbcx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-opcachex86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-pdox86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-pearnoarch | Advisory build | 1:1.9.5-4.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-pearsrc | Advisory build | 1:1.9.5-4.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-pgsqlx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-processx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-pspellx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-recodex86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-snmpx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-soapx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-xmlx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-php-xmlrpcx86_64 | Advisory build | 5.6.25-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-runtimex86_64 | Advisory build | 2.3-1.el7 | RHSA-2016:2750 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php56-scldevelx86_64 | Advisory build | 2.3-1.el7 | RHSA-2016:2750 |
| Ubuntu | xenial | libphp7.0-embed | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0 | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-bcmath | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-bz2 | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-cgi | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-cli | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-common | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-curl | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-enchant | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-fpm | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-gd | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-gmp | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-imap | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-interbase | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-intl | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-json | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-ldap | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-mbstring | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-mcrypt | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-mysql | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-odbc | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-opcache | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-pgsql | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-phpdbg | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
| Ubuntu | xenial | php7.0-pspell | Advisory build | 7.0.4-7ubuntu2.1 | USN-2984-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
17- APPLE-SA-2016-05-16-4 http://lists.apple.com/archives/security-announce/2016/May/msg00004.html
- RHSA-2016:2750 http://rhn.redhat.com/errata/RHSA-2016-2750.html
- DSA-3560 http://www.debian.org/security/2016/dsa-3560
- [oss-security] 20160423 Re: CVE request: PHP issues fixed in 7.0.5, 5.6.20 and 5.5.34 releases http://www.openwall.com/lists/oss-security/2016/04/24/1
- http://www.php.net/ChangeLog-5.php
- http://www.php.net/ChangeLog-7.php
- 85993 http://www.securityfocus.com/bid/85993
- USN-2952-1 http://www.ubuntu.com/usn/USN-2952-1
- USN-2952-2 http://www.ubuntu.com/usn/USN-2952-2
- https://bugs.php.net/bug.php?id=71860
- https://gist.github.com/smalyshev/80b5c2909832872f2ba2
- https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=1e9b175204e3286d64dfd6c9f09151c31b5e099a
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05320149
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722
- GLSA-201611-22 https://security.gentoo.org/glsa/201611-22
- https://support.apple.com/HT206567
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9b8446929b7c3222c3f9c7d9916601237665804585b8f12e44dba21ea519a462
- Ingested
- 23 Sep 2026, 07:41:18 UTC
- Source record
- Official CVE record