CVE-2016-9933 json
Stack consumption vulnerability in the gdImageFillToBorder function in gd.c in the GD Graphics Library (aka libgd) before 2.2.2, as used in…
published 2017-01-04 9 y ago modified 2026-06-17 4 mo ago also EUVD-2016-10720
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.9%
- EPSS 6.9% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
Stack consumption vulnerability in the gdImageFillToBorder function in gd.c in the GD Graphics Library (aka libgd) before 2.2.2, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (segmentation violation) via a crafted imagefilltoborder call that triggers use of a negative color value.
Patch / fix
- libgd2 Debian 14, Debian 13, Debian 12 2.2.2-29-g3c2b605-1
debian advisories DEBIAN-CVE-2016-9933
- 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-9933
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-php70-php RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
- rh-php70-php-gd RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php-gd RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
- rh-php70-php-cli RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php-cli RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
- rh-php70-php-dba RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php-dba RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
red hat advisories RHSA-2018:1296
- php53 SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 5.3.17-94.1
- php5 SLE Software Development Kit 12 SP2, SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 5.5.14-89.2
- php7 SLE Software Development Kit 12 SP2, SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 7.0.7-28.2
- gd SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 2.0.36.RC1-52.29.1
- gd SLES for SAP 12 SP2, SLES for SAP 12 SP1, SLES for Raspberry Pi 12 SP2 +8 more 2.1.0-20.1
suse advisories SUSE-SU-2017:0109-1SUSE-SU-2017:0038-1SUSE-SU-2017:0017-1SUSE-SU-2016:3251-1SUSE-SU-2016:3211-1
- php Arch Linux 7.0.13-1
arch linux advisories AVG-58
- github.com/php/php-src@863d37e commit
- github.com/libgd/libgd@77f619d commit
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-9933 updated cvss 3.3
gd: Stack overflow in gdImageFillToBorder on truecolor images
-
Red Hat Enterprise Linux 5 gd, php, php53 Red Hat Enterprise Linux 6 gd, php, php-gd, php-cli, php-dba, php-fpm, +22 more Red Hat Enterprise Linux 7 gd, php, php-gd, php-cli, php-dba, php-fpm, +20 more Red Hat OpenShift Enterprise 2 gd, php Red Hat Software Collections rh-php56-php, rh-php56-php-gd, rh-php56-php-cli, rh-php56-php-dba, rh-php56-php-dbg, rh-php56-php-fpm, +22 moreaffected: no fix planned “Will not fix”
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 morefixed: vendor fix RHSA-2018:1296
+2 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more
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
6.87% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
github.com
/php/php-src/commit/863d37ea66d5c960db08d6f4a2cbd2518f0f80d1
vendor-advisory
-
github.com
/libgd/libgd/commit/77f619d48259383628c3ec4654b1ad578e9eb40e
patch, vendor-advisory
-
lists.opensuse.org
/opensuse-updates/2016-12/msg00133.html
vendor-advisory
-
lists.opensuse.org
/opensuse-updates/2017-01/msg00054.html
vendor-advisory
-
lists.opensuse.org
/opensuse-updates/2017-01/msg00002.html
vendor-advisory
-
debian.org
/security/2017/dsa-3751
vendor-advisory
-
access.redhat.com
/errata/RHSA-2018:1296
vendor-advisory
-
lists.opensuse.org
/opensuse-updates/2017-01/msg00034.html
vendor-advisory
-
lists.opensuse.org
/opensuse-updates/2016-12/msg00142.html
vendor-advisory
-
php.net
/ChangeLog-7.php
release-notes, vendor-advisory
-
php.net
/ChangeLog-5.php
release-notes, vendor-advisory
-
bugs.php.net
/bug.php?id=72696
vendor-advisory
-
github.com
/libgd/libgd/issues/215
vendor-advisory
-
openwall.com
/lists/oss-security/2016/12/12/2
mailing-list, third-party-advisory
-
securityfocus.com
/bid/94865
vdb-entry
Sources
- CVE List CVE-2016-9933
- NVD CVE-2016-9933
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.