CVE-2016-5766

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.
References
Link 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
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
Configurations

Configuration 1 (hide)

cpe:2.3:o:redhat:openshift:2.0:*:enterprise:*:*:*:*:*

Configuration 2 (hide)

cpe:2.3:o:freebsd:freebsd:8.3:*:*:*:*:*:*:*

Configuration 3 (hide)

cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*

Configuration 4 (hide)

cpe:2.3:o:freebsd:freebsd:8.0:*:*:*:*:*:*:*

Configuration 5 (hide)

cpe:2.3:o:redhat:enterprise_linux:5:*:*:*:*:*:*:*

Configuration 6 (hide)

AND
cpe:2.3:a:libgd:libgd:2.2.2:*:*:*:*:*:*:*
OR 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: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 (hide)

cpe:2.3:o:freebsd:freebsd:10.0:*:*:*:*:*:*:*

Configuration 8 (hide)

cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*

Configuration 9 (hide)

cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*

Configuration 10 (hide)

cpe:2.3:o:freebsd:freebsd:10.1:*:*:*:*:*:*:*

Configuration 11 (hide)

cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:*

Configuration 12 (hide)

cpe:2.3:o:freebsd:freebsd:8.4:*:*:*:*:*:*:*

Configuration 13 (hide)

cpe:2.3:o:freebsd:freebsd:9.2:*:*:*:*:*:*:*

Configuration 14 (hide)

cpe:2.3:o:freebsd:freebsd:8.2:*:*:*:*:*:*:*

Configuration 15 (hide)

cpe:2.3:o:freebsd:freebsd:8.1:*:*:*:*:*:*:*

Configuration 16 (hide)

cpe:2.3:o:freebsd:freebsd:9.0:*:*:*:*:*:*:*

Configuration 17 (hide)

cpe:2.3:o:freebsd:freebsd:10.2:*:*:*:*:*:*:*

Configuration 18 (hide)

cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*

Configuration 19 (hide)

cpe:2.3:o:freebsd:freebsd:9.3:*:*:*:*:*:*:*

Configuration 20 (hide)

cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*

Configuration 21 (hide)

cpe:2.3:o:freebsd:freebsd:10.3:*:*:*:*:*:*:*

Configuration 22 (hide)

cpe:2.3:o:freebsd:freebsd:9.1:*:*:*:*:*:*:*

History

21 Nov 2024, 02:54

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

Information

Published : 2016-08-07 10:59

Updated : 2024-11-21 02:54


NVD link : CVE-2016-5766

Mitre link : CVE-2016-5766

CVE.ORG link : CVE-2016-5766


JSON object : View

Products Affected

php

  • php

redhat

  • enterprise_linux
  • openshift

libgd

  • libgd

freebsd

  • freebsd

debian

  • debian_linux

fedoraproject

  • fedora
CWE
CWE-190

Integer Overflow or Wraparound