National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2016-5766 Detail

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.

Source:  MITRE
Description Last Modified:  08/07/2016

Evaluator Description

CWE-122

Impact

CVSS v3.0 Severity and Metrics:

Base Score: 8.8 HIGH
Vector: AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (V3 legend)
Impact Score: 5.9
Exploitability Score: 2.8


Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope (S): Unchanged
Confidentiality (C): High
Integrity (I): High
Availability (A): High

CVSS v2.0 Severity and Metrics:

Base Score: 6.8 MEDIUM
Vector: (AV:N/AC:M/Au:N/C:P/I:P/A:P) (V2 legend)
Impact Subscore: 6.4
Exploitability Subscore: 8.6


Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (AU): None
Confidentiality (C): Partial
Integrity (I): Partial
Availability (A): Partial
Additional Information:
Victim must voluntarily interact with attack mechanism
Allows unauthorized disclosure of information
Allows unauthorized modification
Allows disruption of service

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://github.com/php/php-src/commit/7722455726bec8c53458a32851d2a87982cf0eac?w=1 Exploit Patch
http://lists.opensuse.org/opensuse-security-announce/2016-07/msg00004.html
http://lists.opensuse.org/opensuse-security-announce/2016-08/msg00025.html
http://lists.opensuse.org/opensuse-updates/2016-08/msg00003.html
http://php.net/ChangeLog-5.php Release Notes
http://php.net/ChangeLog-7.php Release Notes
http://rhn.redhat.com/errata/RHSA-2016-2598.html
http://rhn.redhat.com/errata/RHSA-2016-2750.html
http://www.debian.org/security/2016/dsa-3619 Third Party Advisory
http://www.openwall.com/lists/oss-security/2016/06/23/4 Release Notes
http://www.ubuntu.com/usn/USN-3030-1
https://bugs.php.net/bug.php?id=72339 Exploit Patch Vendor Advisory
https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
https://libgd.github.io/release-2.2.3.html Release Notes
https://security.gentoo.org/glsa/201612-09

Technical Details

Vulnerability Type (View All)

  • Integer Overflow or Wraparound (CWE-190)

Vulnerable software and versions Switch to CPE 2.2

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:*:*:*:*:*:*:*:*    versions up to (including) 5.5.36
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: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:*:*:*:*:*:*:*
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:*:*:*:*:*:*:*

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

9 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2016-5766
NVD Published Date:
08/07/2016
NVD Last Modified:
01/04/2018