Critical
Security advisory
Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via vectors related to decrementing the u variable.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-10166
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:09 UTC · Revision 1
Source evidence
Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via vectors related to decrementing the u variable.
osv:CVE-2016-10166
Complete source record
{
"id": "8e10d23ac5a6e58fcc235f8b314389d064fc9a6f523afd8221f9739de0d51549",
"url": "https://osv.dev/vulnerability/CVE-2016-10166",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-10166",
"summary": "Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via vectors related to decrementing the u variable.",
"evidence": "osv:CVE-2016-10166",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2016-10166",
"aliases": [
"CVE-2016-10166"
],
"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": "60bfb401ad5a4a8ae995dcd36372fe15c71e1a35"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.2.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "60bfb401ad5a4a8ae995dcd36372fe15c71e1a35"
}
],
"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-10166.json",
"vanir_signatures": [
{
"id": "CVE-2016-10166-115cc99f",
"digest": {
"threshold": 0.9,
"line_hashes": [
"319114839335506718010440031313640369840",
"70936575597508772177554749344894942985",
"313669099802809286542431755493638161400",
"186363153775871792765299658151347722393",
"32203206597848084205807765364102706806",
"267143131197922115299898535784011139230",
"106818626055993740494809877607987141742",
"7408849888522485282287847053060327510",
"231759641975994305501777434971180538940",
"255168206647141181002041976077373425808",
"247015185942616675200271810803812081175",
"94177551652147711107171311008886191460",
"151957346075835334428301729900744769196",
"331610226500052594165792238958007599404",
"38117480354834990187606146596380211628",
"150536331090372101041036861751268750920"
]
},
"source": "https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35",
"target": {
"file": "src/gd_interpolation.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2016-10166-14c374ce",
"digest": {
"length": 968,
"function_hash": "171096856165950967350039645785062079528"
},
"source": "https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35",
"target": {
"file": "src/gd_interpolation.c",
"function": "_gdContributionsAlloc"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:13:30Z"
}
}
],
"modified": "2026-10-20T13:13:30.288715823Z",
"provider": "osv",
"references": [
"https://access.redhat.com/errata/RHSA-2019:2519",
"https://access.redhat.com/errata/RHSA-2019:3299",
"https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2016-10166",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387332,
"published_at": "2017-03-15T15:59:00.267+00:00"
}