CVE-2016-5766

high
New! CVE Severity Now Using CVSS v3

The calculated severity for CVEs has been updated to use CVSS v3 by default. CVEs that do not have a CVSS v3 score will fall back CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

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.

References

http://github.com/php/php-src/commit/7722455726bec8c53458a32851d2a87982cf0eac?w=1

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

http://php.net/ChangeLog-7.php

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

http://www.openwall.com/lists/oss-security/2016/06/23/4

http://www.ubuntu.com/usn/USN-3030-1

https://bugs.php.net/bug.php?id=72339

https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731

https://libgd.github.io/release-2.2.3.html

https://security.gentoo.org/glsa/201612-09

Details

Source: MITRE

Published: 2016-08-07

Updated: 2019-04-22

Type: CWE-190

Risk Information

CVSS v2

Base Score: 6.8

Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 8.6

Severity: MEDIUM

CVSS v3

Base Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Impact Score: 5.9

Exploitability Score: 2.8

Severity: HIGH

Vulnerable Software

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.0:*:*:*:*:*:*:*

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:*:*:*:*:*:*:*:*

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:*:*:*:*:*:*:*

Tenable Plugins

View all (43 total)

IDNameProductFamilySeverity
154443NewStart CGSL CORE 5.05 / MAIN 5.05 : gd Vulnerability (NS-SA-2021-0182)NessusNewStart CGSL Local Security Checks
high
149337NewStart CGSL CORE 5.04 / MAIN 5.04 : gd Vulnerability (NS-SA-2021-0034)NessusNewStart CGSL Local Security Checks
high
144807Amazon Linux 2 : gd (ALAS-2021-1577)NessusAmazon Linux Local Security Checks
high
144370CentOS 7 : gd (CESA-2020:5443)NessusCentOS Local Security Checks
high
144331Oracle Linux 7 : gd (ELSA-2020-5443)NessusOracle Linux Local Security Checks
high
144294Scientific Linux Security Update : gd on SL7.x i686/x86_64 (2020:5443)NessusScientific Linux Local Security Checks
high
144275RHEL 7 : gd (RHSA-2020:5443)NessusRed Hat Local Security Checks
high
98854PHP 7.0.x < 7.0.8 Multiple VulnerabilitiesWeb Application ScanningComponent Vulnerability
critical
98813PHP 5.6.x < 5.6.23 Multiple VulnerabilitiesWeb Application ScanningComponent Vulnerability
critical
120004SUSE SLES12 Security Update : php5 (SUSE-SU-2017:2317-1)NessusSuSE Local Security Checks
high
120003SUSE SLES12 Security Update : php7 (SUSE-SU-2017:2303-1)NessusSuSE Local Security Checks
high
103317SUSE SLES11 Security Update : php53 (SUSE-SU-2017:2522-1)NessusSuSE Local Security Checks
critical
102966openSUSE Security Update : php5 (openSUSE-2017-1010)NessusSuSE Local Security Checks
critical
102947openSUSE Security Update : php7 (openSUSE-2017-994)NessusSuSE Local Security Checks
critical
100137F5 Networks BIG-IP : PHP vulnerability (K43267483)NessusF5 Networks Local Security Checks
high
99825EulerOS 2.0 SP1 : php (EulerOS-SA-2016-1063)NessusHuawei Local Security Checks
critical
95854Scientific Linux Security Update : php on SL7.x x86_64 (20161103)NessusScientific Linux Local Security Checks
critical
95524GLSA-201612-09 : GD: Multiple vulnerabilitiesNessusGentoo Local Security Checks
critical
95344CentOS 7 : php (CESA-2016:2598)NessusCentOS Local Security Checks
critical
94717Oracle Linux 7 : php (ELSA-2016-2598)NessusOracle Linux Local Security Checks
critical
94561RHEL 7 : php (RHSA-2016:2598)NessusRed Hat Local Security Checks
critical
93293SUSE SLES11 Security Update : php5 (SUSE-SU-2016:2080-1)NessusSuSE Local Security Checks
critical
93282SUSE SLES11 Security Update : php53 (SUSE-SU-2016:2013-1)NessusSuSE Local Security Checks
critical
802010PHP < 5.5.37, 5.6.23, 7.0.8 Multiple VulnerabiltiesLog Correlation EngineWeb Servers
critical
92740FreeBSD : gd -- multiple vulnerabilities (556d2286-5a51-11e6-a6c3-14dae9d210b8)NessusFreeBSD Local Security Checks
high
92714openSUSE Security Update : php5 (openSUSE-2016-921) (httpoxy)NessusSuSE Local Security Checks
critical
92663Amazon Linux AMI : php55 / php56 (ALAS-2016-728) (httpoxy)NessusAmazon Linux Local Security Checks
critical
92532Fedora 24 : gd (2016-615f3bf06e)NessusFedora Local Security Checks
high
92392Fedora 23 : gd (2016-d126bb1b74)NessusFedora Local Security Checks
high
92327Debian DSA-3619-1 : libgd2 - security updateNessusDebian Local Security Checks
critical
92300Fedora 24 : php (2016-ec372bddb9)NessusFedora Local Security Checks
critical
92275Fedora 24 : gd (2016-a4d48d6fd6)NessusFedora Local Security Checks
high
92272Fedora 22 : php (2016-99fbdc5c34)NessusFedora Local Security Checks
critical
92239Fedora 23 : php (2016-34a6b65583)NessusFedora Local Security Checks
critical
9393PHP 5.5.x < 5.5.37 / 5.6.x < 5.6.23 / 7.0.x < 7.0.8 Multiple VulnerabilitiesNessus Network MonitorWeb Servers
high
92011Ubuntu 12.04 LTS / 14.04 LTS / 15.10 / 16.04 LTS : libgd2 vulnerabilities (USN-3030-1)NessusUbuntu Local Security Checks
critical
91901Debian DLA-534-1 : libgd2 security updateNessusDebian Local Security Checks
high
91899PHP 7.0.x < 7.0.8 Multiple VulnerabilitiesNessusCGI abuses
critical
91898PHP 5.6.x < 5.6.23 Multiple VulnerabilitiesNessusCGI abuses
critical
91897PHP 5.5.x < 5.5.37 Multiple VulnerabilitiesNessusCGI abuses
critical
91839FreeBSD : php -- multiple vulnerabilities (66d77c58-3b1d-11e6-8e82-002590263bf5)NessusFreeBSD Local Security Checks
critical
91830Slackware 14.0 / 14.1 / current : php (SSA:2016-176-01)NessusSlackware Local Security Checks
critical
90108openSUSE Security Update : shotwell (openSUSE-2016-844)NessusSuSE Local Security Checks
critical