CVE-2016-9933

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.

Published: 2017-01-04 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2016-9933 is rated Moderate Risk (61.2/100): CVSS High severity, with high exploitation likelihood (EPSS 6.87%, 93th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2016-9933

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 8.29% 6.87% -1.42%
2 2026-05-31 11.10% 8.29% -2.82%
3 2025-12-28 11.10%

Full EPSS history (21 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2016-9933

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.0 HIGH
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 3.6 [email protected]
5.0 2.0 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:N)
No confidentiality impact.
Integrity impact (I:N)
No integrity impact.
Availability impact (A:P)
Partial availability impact.
10.0 2.9 [email protected]

Weakness enumeration for CVE-2016-9933

OS Trackers for CVE-2016-9933

vendor priority summary link
debian not yet assigned CVE-2016-9933 not yet assigned priority: Debian including 1 source packages (libgd2), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2016-9933
redhat low https://access.redhat.com/security/cve/CVE-2016-9933
suse low CVE-2016-9933 severity low: SUSE including 222 source package names (apache2-mod_php5-5.2.14-0.7.30.100.1, apache2-mod_php5-5.5.14-89.2, …), 345 product×package rows across 40 product lines (Container caasp/v4/nginx-ingress-controller, Image SLES12-SP5-Azure-SAP-BYOS, … (40 product lines)): Fixed 345. https://www.suse.com/security/cve/CVE-2016-9933/
ubuntu low CVE-2016-9933 low priority: Ubuntu including 3 source packages (libgd2, php5, php7.0), 15 status rows across 5 suites (precise, trusty, upstream, xenial, yakkety): released 5, DNE 4, not-affected 4, needs-triage 2. https://ubuntu.com/security/CVE-2016-9933

Affected software / configurations for CVE-2016-9933

Vendor Product Version Raw CPE
libgd libgd 2.2.1 cpe:2.3:a:libgd:libgd:2.2.1:*:*:*:*:*:*:*

References for CVE-2016-9933

URL Tags
http://lists.opensuse.org/opensuse-updates/2016-12/msg00133.html
http://lists.opensuse.org/opensuse-updates/2016-12/msg00142.html
http://lists.opensuse.org/opensuse-updates/2017-01/msg00002.html
http://lists.opensuse.org/opensuse-updates/2017-01/msg00034.html
http://lists.opensuse.org/opensuse-updates/2017-01/msg00054.html
http://www.debian.org/security/2017/dsa-3751
http://www.openwall.com/lists/oss-security/2016/12/12/2 Third Party Advisory
http://www.php.net/ChangeLog-5.php Release Notes Vendor Advisory
http://www.php.net/ChangeLog-7.php Release Notes Vendor Advisory
http://www.securityfocus.com/bid/94865
https://access.redhat.com/errata/RHSA-2018:1296
https://bugs.php.net/bug.php?id=72696 Vendor Advisory
https://github.com/libgd/libgd/commit/77f619d48259383628c3ec4654b1ad578e9eb40e Patch Vendor Advisory
https://github.com/libgd/libgd/issues/215 Vendor Advisory
https://github.com/php/php-src/commit/863d37ea66d5c960db08d6f4a2cbd2518f0f80d1 Vendor Advisory
cvelogic Threat Intelligence