cve.bz

CVE-2016-5766 Year 2038 problem, Y2K38, Y2038, Epochalypse

8.8 highExploit referenceEPSS 7.5%Fix available

High (8.8). EPSS 7.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

8.8 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
7.5% (unchanged from 7.5% a week ago; 7.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-5766 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-5766?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-5766?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-5766 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:openshift2.0
freebsd:freebsd8.3
redhat:enterprise_linux6.0
freebsd:freebsd8.0
redhat:enterprise_linux5
libgd:libgd2.2.2
freebsd:freebsd10.0
fedoraproject:fedora23
debian:debian_linux8.0
freebsd:freebsd10.1
fedoraproject:fedora24
freebsd:freebsd8.4
freebsd:freebsd9.2
freebsd:freebsd8.2
freebsd:freebsd8.1
freebsd:freebsd9.0
freebsd:freebsd10.2
fedoraproject:fedora22
freebsd:freebsd9.3
redhat:enterprise_linux7.0
freebsd:freebsd10.3
freebsd:freebsd9.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7libgd22.0.36~rc1~dfsg-6.1+deb7u4DLA-534-1
Debian8libgd22.1.0-5+deb8u4DSA-3619-1
Debian12, 13, 14libgd22.2.2-29-g3c2b605-1DEBIAN-CVE-2016-5766
Ubuntu14.04:LTSlibgd22.1.0-3ubuntu0.2UBUNTU-CVE-2016-5766 USN-3030-1
Ubuntu16.04:LTSlibgd22.1.1-4ubuntu0.16.04.2UBUNTU-CVE-2016-5766 USN-3030-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morephp, php-gd, php-cli and 23 more0:5.4.16-42.el7RHSA-2016:2598
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationgd, gd-devel, gd-progs and 1 more0:2.0.35-27.el7_9RHSA-2020:5443
Red Hatenterprise_linux:7::computenodegd-devel, gd-progs, gd-debuginfo0:2.0.35-27.el7_9RHSA-2020:5443
Red Hatrhel_software_collections:2::el6rh-php56, rh-php56-runtime, rh-php56-scldevel0:2.3-1.el6RHSA-2016:2750
Red Hatrhel_software_collections:2::el6rh-php56-php, rh-php56-php-gd, rh-php56-php-cli and 27 more0:5.6.25-1.el6RHSA-2016:2750
Red Hatrhel_software_collections:2::el6rh-php56-php-pear1:1.9.5-4.el6RHSA-2016:2750
Red Hatrhel_software_collections:2::el7rh-php56, rh-php56-runtime, rh-php56-scldevel0:2.3-1.el7RHSA-2016:2750
Red Hatrhel_software_collections:2::el7rh-php56-php, rh-php56-php-gd, rh-php56-php-cli and 25 more0:5.6.25-1.el7RHSA-2016:2750
Red Hatrhel_software_collections:2::el7rh-php56-php-pear1:1.9.5-4.el7RHSA-2016:2750
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP1php55.5.14-68.1SUSE-SU-2016:1842-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP2, Linux Enterprise Software Development Kit 12 SP3php55.5.14-109.5.1SUSE-SU-2017:2317-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP2, Linux Enterprise Software Development Kit 12 SP3php77.0.7-50.9.2SUSE-SU-2017:2303-1
SUSELinux Enterprise Server 11 SP2-LTSSphp55.2.14-0.7.30.89.1SUSE-SU-2016:2080-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4php535.3.17-112.5.1SUSE-SU-2017:2522-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4php535.3.17-74.1SUSE-SU-2016:2013-1
openSUSETumbleweedgd2.2.3-2.1openSUSE-SU-2024:10062-1
Alpinev3.2, v3.3gd2.2.1-r2ALPINE-CVE-2016-5766
Alpinev3.4gd2.2.3-r0ALPINE-CVE-2016-5766

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7php-0:5.4.16-42.el7Fixed 2016-11-03RHSA-2016:2598
Red Hat Enterprise Linux 7gd-0:2.0.35-27.el7_9Fixed 2020-12-15RHSA-2020:5443
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-php56-0:2.3-1.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-php56-php-0:5.6.25-1.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-php56-php-pear-1:1.9.5-4.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-php56-0:2.3-1.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-php56-php-0:5.6.25-1.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-php56-php-pear-1:1.9.5-4.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php56-0:2.3-1.el7Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php56-php-0:5.6.25-1.el7Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php56-php-pear-1:1.9.5-4.el7Fixed 2016-11-15RHSA-2016:2750
Red Hat Enterprise Linux 5gdWill not fix
Red Hat Enterprise Linux 5phpWill not fix
Red Hat Enterprise Linux 5php53Will not fix
Red Hat Enterprise Linux 6gdWill not fix
Red Hat Enterprise Linux 6phpWill not fix
Red Hat Enterprise Linux 8gdNot affected
Red Hat OpenShift Enterprise 2gdAffected
Red Hat Software Collectionsphp54-phpWill not fix
Red Hat Software Collectionsphp55-phpWill not fix
6 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-5766.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON