7.8
HIGH
CVE-2016-5399
PHP Bz2 Out-of-Bounds Write/Arbitrary Code Execution
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.

INFO

Published Date :

April 21, 2017, 8:59 p.m.

Last Modified :

Feb. 12, 2023, 11:23 p.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Public PoC/Exploit Available at Github

CVE-2016-5399 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2016-5399 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Php php
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2016-5399.

URL Resource
http://packetstormsecurity.com/files/137998/PHP-7.0.8-5.6.23-5.5.37-bzread-OOB-Write.html Exploit Third Party Advisory VDB Entry
http://php.net/ChangeLog-5.php Release Notes Vendor Advisory
http://php.net/ChangeLog-7.php Release Notes Vendor 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 Exploit Mailing List Third Party Advisory
http://www.debian.org/security/2016/dsa-3631 Third Party Advisory
http://www.openwall.com/lists/oss-security/2016/07/21/1 Exploit Mailing List Third Party Advisory
http://www.securityfocus.com/archive/1/538966/100/0/threaded Third Party Advisory VDB Entry
http://www.securityfocus.com/bid/92051 Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1036430 Third Party Advisory VDB Entry
https://bugs.php.net/bug.php?id=72613 Exploit Vendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1358395 Issue Tracking Third Party Advisory VDB Entry
https://security.netapp.com/advisory/ntap-20180112-0001/ Third Party Advisory
https://www.exploit-db.com/exploits/40155/ Exploit Third Party Advisory VDB Entry

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Python

