Integer signedness error in the dynamicGetbuf function in gd_io_dp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted imagecreatefromstring call.
{
"cpe": "cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "2.2.3"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-8670.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"280907635132757771241862687565417004148",
"208842456801732773520546011691672006005",
"224355342728290647457311352560791226710",
"70399781530177195079853539260536064350"
],
"threshold": 0.9
},
"id": "CVE-2016-8670-3d3e92c2",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libgd/libgd/commit/53110871935244816bbb9d131da0bccff734bfe9",
"target": {
"file": "src/gd_io_dp.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "172048093719602568786569527999506068490",
"length": 403
},
"id": "CVE-2016-8670-5e33e159",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/libgd/libgd/commit/53110871935244816bbb9d131da0bccff734bfe9",
"target": {
"file": "src/gd_io_dp.c",
"function": "dynamicGetbuf"
}
}
]
"2026-07-08T12:27:42Z"