High severity · published May 22, 2016
CVE-2015-8877
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…
7.5
CVSS
3.6%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)3.6% · higher than 90% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PH
PHP · PHP
through 5.6.11 · source: NVD
LI
Libgd · Libgd
through 2.1.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-8877
CVE.org
https://www.cve.org/CVERecord?id=CVE-2015-8877
rhn.redhat.com
http://rhn.redhat.com/errata/RHSA-2016-2750.html
www.debian.org
http://www.debian.org/security/2016/dsa-3587
www.php.net
http://www.php.net/ChangeLog-5.php
www.ubuntu.com
http://www.ubuntu.com/usn/USN-2987-1
Exploit
https://bugs.php.net/bug.php?id=70064
Patch
https://github.com/libgd/libgd/commit/4751b606fa38edc456d627140898a7ec679fcc24
More from PHP
9.8
CVE-2026-109618
RCE via OOM corruption
9.8
CVE-2024-4577
Argument Injection in PHP-CGI
9.8
CVE-2019-11043
Underflow in PHP-FPM can lead to RCE
9.8
CVE-2016-10033
The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute…
9.8
CVE-2012-1823
PHP-CGI Query String Parameter Vulnerability
