Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-7568
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:40 UTC · Revision 1
Source evidence
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.
osv:CVE-2016-7568
Complete source record
{
"id": "3e5299fb1d8c12c8e8057a1dc569b9a0cc08c76ed86db49af3d0c3637034a801",
"url": "https://osv.dev/vulnerability/CVE-2016-7568",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-7568",
"summary": "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.",
"evidence": "osv:CVE-2016-7568",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2016-7568",
"aliases": [
"CVE-2016-7568"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/libgd/libgd",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "46ceef5970bf3a847ff61d1bdde7501d66c11d0c"
},
{
"fixed": "40bec0f38f50e8510f5bb71a82f516d46facde03"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.2.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "40bec0f38f50e8510f5bb71a82f516d46facde03"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"gd-2.2.3",
"gd-2.2.2",
"gd-2.2.1",
"gd-2.2.0",
"gd-2.1.1",
"gd-2.1.0",
"gd-2.1.0-rc1",
"gd-2.1.0-alpha1",
"GD_2_0_34RC1",
"GD_2_0_33",
"GD_2_0_32",
"GD_2_0_31",
"GD_2_0_30",
"GD_2_0_29",
"GD_2_0_28",
"GD_2_0_27",
"GD_2_0_26",
"GD_2_0_25",
"GD_2_0_24",
"GD_2_0_23",
"GD_2_0_22",
"GD_2_0_21",
"GD_2_0_20",
"GD_2_0_19",
"GD_2_0_18",
"GD_2_0_17",
"GD_2_0_15",
"GD_2_0_14",
"GD_2_0_13",
"GD_2_0_12",
"GD_2_0_11",
"GD_2_0_10",
"GD_2_0_9",
"GD_2_0_8",
"GD_2_0_7",
"GD_2_0_6",
"GD_2_0_5",
"GD_2_0_4",
"GD_2_0_3",
"GD_2_0_2",
"GD_2_0_1",
"GD_2_0_0",
"GD_1_8_4",
"GD_1_8_3",
"GD_1_8_1",
"GD_1_8_0",
"GD_1_7_3",
"GD_1_7_2",
"GD_1_7_1",
"GD_1_7_0",
"GD_1_6_3",
"GD_1_6_2",
"GD_1_6_1",
"GD_1_6_0",
"GD_1_5_0",
"GD_1_4_0",
"GD_1_3_0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-7568.json"
}
},
{
"ranges": [
{
"repo": "https://github.com/php/php-src",
"type": "GIT",
"events": [
{
"introduced": "fc1df8e7a6886e29a6ed5bef3f674ac61164e847"
},
{
"last_affected": "dd1b97c3de8bca56c97cb47936726d9b4b79afe1"
},
{
"introduced": "60fffd296abce5fc071f3c173c25a2696cf683c6"
},
{
"last_affected": "e2874f7bf990ed58ba6f7abccefa2c00a0447fc7"
},
{
"fixed": "c18263e0e0769faee96a5d0ee04b750c442783c6"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.6.0"
},
{
"last_affected": "5.6.26"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.0"
},
{
"last_affected": "7.0.11"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "c18263e0e0769faee96a5d0ee04b750c442783c6"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-7568.json"
}
}
],
"modified": "2026-10-24T10:48:47.948265426Z",
"provider": "osv",
"references": [
"https://security.gentoo.org/glsa/201612-09",
"https://bugs.php.net/bug.php?id=73003",
"https://github.com/libgd/libgd/commit/40bec0f38f50e8510f5bb71a82f516d46facde03",
"https://github.com/libgd/libgd/issues/308",
"https://github.com/php/php-src/commit/c18263e0e0769faee96a5d0ee04b750c442783c6"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2016-7568",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 441635,
"published_at": "2016-09-28T20:59:02.68+00:00"
}