CVE-2016-9933
gd: Stack overflow in gdImageFillToBorder on truecolor images
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
Vulnerabilidad de consumo de pila en la función gdImageFillToBorder en gd.c en la GD Graphics Library (también conocida como libgd) en versiones anteriores a 2.2.2, como se utiliza en PHP en versiones anteriores a 5.6.28 y 7.x en versiones anteriores a 7.0.13, permite a atacantes remotos provocar una denegación de servicio (violación de segmentación) a través de una llamada imagefilltoborder manipulada que desencadena el uso de un valor de color negativo.
An infinite recursion flaw was found in the gdImageFillToBorder() function from the gd library; also used by PHP imagefilltoborder() function, when passing a negative integer as the color parameter, triggering a stack overflow. A remote attacker with ability to force a negative color identifier when calling the function could crash the PHP application, causing a Denial of Service.
Stefan Esser discovered that the GD library incorrectly handled memory when processing certain images. If a user or automated system were tricked into processing a specially crafted image, an attacker could cause a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. It was discovered that the GD library incorrectly handled certain malformed images. If a user or automated system were tricked into processing a specially crafted image, an attacker could cause a denial of service. Various other issues were also addressed.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2016-12-12 CVE Reserved
- 2016-12-13 CVE Published
- 2024-08-06 CVE Updated
- 2025-03-30 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-20: Improper Input Validation
- CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
CAPEC
References (17)
URL | Tag | Source |
---|---|---|
http://www.openwall.com/lists/oss-security/2016/12/12/2 | Mailing List |
|
http://www.securityfocus.com/bid/94865 | Vdb Entry |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/libgd/libgd/commit/77f619d48259383628c3ec4654b1ad578e9eb40e | 2018-05-04 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | <= 5.6.27 Search vendor "Php" for product "Php" and version " <= 5.6.27" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.0 Search vendor "Php" for product "Php" and version "7.0.0" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.1 Search vendor "Php" for product "Php" and version "7.0.1" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.2 Search vendor "Php" for product "Php" and version "7.0.2" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.3 Search vendor "Php" for product "Php" and version "7.0.3" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.4 Search vendor "Php" for product "Php" and version "7.0.4" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.5 Search vendor "Php" for product "Php" and version "7.0.5" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.6 Search vendor "Php" for product "Php" and version "7.0.6" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.7 Search vendor "Php" for product "Php" and version "7.0.7" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.8 Search vendor "Php" for product "Php" and version "7.0.8" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.9 Search vendor "Php" for product "Php" and version "7.0.9" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.10 Search vendor "Php" for product "Php" and version "7.0.10" | - |
Safe
|
Libgd Search vendor "Libgd" | Libgd Search vendor "Libgd" for product "Libgd" | 2.2.1 Search vendor "Libgd" for product "Libgd" and version "2.2.1" | - |
Affected
| in | Php Search vendor "Php" | Php Search vendor "Php" for product "Php" | 7.0.11 Search vendor "Php" for product "Php" and version "7.0.11" | - |
Safe
|