Skip to content
Fencer Intel
critical 9.8

CVE-2016-10166 in the critical feed json

Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.4 allows re…

published 2017-03-15 9 y ago modified 2026-06-17 4 mo ago also EUVD-2016-1354

cvss
9.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
10.7%
EPSS 10.7% chance of exploitation in 30 days, percentile 95%
public exploits
0
none known

Summary

Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via vectors related to decrementing the u variable.

Patch / fix

  • libgd2 Debian 14, Debian 13, Debian 12 2.2.4-1

debian advisories DEBIAN-CVE-2016-10166

  • libgd2 Ubuntu 14.04 LTS 2.1.0-3ubuntu0.6
  • libgd2 Ubuntu 16.04 LTS 2.1.1-4ubuntu0.16.04.6

ubuntu advisories UBUNTU-CVE-2016-10166

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • rh-php72-php RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
  • rh-php72-php-gd RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
  • rh-php72-php-cli RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
  • rh-php72-php-dba RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
  • rh-php72-php-dbg RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
  • rh-php72-php-fpm RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
  • rh-php72-php-gmp RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7
  • rh-php72-php-pdo RHEL 3 SOFTWARE_COLLECTIONS 7.2.24-1.el7

red hat advisories RHSA-2019:3299RHSA-2019:2519

  • php53 SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +6 more 5.3.17-101.1
  • php5 SLE Software Development Kit 12 SP2, SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 5.5.14-96.1
  • php7 SLE Software Development Kit 12 SP2, SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 7.0.7-35.1
  • gd SLES for SAP 12 SP2, SLES for SAP 12 SP1, SLES for Raspberry Pi 12 SP2 +8 more 2.1.0-23.1

suse advisories SUSE-SU-2017:0568-1SUSE-SU-2017:0556-1SUSE-SU-2017:0534-1SUSE-SU-2017:0468-1

  • gd openSUSE Tumbleweed 2.3.3-1.1

opensuse advisories openSUSE-SU-2024:10777-1

  • gd Alpine 3.5, Alpine 3.4, Alpine 3.3 2.2.4-r0
  • php5 Alpine 3.5 5.6.40-r0
  • php7 Alpine 3.7 7.1.29-r0

alpine advisories ALPINE-CVE-2016-10166

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2016-10166 updated cvss 4.8

gd: Unsigned integer underflow _gdContributionsAlloc()

  • Red Hat Software Collections rh-php56-php, rh-php70-php, rh-php56-php-gd, rh-php70-php-gd, rh-php56-php-cli, rh-php56-php-dba, +52 more
    affected: no fix available, no fix planned “Will not fix”
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-php71-php 7.1.30-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, rh-php71-php-dbg 7.1.30-1.el7, rh-php71-php-fpm 7.1.30-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 more
    fixed: vendor fix RHSA-2019:2519
  • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-php72-php 7.2.24-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php72-php-cli 7.2.24-1.el7, rh-php72-php-dba 7.2.24-1.el7, rh-php72-php-dbg 7.2.24-1.el7, rh-php72-php-fpm 7.2.24-1.el7, +22 more
    fixed: vendor fix RHSA-2019:3299
  • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 more
    fixed: vendor fix RHSA-2019:2519
  • Red Hat Enterprise Linux 5 gd, php, php53, libwmf Red Hat Enterprise Linux 6 gd, php, libwmf, php-gd, php-cli, php-dba, +24 more Red Hat Enterprise Linux 7 gd, php, libwmf, php-gd, php-cli, php-dba, +22 more Red Hat Enterprise Linux 8 gd, php, libzip, php-gd, php-cli, php-dba, +31 more Red Hat OpenShift Enterprise 2 php
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

10.69% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-191 Integer Underflow (Wrap or Wraparound)

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.