{"api_version":"1","generated_at":"2026-07-23T06:42:15+00:00","cve":"CVE-2015-8877","urls":{"html":"https://cve.report/CVE-2015-8877","api":"https://cve.report/api/cve/CVE-2015-8877.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2015-8877","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2015-8877"},"summary":{"title":"CVE-2015-8877","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.","state":"PUBLISHED","assigner":"mitre","published_at":"2016-05-22 01:59:09","updated_at":"2026-05-06 22:30:45"},"problem_types":["CWE-399","n/a"],"metrics":[{"version":"3.0","source":"nvd@nist.gov","type":"Primary","score":"7.5","severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"5","severity":"","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","baseScore":5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://github.com/libgd/libgd/commit/4751b606fa38edc456d627140898a7ec679fcc24","name":"https://github.com/libgd/libgd/commit/4751b606fa38edc456d627140898a7ec679fcc24","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"gdImageScaleTwoPass memory leak fix · libgd/libgd@4751b60 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.php.net/ChangeLog-5.php","name":"http://www.php.net/ChangeLog-5.php","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"PHP: PHP 5 ChangeLog","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/libgd/libgd/issues/173","name":"https://github.com/libgd/libgd/issues/173","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"gdImageScaleTwoPass() can leak memory · Issue #173 · libgd/libgd · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.ubuntu.com/usn/USN-2987-1","name":"http://www.ubuntu.com/usn/USN-2987-1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"USN-2987-1: GD library vulnerabilities | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.debian.org/security/2016/dsa-3587","name":"http://www.debian.org/security/2016/dsa-3587","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Debian -- Security Information -- DSA-3587-1 libgd2","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.php.net/bug.php?id=70064","name":"https://bugs.php.net/bug.php?id=70064","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit"],"title":"PHP :: Bug #70064 :: imagescale(..., IMG_BICUBIC) leaks memory","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html","name":"http://rhn.redhat.com/errata/RHSA-2016-2750.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2015-8877","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-8877","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2015","cve_id":"8877","vulnerable":"1","versionEndIncluding":"2.1.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"libgd","cpe5":"libgd","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2015","cve_id":"8877","vulnerable":"1","versionEndIncluding":"5.6.11","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-06T08:29:22.081Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/libgd/libgd/issues/173"},{"name":"RHSA-2016:2750","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/libgd/libgd/commit/4751b606fa38edc456d627140898a7ec679fcc24"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://www.php.net/ChangeLog-5.php"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://bugs.php.net/bug.php?id=70064"},{"name":"USN-2987-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"],"url":"http://www.ubuntu.com/usn/USN-2987-1"},{"name":"DSA-3587","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"],"url":"http://www.debian.org/security/2016/dsa-3587"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2015-08-05T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2018-01-04T19:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/libgd/libgd/issues/173"},{"name":"RHSA-2016:2750","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html"},{"tags":["x_refsource_CONFIRM"],"url":"https://github.com/libgd/libgd/commit/4751b606fa38edc456d627140898a7ec679fcc24"},{"tags":["x_refsource_CONFIRM"],"url":"http://www.php.net/ChangeLog-5.php"},{"tags":["x_refsource_CONFIRM"],"url":"https://bugs.php.net/bug.php?id=70064"},{"name":"USN-2987-1","tags":["vendor-advisory","x_refsource_UBUNTU"],"url":"http://www.ubuntu.com/usn/USN-2987-1"},{"name":"DSA-3587","tags":["vendor-advisory","x_refsource_DEBIAN"],"url":"http://www.debian.org/security/2016/dsa-3587"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2015-8877","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://github.com/libgd/libgd/issues/173","refsource":"CONFIRM","url":"https://github.com/libgd/libgd/issues/173"},{"name":"RHSA-2016:2750","refsource":"REDHAT","url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html"},{"name":"https://github.com/libgd/libgd/commit/4751b606fa38edc456d627140898a7ec679fcc24","refsource":"CONFIRM","url":"https://github.com/libgd/libgd/commit/4751b606fa38edc456d627140898a7ec679fcc24"},{"name":"http://www.php.net/ChangeLog-5.php","refsource":"CONFIRM","url":"http://www.php.net/ChangeLog-5.php"},{"name":"https://bugs.php.net/bug.php?id=70064","refsource":"CONFIRM","url":"https://bugs.php.net/bug.php?id=70064"},{"name":"USN-2987-1","refsource":"UBUNTU","url":"http://www.ubuntu.com/usn/USN-2987-1"},{"name":"DSA-3587","refsource":"DEBIAN","url":"http://www.debian.org/security/2016/dsa-3587"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2015-8877","datePublished":"2016-05-22T01:00:00.000Z","dateReserved":"2016-05-21T00:00:00.000Z","dateUpdated":"2024-08-06T08:29:22.081Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2016-05-22 01:59:09","lastModifiedDate":"2026-05-06 22:30:45","problem_types":["CWE-399","n/a"],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","baseScore":5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":true,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:*","versionEndIncluding":"2.1.1","matchCriteriaId":"B4AB6FB9-E6DD-4FBC-9BC6-594384030CCE"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionEndIncluding":"5.6.11","matchCriteriaId":"F78D523C-90F6-476A-AC95-390E0862C413"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2015","CveId":"8877","Ordinal":"1","Title":"CVE-2015-8877","CVE":"CVE-2015-8877","Year":"2015"},"notes":[{"CveYear":"2015","CveId":"8877","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2015-8877"},{"CveYear":"2015","CveId":"8877","Ordinal":"2","NoteData":"2016-05-21","Type":"Other","Title":"Published"},{"CveYear":"2015","CveId":"8877","Ordinal":"3","NoteData":"2018-01-04","Type":"Other","Title":"Modified"}]}}}