{"id":"CVE-2018-18557","details":"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.","modified":"2026-07-08T17:16:50.769461Z","published":"2018-10-22T16:29:00.267Z","related":["SUSE-SU-2018:3911-1","SUSE-SU-2018:3911-2","SUSE-SU-2018:3925-1","openSUSE-SU-2024:11461-1"],"database_specific":{"unresolved_ranges":[{"vendor_product":"canonical:ubuntu_linux","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:*:*:*:*:*:*:*"],"extracted_events":[{"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"},{"source":"CPE_STRING","vendor_product":"debian:debian_linux","cpes":["cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"8.0"},{"last_affected":"8.0"},{"introduced":"9.0"},{"last_affected":"9.0"}]}]},"references":[{"type":"WEB","url":"https://github.com/Hack-Me/Pocs_for_Multi_Versions/tree/main/CVE-2018-18557"},{"type":"WEB","url":"https://usn.ubuntu.com/3906-2/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2053"},{"type":"ADVISORY","url":"https://gitlab.com/libtiff/libtiff/merge_requests/38"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/10/msg00019.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201904-15"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3864-1/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2018/dsa-4349"},{"type":"FIX","url":"https://gitlab.com/libtiff/libtiff/commit/681748ec2f5ce88da5f9fa6831e1653e46af8a66"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/45694/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vadz/libtiff","events":[{"introduced":"636f2684a0faaf9510ae4219f286a53f98f37483"},{"last_affected":"636f2684a0faaf9510ae4219f286a53f98f37483"}],"database_specific":{"cpe":"cpe:2.3:a:libtiff:libtiff:4.0.9:*:*:*:*:*:*:*","extracted_events":[{"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":[{"type":"GIT","repo":"https://gitlab.com/libtiff/libtiff","events":[{"introduced":"020bd2fd3b4235b2175dafa9633d2b191c50e7cd"},{"last_affected":"020bd2fd3b4235b2175dafa9633d2b191c50e7cd"},{"fixed":"681748ec2f5ce88da5f9fa6831e1653e46af8a66"}],"database_specific":{"cpe":"cpe:2.3:a:libtiff:libtiff:4.0.9:*:*:*:*:*:*:*","extracted_events":[{"introduced":"4.0.9"},{"last_affected":"4.0.9"}],"source":["CPE_STRING","REFERENCES"]}}],"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_modified":"2026-07-08T17:16:50Z","vanir_signatures":[{"target":{"file":"libtiff/tif_read.c","function":"TIFFSeek"},"deprecated":false,"digest":{"function_hash":"190085066915173618420271029009044133716","length":2108},"id":"CVE-2018-18557-1108261b","signature_type":"Function","signature_version":"v1","source":"https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66"},{"digest":{"function_hash":"210057897584904621344828365436975109649","length":921},"id":"CVE-2018-18557-3e17f8fa","signature_type":"Function","signature_version":"v1","source":"https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66","target":{"file":"libtiff/tif_jbig.c","function":"JBIGDecode"},"deprecated":false},{"deprecated":false,"digest":{"line_hashes":["247914630961059845656055234807818514916","104292445807137112795547946875491026043","62304014052893256128293983457188559594","126344660853215292369719481831952051831","130712379746216526845220217345770107868","308062318645547366851648548810072915472","2601806554458245434522816132305404757","257898619381568456149200277126843576135","186997235240199378592387028722512846019","130000896291107843868048830197794860294","136173744248453040620763930564091389907","165429502352344218510610847841996120239","164265013247130562008768328781500263781","22599428764585318724131021748277002860","111620650723490747315791546503767077824","325377410113415208322057967314877566308","310824384682160970219037171442251074398","187666075236593264981823892895993626084","52544923355034241730146699058582254156","224980861998260872213169659322193589295"],"threshold":0.9},"id":"CVE-2018-18557-cdee40b7","signature_type":"Line","signature_version":"v1","source":"https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66","target":{"file":"libtiff/tif_jbig.c"}},{"signature_type":"Line","signature_version":"v1","source":"https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66","target":{"file":"libtiff/tif_read.c"},"deprecated":false,"digest":{"line_hashes":["240573385735737720604871777269636986831","202493009156054802609509606826718294789","278672465859123006666535992002608320826","145375129124672136049697958460867457622"],"threshold":0.9},"id":"CVE-2018-18557-d12aa83d"}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}