← Vulnerability feed

Vulnerability record · CVE-2016-5399 · published 21 April 2017

CVE-2016-5399: Php out-of-bounds write vulnerability

Php · Php

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.

7.8 CVSS 3.1 High EPSS 9.8% · top 4.6% CWE-787 · Out-of-bounds write
7.8CVSS 3.1 base score, v2 6.8
9.8%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
30References, 10 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://packetstormsecurity.com/files/137998/PHP-7.0.8-5.6.23-5.5.37-bzread-OOB-Write.html ExploitThird Party AdvisoryVDB Entry
http://php.net/ChangeLog-5.php Release NotesVendor Advisory
http://php.net/ChangeLog-7.php Release NotesVendor Advisory
http://rhn.redhat.com/errata/RHSA-2016-2598.html Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2016-2750.html Third Party Advisory
http://seclists.org/fulldisclosure/2016/Jul/72 ExploitMailing ListThird Party Advisory
http://www.debian.org/security/2016/dsa-3631 Third Party Advisory
http://www.openwall.com/lists/oss-security/2016/07/21/1 ExploitMailing ListThird Party Advisory
http://www.securityfocus.com/archive/1/538966/100/0/threaded Third Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/92051 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1036430 Third Party AdvisoryVDB Entry
https://bugs.php.net/bug.php?id=72613 ExploitVendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1358395 Issue TrackingThird Party AdvisoryVDB Entry
https://security.netapp.com/advisory/ntap-20180112-0001/ Third Party Advisory
https://www.exploit-db.com/exploits/40155/ ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/137998/PHP-7.0.8-5.6.23-5.5.37-bzread-OOB-Write.html ExploitThird Party AdvisoryVDB Entry
http://php.net/ChangeLog-5.php Release NotesVendor Advisory
http://php.net/ChangeLog-7.php Release NotesVendor Advisory
http://rhn.redhat.com/errata/RHSA-2016-2598.html Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2016-2750.html Third Party Advisory
http://seclists.org/fulldisclosure/2016/Jul/72 ExploitMailing ListThird Party Advisory
http://www.debian.org/security/2016/dsa-3631 Third Party Advisory
http://www.openwall.com/lists/oss-security/2016/07/21/1 ExploitMailing ListThird Party Advisory
http://www.securityfocus.com/archive/1/538966/100/0/threaded Third Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/92051 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1036430 Third Party AdvisoryVDB Entry
https://bugs.php.net/bug.php?id=72613 ExploitVendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1358395 Issue TrackingThird Party AdvisoryVDB Entry
https://security.netapp.com/advisory/ntap-20180112-0001/ Third Party Advisory
https://www.exploit-db.com/exploits/40155/ ExploitThird Party AdvisoryVDB Entry

Track CVE-2016-5399 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2012-1823PHP-CGI query string option injection enables remote code executionPHP versions before 5.3.12 and 5.4.x before 5.4.2, when run as a CGI script (php-cgi), mishandle query strings that lack an equals sign, allowing com…KEVEPSS 100%analysed10.0CVE-2015-0235glibc gethostbyname heap buffer overflow (GHOST)CVE-2015-0235 is a heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2 and other 2.x versions before 2.18. It is reach…EPSS 95%analysed10.0CVE-2012-2688Php vulnerabilityUnspecified vulnerability in the _php_stream_scandir function in the stream implementation in PHP before 5.3.15 and 5.4.x before 5.4.5 has unknown im…EPSS 10%10.0CVE-2012-2376Php memory buffer overflow vulnerabilityBuffer overflow in the com_print_typeinfo function in PHP 5.4.3 and earlier on Windows allows remote attackers to execute arbitrary code via crafted …EPSS 20%10.0CVE-2011-3268Php memory buffer overflow vulnerabilityBuffer overflow in the crypt function in PHP before 5.3.7 allows context-dependent attackers to have an unspecified impact via a long salt argument, …EPSS 5.7%10.0CVE-2009-4143Php vulnerabilityPHP before 5.2.12 does not properly handle session data, which has unspecified impact and attack vectors related to (1) interrupt corruption of the S…EPSS 2.9%

Source: NIST National Vulnerability Database (record CVE-2016-5399), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.