CVE-2015-8877

HIGH

libgd < 2.1.1 - Denial of Service via gdImageScaleTwoPass Memory Allocation

Title source: llm
STIX 2.1

Description

The gdImageScaleTwoPass function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.0, as used in PHP before 5.6.12, uses inconsistent allocate and free approaches, which allows remote attackers to cause a denial of service (memory consumption) via a crafted call, as demonstrated by a call to the PHP imagescale function.

References (7)

Core 7
Core References
Patch x_refsource_confirm
https://github.com/libgd/libgd/issues/173
Vendor Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2016-2750.html
Vendor Advisory x_refsource_confirm
http://www.php.net/ChangeLog-5.php
Exploit x_refsource_confirm
https://bugs.php.net/bug.php?id=70064
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/USN-2987-1
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2016/dsa-3587

Scores

CVSS v3 7.5
EPSS 0.0232
EPSS Percentile 85.0%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-399
Status published
Products (2)
libgd/libgd < 2.1.1
php/php < 5.6.11
Published May 22, 2016
Tracked Since Feb 18, 2026