Updated: 4 years, 5 months ago
0 stars 0 fork 0 watcher
Born at : April 7, 2020, 8:28 a.m. This repo has been linked 75 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2016-5399 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2016-5399 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Feb. 12, 2023

    Action Type Old Value New Value
    Changed Description A flaw was found in the way certain error conditions were handled by bzread() function in PHP. An attacker could use this flaw to upload a specially crafted bz2 archive which, when parsed via the vulnerable function, could cause the application to crash or execute arbitrary code with the permissions of the user running the PHP application. 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.
    Removed CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Removed CVSS V2 Red Hat, Inc. (AV:N/AC:H/Au:N/C:P/I:P/A:P)
    Removed CVSS V3 Red Hat, Inc. AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    Removed Reference https://access.redhat.com/errata/RHSA-2016:2598 [No Types Assigned]
    Removed Reference https://access.redhat.com/errata/RHSA-2016:2750 [No Types Assigned]
    Removed Reference https://access.redhat.com/security/cve/CVE-2016-5399 [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 02, 2023

    Action Type Old Value New Value
    Changed 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. A flaw was found in the way certain error conditions were handled by bzread() function in PHP. An attacker could use this flaw to upload a specially crafted bz2 archive which, when parsed via the vulnerable function, could cause the application to crash or execute arbitrary code with the permissions of the user running the PHP application.
    Added CVSS V2 Red Hat, Inc. (AV:N/AC:H/Au:N/C:P/I:P/A:P)
    Added CVSS V3 Red Hat, Inc. AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added Reference https://access.redhat.com/errata/RHSA-2016:2750 [No Types Assigned]
    Added Reference https://access.redhat.com/security/cve/CVE-2016-5399 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2016:2598 [No Types Assigned]
  • Modified Analysis by [email protected]

    Aug. 16, 2022

    Action Type Old Value New Value
    Removed CVSS V3 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type http://rhn.redhat.com/errata/RHSA-2016-2598.html No Types Assigned http://rhn.redhat.com/errata/RHSA-2016-2598.html Third Party Advisory
    Changed Reference Type http://rhn.redhat.com/errata/RHSA-2016-2750.html No Types Assigned http://rhn.redhat.com/errata/RHSA-2016-2750.html Third Party Advisory
    Changed Reference Type http://www.debian.org/security/2016/dsa-3631 No Types Assigned http://www.debian.org/security/2016/dsa-3631 Third Party Advisory
    Changed Reference Type http://www.securityfocus.com/archive/1/538966/100/0/threaded No Types Assigned http://www.securityfocus.com/archive/1/538966/100/0/threaded Third Party Advisory, VDB Entry
    Changed Reference Type https://security.netapp.com/advisory/ntap-20180112-0001/ No Types Assigned https://security.netapp.com/advisory/ntap-20180112-0001/ Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions up to (including) 5.5.37 *cpe:2.3:a:php:php:5.6.0:alpha1:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:alpha2:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:alpha3:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:alpha4:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:alpha5:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:beta1:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:beta2:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:beta3:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:beta4:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.1:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.2:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.3:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.4:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.5:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.6:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.7:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.8:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.9:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.10:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.11:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.12:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.13:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.14:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.15:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.16:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.17:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.18:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.19:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.20:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.21:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.22:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.23:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.9:*:*:*:*:*:*:* OR *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions up to (including) 5.5.37 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 5.6.0 up to (excluding) 5.6.24 *cpe:2.3:a:php:php:*:*:*:*:*:*:*:* versions from (including) 7.0.0 up to (excluding) 7.0.9
  • CVE Modified by [email protected]

    Oct. 09, 2018

    Action Type Old Value New Value
    Removed Reference http://www.securityfocus.com/archive/1/archive/1/538966/100/0/threaded [Exploit, Third Party Advisory, VDB Entry]
    Added Reference http://www.securityfocus.com/archive/1/538966/100/0/threaded [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 14, 2018

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20180112-0001/ [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 05, 2018

    Action Type Old Value New Value
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-2750.html [No Types Assigned]
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-2598.html [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 04, 2017

    Action Type Old Value New Value
    Added Reference http://www.debian.org/security/2016/dsa-3631 [No Types Assigned]
  • Initial Analysis by [email protected]

    Apr. 27, 2017

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:M/Au:N/C:P/I:P/A:P)
    Added CVSS V3 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type http://php.net/ChangeLog-7.php No Types Assigned http://php.net/ChangeLog-7.php Release Notes, Vendor Advisory
    Changed Reference Type http://php.net/ChangeLog-5.php No Types Assigned http://php.net/ChangeLog-5.php Release Notes, Vendor Advisory
    Changed Reference Type http://www.securityfocus.com/archive/1/archive/1/538966/100/0/threaded No Types Assigned http://www.securityfocus.com/archive/1/archive/1/538966/100/0/threaded Exploit, Third Party Advisory, VDB Entry
    Changed Reference Type http://www.securityfocus.com/bid/92051 No Types Assigned http://www.securityfocus.com/bid/92051 Third Party Advisory, VDB Entry
    Changed Reference Type http://www.securitytracker.com/id/1036430 No Types Assigned http://www.securitytracker.com/id/1036430 Third Party Advisory, VDB Entry
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=1358395 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=1358395 Issue Tracking, Third Party Advisory, VDB Entry
    Changed Reference Type http://seclists.org/fulldisclosure/2016/Jul/72 No Types Assigned http://seclists.org/fulldisclosure/2016/Jul/72 Exploit, Mailing List, Third Party Advisory
    Changed Reference Type https://bugs.php.net/bug.php?id=72613 No Types Assigned https://bugs.php.net/bug.php?id=72613 Exploit, Vendor Advisory
    Changed Reference Type https://www.exploit-db.com/exploits/40155/ No Types Assigned https://www.exploit-db.com/exploits/40155/ Exploit, Third Party Advisory, VDB Entry
    Changed Reference Type http://www.openwall.com/lists/oss-security/2016/07/21/1 No Types Assigned http://www.openwall.com/lists/oss-security/2016/07/21/1 Exploit, Mailing List, Third Party Advisory
    Changed Reference Type http://packetstormsecurity.com/files/137998/PHP-7.0.8-5.6.23-5.5.37-bzread-OOB-Write.html No Types Assigned http://packetstormsecurity.com/files/137998/PHP-7.0.8-5.6.23-5.5.37-bzread-OOB-Write.html Exploit, Third Party Advisory, VDB Entry
    Added CWE CWE-787
    Added CPE Configuration OR *cpe:2.3:a:php:php:5.5.37:*:*:*:*:*:*:* (and previous) *cpe:2.3:a:php:php:5.6.0:alpha1:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:alpha2:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:alpha3:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:alpha4:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:alpha5:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:beta1:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:beta2:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:beta3:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.0:beta4:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.1:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.2:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.3:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.4:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.5:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.6:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.7:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.8:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.9:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.10:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.11:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.12:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.13:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.14:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.15:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.16:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.17:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.18:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.19:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.20:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.21:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.22:*:*:*:*:*:*:* *cpe:2.3:a:php:php:5.6.23:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.9:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2016-5399 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2016-5399 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

17.68 }} 4.38%

score

0.95464

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability