What’s Vulnerable › Vulnerabilities
CVE-2016-5399
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 9.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2017-04-21 · updated 2026-06-17
- Weakness: CWE-787
Description
The bzread function in ext/bz2/bz2.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted bz2 archive.
Affected products
- PHP: through 5.5.37; from 5.6.0 before 5.6.24; from 7.0.0 before 7.0.9 — fixed in 5.6.24, 7.0.9
How to fix
Upgrade to a fixed version: PHP 5.6.24, 7.0.9. Check the vendor advisory for mitigations.
References
- http://packetstormsecurity.com/files/137998/PHP-7.0.8-5.6.23-5.5.37-bzread-OOB-Write.html
- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- http://rhn.redhat.com/errata/RHSA-2016-2598.html
- http://rhn.redhat.com/errata/RHSA-2016-2750.html
- http://seclists.org/fulldisclosure/2016/Jul/72
- http://www.debian.org/security/2016/dsa-3631
- http://www.openwall.com/lists/oss-security/2016/07/21/1
- http://www.securityfocus.com/archive/1/538966/100/0/threaded
- http://www.securityfocus.com/bid/92051
- http://www.securitytracker.com/id/1036430
- https://bugs.php.net/bug.php?id=72613
Get alerted when CVE-2016-5399 or the next vulnerability affects your stack