{"schemaVersion":3,"id":"CVE-2016-7568","aliases":["ALPINE-CVE-2016-7568","MGASA-2016-0339","UBUNTU-CVE-2016-7568","DEBIAN-CVE-2016-7568"],"status":"published","duplicateOf":null,"title":null,"description":"Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.","dates":{"published":"2016-09-28T20:00:00.000Z","modified":"2024-08-06T02:04:55.604Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true}]},"epss":{"probability":0.05101,"percentile":0.92288,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.05101},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0441,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.05101,"percentile":0.92288}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0441,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05101,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.05101,"percentile":0.92288}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"}],"affected":[{"vendor":"alpine","product":"gd","name":"gd","label":"gd","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/gd","purlType":"apk","versions":[{"text":"< 2.2.3-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.3-r1","eol":null,"hubHref":null},{"vendor":"debian","product":"libgd2","name":"libgd2","label":"libgd2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libgd2","purlType":"deb","versions":[{"text":"< 2.2.3-87-gd0fec80-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.3-87-gd0fec80-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libgd2","name":"libgd2","label":"libgd2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libgd2","purlType":"deb","versions":[{"text":"< 2.1.0-3ubuntu0.5","noFixRecorded":false,"fixedIn":null},{"text":"< 2.1.1-4ubuntu0.16.04.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.0-3ubuntu0.5 | < 2.1.1-4ubuntu0.16.04.5","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"libgd","product":"libgd","name":"libgd","label":"libgd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.2.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 2.2.3","eol":null,"hubHref":"/vendor/libgd/libgd"},{"vendor":"mageia","product":"libgd","name":"libgd","label":"libgd","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/libgd","purlType":"rpm","versions":[{"text":"< 2.2.3-1.2.mga5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.3-1.2.mga5","eol":null,"hubHref":null},{"vendor":"php","product":"php","name":"PHP","label":"php","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.6.0, ≤ 5.6.26","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.0.0, ≤ 7.0.11","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.6.0, ≤ 5.6.26 | ≥ 7.0.0, ≤ 7.0.11","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"php","label":"PHP","category":"lang"}},"hubHref":"/vendor/php/php"}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/php/php-src/commit/c18263e0e0769faee96a5d0ee04b750c442783c6","label":"github.com/php/php-src/commit/c18263e0e0769faee96a5d0ee04b750c442783c6","hostname":"github.com","tags":["X Refsource CONFIRM","Issue Tracking","Patch","Third Party Advisory"]},{"url":"http://www.debian.org/security/2016/dsa-3693","label":"www.debian.org/security/2016/dsa-3693","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201612-09","label":"security.gentoo.org/glsa/201612-09","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://bugs.php.net/bug.php?id=73003","label":"bugs.php.net/bug.php?id=73003","hostname":"bugs.php.net","tags":["X Refsource CONFIRM","Issue Tracking","Vendor Advisory"]},{"url":"https://github.com/libgd/libgd/issues/308","label":"github.com/libgd/libgd/issues/308","hostname":"github.com","tags":["X Refsource CONFIRM","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/libgd/libgd/commit/40bec0f38f50e8510f5bb71a82f516d46facde03","label":"github.com/libgd/libgd/commit/40bec0f38f50e8510f5bb71a82f516d46facde03","hostname":"github.com","tags":["X Refsource CONFIRM","Issue Tracking","Patch","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/93184","label":"www.securityfocus.com/bid/93184","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2016-7568","label":"security.alpinelinux.org/vuln/CVE-2016-7568","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2016-0339.html","label":"advisories.mageia.org/MGASA-2016-0339.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=19481","label":"bugs.mageia.org/show_bug.cgi?id=19481","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"http://openwall.com/lists/oss-security/2016/09/28/7","label":"openwall.com/lists/oss-security/2016/09/28/7","hostname":"openwall.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2016-7568","label":"ubuntu.com/security/CVE-2016-7568","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-3117-1","label":"ubuntu.com/security/notices/USN-3117-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-7568","label":"www.cve.org/CVERecord?id=CVE-2016-7568","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-7568","label":"security-tracker.debian.org/tracker/CVE-2016-7568","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-3693-1","SUSE-SU-2016:2668-1","SUSE-SU-2016:2683-1","SUSE-SU-2016:2683-2","SUSE-SU-2016:2766-1","USN-3117-1"],"duplicates":[],"related":["SUSE-SU-2016:2668-1","SUSE-SU-2016:2683-1","SUSE-SU-2016:2683-2","SUSE-SU-2016:2766-1","USN-3117-1"]},"timeline":[{"kind":"published","date":"2016-09-28T20:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T02:04:55.604Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T04:17:06.031Z","stale":false,"partial":false}}