LibTIFF before 4.0.6 mishandles the reading of TIFF files, as demonstrated by a heap-based buffer over-read in the ReadTIFFImage function in coders/tiff.c in GraphicsMagick 1.3.27.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:graphicsmagick:graphicsmagick:1.3.27:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "1.3.27"
},
{
"last_affected": "1.3.27"
}
],
"vendor_product": "graphicsmagick:graphicsmagick",
"source": "CPE_STRING"
}
]
}{
"cpe": "cpe:2.3:a:libtiff:libtiff:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "4.0.6"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}"2026-07-08T16:40:57Z"
[
{
"signature_version": "v1",
"target": {
"file": "libtiff/tif_dirwrite.c"
},
"signature_type": "Line",
"match_only_versions": [
"v3.5.3",
"v3.5.4",
"v3.5.5",
"v3.5.7",
"v3.6.0",
"v3.6.0beta2",
"v3.6.1",
"v3.7.0",
"v3.7.0alpha",
"v3.7.0beta",
"v3.7.0beta2",
"v3.7.1",
"v3.7.2",
"v3.7.3",
"v3.7.4",
"v3.8.0",
"v3.8.1",
"v3.8.2",
"v4.0.0",
"v4.0.0alpha",
"v4.0.0alpha4",
"v4.0.0alpha5",
"v4.0.0alpha6",
"v4.0.0beta7",
"v4.0.1",
"v4.0.2",
"v4.0.3",
"v4.0.4",
"v4.0.4beta",
"v4.0.5",
"v4.0.6"
],
"id": "CVE-2018-5360-080eea7d",
"digest": {
"line_hashes": [
"61569868602208278142543250356083065835",
"171923524337809754821741671617932284290",
"81378857631154961215226172926732042937",
"287415081405752620846504667074555205995",
"110188842041252082907289411813138340834",
"215857215053830936438829670178056166041"
],
"threshold": 0.9
},
"deprecated": false,
"source": "https://gitlab.com/libtiff/libtiff@739dcd28a061738b317c1e9f91029d9cbc157159"
},
{
"signature_version": "v1",
"target": {
"file": "libtiff/tif_dir.c"
},
"signature_type": "Line",
"match_only_versions": [
"v3.5.3",
"v3.5.4",
"v3.5.5",
"v3.5.7",
"v3.6.0",
"v3.6.0beta2",
"v3.6.1",
"v3.7.0",
"v3.7.0alpha",
"v3.7.0beta",
"v3.7.0beta2",
"v3.7.1",
"v3.7.2",
"v3.7.3",
"v3.7.4",
"v3.8.0",
"v3.8.1",
"v3.8.2",
"v4.0.0",
"v4.0.0alpha",
"v4.0.0alpha4",
"v4.0.0alpha5",
"v4.0.0alpha6",
"v4.0.0beta7",
"v4.0.1",
"v4.0.2",
"v4.0.3",
"v4.0.4",
"v4.0.4beta",
"v4.0.5",
"v4.0.6"
],
"id": "CVE-2018-5360-274d283f",
"digest": {
"line_hashes": [
"163556274338990316519011545089318416687",
"238038622444975051665130753080447867337",
"61873261279205231678512461018889780688",
"294275126327564873015573283823558383173",
"13668015845256240478618664371273870394"
],
"threshold": 0.9
},
"deprecated": false,
"source": "https://gitlab.com/libtiff/libtiff@739dcd28a061738b317c1e9f91029d9cbc157159"
},
{
"target": {
"function": "_TIFFVSetField",
"file": "libtiff/tif_dir.c"
},
"id": "CVE-2018-5360-af078396",
"digest": {
"function_hash": "259479423939519279177470380675914412870",
"length": 14427.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://gitlab.com/libtiff/libtiff@739dcd28a061738b317c1e9f91029d9cbc157159"
},
{
"target": {
"function": "TIFFWriteDirectorySec",
"file": "libtiff/tif_dirwrite.c"
},
"id": "CVE-2018-5360-e5d9e567",
"digest": {
"function_hash": "175712132688296538464731449866632895834",
"length": 15859.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://gitlab.com/libtiff/libtiff@739dcd28a061738b317c1e9f91029d9cbc157159"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-5360.json"