Description

Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8, allows remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via crafted chunk dimensions in an image.

INFO

Published Date :

Aug. 7, 2016, 10:59 a.m.

Last Modified :

April 22, 2019, 5:48 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

2.8
Public PoC/Exploit Available at Github

CVE-2016-5766 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-5766 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 Redhat enterprise_linux
2 Redhat openshift
1 Fedoraproject fedora
1 Debian debian_linux
1 Freebsd freebsd
1 Libgd libgd

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-5766 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2016-5766 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
  • CPE Deprecation Remap by [email protected]

    Apr. 22, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:o:redhat:enterprise_linux:6:*:*:*:*:*:*:* OR *cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
  • 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]

    Jul. 01, 2017

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/201612-09 [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 19, 2017

    Action Type Old Value New Value
    Removed Reference https://bugzilla.redhat.com/show_bug.cgi?id=1351068 [Issue Tracking]
    Removed Reference https://access.redhat.com/security/cve/cve-2016-5766 [Third Party Advisory]
    Removed Reference http://tools.cisco.com/security/center/viewAlert.x?alertId=46860 [Third Party Advisory]
  • CVE Modified by [email protected]

    Nov. 28, 2016

    Action Type Old Value New Value
    Added Reference http://lists.opensuse.org/opensuse-updates/2016-08/msg00003.html [No Types Assigned]
    Added Reference http://lists.opensuse.org/opensuse-security-announce/2016-07/msg00004.html [No Types Assigned]
    Added Reference http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00025.html [No Types Assigned]
    Added Reference http://www.ubuntu.com/usn/USN-3030-1 [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 24, 2016

    Action Type Old Value New Value
    Added Reference https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
  • Modified Analysis by [email protected]

    Aug. 22, 2016

    Action Type Old Value New Value
    Added Evaluator Description <a href="http://cwe.mitre.org/data/definitions/122.html">CWE-122</a>
    Changed CPE Configuration Configuration 1 AND OR *cpe:2.3:a:libgd:libgd:2.2.2:*:*:*:*:*:*:* OR 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: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: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.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.2:*:*:*:*:*:*:* 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.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.5.36:*:*:*:*:*:*:* (and previous) Configuration 1 OR *cpe:2.3:o:redhat:openshift:2.0:*:enterprise:*:*:*:*:* Configuration 2 OR *cpe:2.3:o:freebsd:freebsd:8.3:*:*:*:*:*:*:* Configuration 3 OR *cpe:2.3:o:redhat:enterprise_linux:6:*:*:*:*:*:*:* Configuration 4 OR *cpe:2.3:o:freebsd:freebsd:8.0:*:*:*:*:*:*:* Configuration 5 OR *cpe:2.3:o:redhat:enterprise_linux:5:*:*:*:*:*:*:* Configuration 6 AND OR *cpe:2.3:a:libgd:libgd:2.2.2:*:*:*:*:*:*:* OR 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: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: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.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.2:*:*:*:*:*:*:* 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.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.5.36:*:*:*:*:*:*:* (and previous) Configuration 7 OR *cpe:2.3:o:freebsd:freebsd:10.0:*:*:*:*:*:*:* Configuration 8 OR *cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:* Configuration 9 OR *cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Configuration 10 OR *cpe:2.3:o:freebsd:freebsd:10.1:*:*:*:*:*:*:* Configuration 11 OR *cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:* Configuration 12 OR *cpe:2.3:o:freebsd:freebsd:8.4:*:*:*:*:*:*:* Configuration 13 OR *cpe:2.3:o:freebsd:freebsd:9.2:*:*:*:*:*:*:* Configuration 14 OR *cpe:2.3:o:freebsd:freebsd:8.2:*:*:*:*:*:*:* Configuration 15 OR *cpe:2.3:o:freebsd:freebsd:8.1:*:*:*:*:*:*:* Configuration 16 OR *cpe:2.3:o:freebsd:freebsd:9.0:*:*:*:*:*:*:* Configuration 17 OR *cpe:2.3:o:freebsd:freebsd:10.2:*:*:*:*:*:*:* Configuration 18 OR *cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:* Configuration 19 OR *cpe:2.3:o:freebsd:freebsd:9.3:*:*:*:*:*:*:* Configuration 20 OR *cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* Configuration 21 OR *cpe:2.3:o:freebsd:freebsd:10.3:*:*:*:*:*:*:* Configuration 22 OR *cpe:2.3:o:freebsd:freebsd:9.1:*:*:*:*:*:*:*
    Changed Reference Type http://www.debian.org/security/2016/dsa-3619 No Types Assigned http://www.debian.org/security/2016/dsa-3619 Third Party Advisory
    Changed Reference Type https://libgd.github.io/release-2.2.3.html No Types Assigned https://libgd.github.io/release-2.2.3.html Release Notes
    Changed Reference Type http://github.com/php/php-src/commit/7722455726bec8c53458a32851d2a87982cf0eac?w=1 No Types Assigned http://github.com/php/php-src/commit/7722455726bec8c53458a32851d2a87982cf0eac?w=1 Exploit, Patch
    Added Reference http://tools.cisco.com/security/center/viewAlert.x?alertId=46860
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=1351068
    Added Reference https://access.redhat.com/security/cve/cve-2016-5766
  • CVE Modified by [email protected]

    Aug. 13, 2016

    Action Type Old Value New Value
    Added Reference http://www.debian.org/security/2016/dsa-3619
    Added Reference https://libgd.github.io/release-2.2.3.html
  • Modified Analysis by [email protected]

    Aug. 10, 2016

    Action Type Old Value New Value
    Added CPE Configuration Configuration 1 AND OR *cpe:2.3:a:libgd:libgd:2.2.2:*:*:*:*:*:*:* OR 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: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: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.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.2:*:*:*:*:*:*:* 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.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.5.36:*:*:*:*:*:*:* (and previous)
    Added CVSS V2 (AV:N/AC:M/Au:N/C:P/I:P/A:P)
    Added CVSS V3 AV:N/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
    Changed Reference Type http://php.net/ChangeLog-5.php No Types Assigned http://php.net/ChangeLog-5.php Release Notes
    Changed Reference Type https://bugs.php.net/bug.php?id=72339 No Types Assigned https://bugs.php.net/bug.php?id=72339 Vendor Advisory, Exploit, Patch
    Changed Reference Type http://www.openwall.com/lists/oss-security/2016/06/23/4 No Types Assigned http://www.openwall.com/lists/oss-security/2016/06/23/4 Release Notes
    Added CWE CWE-190
  • Initial Analysis by [email protected]

    Aug. 09, 2016

    Action Type Old Value New Value
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-5766 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-5766 weaknesses.

Exploit Prediction

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

24.24 }} 1.41%

score

0.96500

percentile

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