High
Security advisory
LibTIFF 3.9.3, 3.9.4, 3.9.5, 3.9.6, 3.9.7, 4.0.0alpha4, 4.0.0alpha5, 4.0.0alpha6, 4.0.0beta7, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.4beta, 4.0.5, 4.0.6, 4.0.7, 4.0.8 and 4.0.9 (with JBIG enabled) decodes arbitrarily-sized JBIG into a buffer, ignoring the buffer size, which leads to a tif_jbig.c JBIGDecode out-of-bounds write.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-18557
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:23 UTC · Revision 1
Source evidence
LibTIFF 3.9.3, 3.9.4, 3.9.5, 3.9.6, 3.9.7, 4.0.0alpha4, 4.0.0alpha5, 4.0.0alpha6, 4.0.0beta7, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.4beta, 4.0.5, 4.0.6, 4.0.7, 4.0.8 and 4.0.9 (with JBIG enabled) decodes arbitrarily-sized JBIG into a buffer, ignoring the buffer size, which leads to a tif_jbig.c JBIGDecode out-of-bounds write.
osv:CVE-2018-18557
Complete source record
{
"id": "35b1afc2e5dec5dbf1c97d9ff17afeda361d15d959beecefa302cfba1091d6dc",
"url": "https://osv.dev/vulnerability/CVE-2018-18557",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-18557",
"summary": "LibTIFF 3.9.3, 3.9.4, 3.9.5, 3.9.6, 3.9.7, 4.0.0alpha4, 4.0.0alpha5, 4.0.0alpha6, 4.0.0beta7, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.4beta, 4.0.5, 4.0.6, 4.0.7, 4.0.8 and 4.0.9 (with JBIG enabled) decodes arbitrarily-sized JBIG into a buffer, ignoring the buffer size, which leads to a tif_jbig.c JBIGDecode out-of-bounds write.",
"evidence": "osv:CVE-2018-18557",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2018-18557",
"aliases": [
"CVE-2018-18557"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/vadz/libtiff",
"type": "GIT",
"events": [
{
"introduced": "636f2684a0faaf9510ae4219f286a53f98f37483"
},
{
"last_affected": "636f2684a0faaf9510ae4219f286a53f98f37483"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libtiff:libtiff:4.0.9:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.0.9"
},
{
"last_affected": "4.0.9"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"4.0.9",
"Release-v4-0-9"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18557.json"
}
},
{
"ranges": [
{
"repo": "https://gitlab.com/libtiff/libtiff",
"type": "GIT",
"events": [
{
"introduced": "020bd2fd3b4235b2175dafa9633d2b191c50e7cd"
},
{
"last_affected": "020bd2fd3b4235b2175dafa9633d2b191c50e7cd"
},
{
"fixed": "681748ec2f5ce88da5f9fa6831e1653e46af8a66"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libtiff:libtiff:4.0.9:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.0.9"
},
{
"last_affected": "4.0.9"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "681748ec2f5ce88da5f9fa6831e1653e46af8a66"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"4.0.9",
"v4.0.9"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18557.json",
"vanir_signatures": [
{
"id": "CVE-2018-18557-1108261b",
"digest": {
"length": 2108,
"function_hash": "190085066915173618420271029009044133716"
},
"source": "https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66",
"target": {
"file": "libtiff/tif_read.c",
"function": "TIFFSeek"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-18557-3e17f8fa",
"digest": {
"length": 921,
"function_hash": "210057897584904621344828365436975109649"
},
"source": "https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66",
"target": {
"file": "libtiff/tif_jbig.c",
"function": "JBIGDecode"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-18557-cdee40b7",
"digest": {
"threshold": 0.9,
"line_hashes": [
"247914630961059845656055234807818514916",
"104292445807137112795547946875491026043",
"62304014052893256128293983457188559594",
"126344660853215292369719481831952051831",
"130712379746216526845220217345770107868",
"308062318645547366851648548810072915472",
"2601806554458245434522816132305404757",
"257898619381568456149200277126843576135",
"186997235240199378592387028722512846019",
"130000896291107843868048830197794860294",
"136173744248453040620763930564091389907",
"165429502352344218510610847841996120239",
"164265013247130562008768328781500263781",
"22599428764585318724131021748277002860",
"111620650723490747315791546503767077824",
"325377410113415208322057967314877566308",
"310824384682160970219037171442251074398",
"187666075236593264981823892895993626084",
"52544923355034241730146699058582254156",
"224980861998260872213169659322193589295"
]
},
"source": "https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66",
"target": {
"file": "libtiff/tif_jbig.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-18557-d12aa83d",
"digest": {
"threshold": 0.9,
"line_hashes": [
"240573385735737720604871777269636986831",
"202493009156054802609509606826718294789",
"278672465859123006666535992002608320826",
"145375129124672136049697958460867457622"
]
},
"source": "https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66",
"target": {
"file": "libtiff/tif_read.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:20:55Z"
}
}
],
"modified": "2026-10-24T14:20:55.319542564Z",
"provider": "osv",
"references": [
"https://github.com/Hack-Me/Pocs_for_Multi_Versions/tree/main/CVE-2018-18557",
"https://usn.ubuntu.com/3906-2/",
"https://access.redhat.com/errata/RHSA-2019:2053",
"https://gitlab.com/libtiff/libtiff/merge_requests/38",
"https://lists.debian.org/debian-lts-announce/2018/10/msg00019.html",
"https://security.gentoo.org/glsa/201904-15",
"https://usn.ubuntu.com/3864-1/",
"https://www.debian.org/security/2018/dsa-4349",
"https://gitlab.com/libtiff/libtiff/commit/681748ec2f5ce88da5f9fa6831e1653e46af8a66",
"https://www.exploit-db.com/exploits/45694/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "14.04"
},
{
"last_affected": "14.04"
},
{
"introduced": "16.04"
},
{
"last_affected": "16.04"
},
{
"introduced": "18.04"
},
{
"last_affected": "18.04"
},
{
"introduced": "18.10"
},
{
"last_affected": "18.10"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
},
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-18557",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443547,
"published_at": "2018-10-22T16:29:00.267+00:00"
}