Integer signedness error in GD Graphics Library 2.1.1 (aka libgd or libgd2) allows remote attackers to cause a denial of service (crash) or potentially execute arbitrary code via crafted compressed gd2 data, which triggers a heap-based buffer overflow.
{
"versions": [
{
"introduced": "0"
},
{
"last_affected": "2.1.1"
}
]
}{
"versions": [
{
"introduced": "0"
},
{
"last_affected": "7.0"
},
{
"introduced": "0"
},
{
"last_affected": "8.0"
},
{
"introduced": "5.5.0"
},
{
"fixed": "5.5.35"
},
{
"introduced": "5.6.0"
},
{
"fixed": "5.6.21"
},
{
"introduced": "7.0.0"
},
{
"fixed": "7.0.6"
}
]
}[
{
"digest": {
"length": 2523.0,
"function_hash": "163878100595225240009372061331328833043"
},
"id": "CVE-2016-3074-081b5b6d",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/libgd/libgd/commit/2bb97f407c1145c850416a3bfbcc8cf124e68a19",
"target": {
"function": "_gd2GetHeader",
"file": "src/gd_gd2.c"
}
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"308632048764262319325349404959904373833",
"156654908032796698564829210861782091210",
"87643980687445443250260216682085309841",
"74748855092100787267051943652936968299"
]
},
"id": "CVE-2016-3074-8c2aa4db",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/libgd/libgd/commit/2bb97f407c1145c850416a3bfbcc8cf124e68a19",
"target": {
"file": "src/gd_gd2.c"
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-3074.json"
"2026-04-11T04:02:07Z"
[
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "23"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "24"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "12.04"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "14.04"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "15.10"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "16.04"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "13.2"
}
]
}
]