CVE-2016-4072
php: Invalid memory write in phar on filename containing \0 inside name
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-20
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 4 fixes
Red Hat 1 release · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | php +24 | wont fix | — |
| 7 | rh-php56 +2 | 0:2.3-1.el7 | RHSA-2016:2750 |
| 7 | rh-php56-php +26 | 0:5.6.25-1.el7 | RHSA-2016:2750 |
| 7 | rh-php56-php-pear | 1:1.9.5-4.el7 | RHSA-2016:2750 |
References
- lists.apple.com http://lists.apple.com/archives/security-announce/2016/May/msg00004.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2016-2750.html
- www.debian.org http://www.debian.org/security/2016/dsa-3560
- www.openwall.com http://www.openwall.com/lists/oss-security/2016/04/11/7
- www.openwall.com http://www.openwall.com/lists/oss-security/2016/04/24/1
- www.php.net http://www.php.net/ChangeLog-5.php
- www.php.net http://www.php.net/ChangeLog-7.php
- www.securityfocus.com http://www.securityfocus.com/bid/85993
- www.ubuntu.com http://www.ubuntu.com/usn/USN-2952-1
- www.ubuntu.com http://www.ubuntu.com/usn/USN-2952-2
Show all 23 references
- access.redhat.com https://access.redhat.com/security/cve/CVE-2016-4072
- bugs.php.net https://bugs.php.net/bug.php?id=71860
- gist.github.com https://gist.github.com/smalyshev/80b5c2909832872f2ba2
- git.php.net https://git.php.net/?p=php-src.git%3Ba=commit%3Bh=1e9b175204e3286d64dfd6c9f09151c31b5e099a
- h20566.www2.hpe.com https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
- h20566.www2.hpe.com https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05320149
- h20566.www2.hpe.com https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2016-4072
- security.gentoo.org https://security.gentoo.org/glsa/201611-22
- support.apple.com https://support.apple.com/HT206567
- ubuntu.com https://ubuntu.com/security/notices/USN-2952-1
- ubuntu.com https://ubuntu.com/security/notices/USN-2984-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2016-4072
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.