Medium
Security advisory
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-6906
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:10 UTC · Revision 1
Source evidence
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.
osv:CVE-2016-6906
Complete source record
{
"id": "1e3a263c8ad8ff7d5c4edb3596634ab60d9e83d1f2243998e8225f5e09503397",
"url": "https://osv.dev/vulnerability/CVE-2016-6906",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-6906",
"summary": "The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.",
"evidence": "osv:CVE-2016-6906",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2016-6906",
"aliases": [
"CVE-2016-6906"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/libgd/libgd",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "46ceef5970bf3a847ff61d1bdde7501d66c11d0c"
},
{
"fixed": "58b6dde319c301b0eae27d12e2a659e067d80558"
},
{
"fixed": "fb0e0cce0b9f25389ab56604c3547351617e1415"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.2.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "58b6dde319c301b0eae27d12e2a659e067d80558"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "fb0e0cce0b9f25389ab56604c3547351617e1415"
}
],
"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-6906.json",
"vanir_signatures": [
{
"id": "CVE-2016-6906-9ef5b5fe",
"digest": {
"length": 2283,
"function_hash": "313491885300404418528983452416330495039"
},
"source": "https://github.com/libgd/libgd/commit/fb0e0cce0b9f25389ab56604c3547351617e1415",
"target": {
"file": "src/gd_tga.c",
"function": "read_image_tga"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2016-6906-df183342",
"digest": {
"threshold": 0.9,
"line_hashes": [
"283165936932129907493891340807525991341",
"141464916060364538192549316599818685788",
"15568252723028703085783273377507004347",
"106630161317693510202359332075049135781",
"137639860745247822653172809542557393346",
"222374484034007733712976557154961854199",
"15568252723028703085783273377507004347",
"106630161317693510202359332075049135781"
]
},
"source": "https://github.com/libgd/libgd/commit/fb0e0cce0b9f25389ab56604c3547351617e1415",
"target": {
"file": "src/gd_tga.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:15:41Z"
}
}
],
"modified": "2026-10-20T13:15:41.568408489Z",
"provider": "osv",
"references": [
"https://github.com/libgd/libgd/blob/gd-2.2.4/CHANGELOG.md",
"https://github.com/libgd/libgd/commit/58b6dde319c301b0eae27d12e2a659e067d80558",
"https://github.com/libgd/libgd/commit/fb0e0cce0b9f25389ab56604c3547351617e1415"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2016-6906",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387413,
"published_at": "2017-03-15T14:59:00.43+00:00"
}