ID CVE-2016-5766
Summary 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. <a href="http://cwe.mitre.org/data/definitions/122.html">CWE-122</a>
References
Vulnerable Configurations
  • cpe:2.3:o:redhat:openshift:2.0:*:enterprise:*:*:*:*:*
    cpe:2.3:o:redhat:openshift:2.0:*:enterprise:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:8.3:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:8.3:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:8.0:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:8.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:5:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:5:*:*:*:*:*:*:*
  • cpe:2.3:a:libgd:libgd:2.2.2:*:*:*:*:*:*:*
    cpe:2.3:a:libgd:libgd:2.2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.0:alpha1:*:*:*:*:*:*
    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:alpha2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.0:alpha3:*:*:*:*:*:*
    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:alpha4:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.0:alpha5:*:*:*:*:*:*
    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:beta1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.0:beta2:*:*:*:*:*:*
    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:beta3:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.0:beta4:*:*:*:*:*:*
    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.1:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.2:*:*:*:*:*:*:*
    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.3:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.4:*:*:*:*:*:*:*
    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.5:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.6:*:*:*:*:*:*:*
    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.7:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.8:*:*:*:*:*:*:*
    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.9:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.10:*:*:*:*:*:*:*
    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.11:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.12:*:*:*:*:*:*:*
    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.13:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.14:*:*:*:*:*:*:*
    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.15:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.16:*:*:*:*:*:*:*
    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.17:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.18:*:*:*:*:*:*:*
    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.19:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.20:*:*:*:*:*:*:*
    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.21:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:5.6.22:*:*:*:*:*:*:*
    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.0:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:*
    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.2:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:*
    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.4:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:*
    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.6:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:10.0:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:10.0:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
    cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:10.1:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:10.1:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:8.4:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:8.4:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:9.2:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:9.2:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:8.2:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:8.2:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:8.1:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:8.1:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:9.0:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:9.0:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:10.2:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:10.2:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:9.3:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:9.3:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:10.3:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:10.3:*:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:9.1:*:*:*:*:*:*:*
    cpe:2.3:o:freebsd:freebsd:9.1:*:*:*:*:*:*:*
CVSS
Base: 6.8 (as of 22-04-2019 - 17:48)
Impact:
Exploitability:
CWE CWE-190
CAPEC
  • Forced Integer Overflow
    This attack forces an integer variable to go out of range. The integer variable is often used as an offset such as size of memory allocation or similarly. The attacker would typically control the value of such variable and try to get it out of range. For instance the integer in question is incremented past the maximum possible value, it may wrap to become a very small, or negative number, therefore providing a very incorrect value which can lead to unexpected behavior. At worst the attacker can execute arbitrary code.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:N/AC:M/Au:N/C:P/I:P/A:P
redhat via4
advisories
  • rhsa
    id RHSA-2016:2598
  • rhsa
    id RHSA-2016:2750
rpms
  • php-0:5.4.16-42.el7
  • php-bcmath-0:5.4.16-42.el7
  • php-cli-0:5.4.16-42.el7
  • php-common-0:5.4.16-42.el7
  • php-dba-0:5.4.16-42.el7
  • php-devel-0:5.4.16-42.el7
  • php-embedded-0:5.4.16-42.el7
  • php-enchant-0:5.4.16-42.el7
  • php-fpm-0:5.4.16-42.el7
  • php-gd-0:5.4.16-42.el7
  • php-intl-0:5.4.16-42.el7
  • php-ldap-0:5.4.16-42.el7
  • php-mbstring-0:5.4.16-42.el7
  • php-mysql-0:5.4.16-42.el7
  • php-mysqlnd-0:5.4.16-42.el7
  • php-odbc-0:5.4.16-42.el7
  • php-pdo-0:5.4.16-42.el7
  • php-pgsql-0:5.4.16-42.el7
  • php-process-0:5.4.16-42.el7
  • php-pspell-0:5.4.16-42.el7
  • php-recode-0:5.4.16-42.el7
  • php-snmp-0:5.4.16-42.el7
  • php-soap-0:5.4.16-42.el7
  • php-xml-0:5.4.16-42.el7
  • php-xmlrpc-0:5.4.16-42.el7
refmap via4
confirm
debian DSA-3619
gentoo GLSA-201612-09
mlist [oss-security] 20160623 Re: CVE for PHP 5.5.37 issues
suse
  • SUSE-SU-2016:2013
  • openSUSE-SU-2016:1761
  • openSUSE-SU-2016:1922
ubuntu USN-3030-1
Last major update 22-04-2019 - 17:48
Published 07-08-2016 - 10:59
Back to Top