{"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-04-16T06:16:51.558457910Z","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"],"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://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":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2053"},{"type":"ADVISORY","url":"https://gitlab.com/libtiff/libtiff/merge_requests/38"},{"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":"0"},{"last_affected":"636f2684a0faaf9510ae4219f286a53f98f37483"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"4.0.9"}]}},{"type":"GIT","repo":"https://gitlab.com/libtiff/libtiff","events":[{"introduced":"0"},{"fixed":"681748ec2f5ce88da5f9fa6831e1653e46af8a66"}]}],"versions":["Pre360","Release-","Release-3-7-0","Release-v3-5-","Release-v3-5-4","Release-v3-5-5","Release-v3-5-7","Release-v3-6-0","Release-v3-6-0beta2","Release-v3-6-1","Release-v3-7-0-alpha","Release-v3-7-0beta","Release-v3-7-0beta2","Release-v3-7-1","Release-v3-7-2","Release-v3-7-3","Release-v3-7-4","Release-v3-8-0","Release-v3-8-1","Release-v3-8-2","Release-v4-0-0","Release-v4-0-0alpha","Release-v4-0-0alpha4","Release-v4-0-0alpha5","Release-v4-0-0alpha6","Release-v4-0-0beta7","Release-v4-0-1","Release-v4-0-2","Release-v4-0-3","Release-v4-0-4","Release-v4-0-4beta","Release-v4-0-5","Release-v4-0-6","Release-v4-0-7","Release-v4-0-8","Release-v4-0-9","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","v4.0.7","v4.0.8","v4.0.9"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18557.json","vanir_signatures_modified":"2026-04-11T11:40:02Z","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]},{"events":[{"introduced":"0"},{"last_affected":"14.04"}]},{"events":[{"introduced":"0"},{"last_affected":"16.04"}]},{"events":[{"introduced":"0"},{"last_affected":"18.04"}]},{"events":[{"introduced":"0"},{"last_affected":"18.10"}]}],"vanir_signatures":[{"deprecated":false,"target":{"function":"TIFFSeek","file":"libtiff/tif_read.c"},"id":"CVE-2018-18557-1108261b","source":"https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66","signature_type":"Function","signature_version":"v1","digest":{"length":2108,"function_hash":"190085066915173618420271029009044133716"}},{"signature_type":"Function","digest":{"length":921,"function_hash":"210057897584904621344828365436975109649"},"id":"CVE-2018-18557-3e17f8fa","source":"https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66","deprecated":false,"signature_version":"v1","target":{"function":"JBIGDecode","file":"libtiff/tif_jbig.c"}},{"deprecated":false,"target":{"file":"libtiff/tif_jbig.c"},"id":"CVE-2018-18557-cdee40b7","source":"https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66","signature_type":"Line","signature_version":"v1","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"]}},{"target":{"file":"libtiff/tif_read.c"},"digest":{"threshold":0.9,"line_hashes":["240573385735737720604871777269636986831","202493009156054802609509606826718294789","278672465859123006666535992002608320826","145375129124672136049697958460867457622"]},"id":"CVE-2018-18557-d12aa83d","source":"https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66","signature_type":"Line","signature_version":"v1","deprecated":false}]}}],"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"}]}