CVE-2018-18557
published 2018-10-22CVE-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, 4.0.5, 4.0.6…
PriorityP263high8.8CVSS 3.0
AVNACLPRNUIRSUCHIHAH
EXPLOIT
EPSS
14.96%
96.3th percentile
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.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | tiff | < tiff 4.0.9+git181026-1 (bookworm) | tiff 4.0.9+git181026-1 (bookworm) |
| libtiff | libtiff | — | — |
Detection & IOCsextracted from sources · hover to see the quote
bytes↗
49 49 2A 00 CA 03 00 00
- →ROWS_PER_STRIP is set to 0xFFFFFFFF (invalid/max) in the crafted PoC TIFF, which is a distinguishing artefact of exploit files for this CVE. ↗
- →The exploit primitive allows an attacker to: (1) allocate a heap buffer of chosen size, and (2) overwrite beyond it with attacker-controlled JBIG-decoded data — classic heap overflow primitive. ↗
- ·Red Hat Enterprise Linux 5, 6, and 8 ship versions of libtiff that are not affected; only RHEL 7 is confirmed affected. ↗
CVSS provenance
nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8HIGH
vendor_redhat8.8HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
LibTIFF vulnerabilities
vendor_ubuntu·2019-03-18
CVE-2018-10779 LibTIFF vulnerabilities
Title: LibTIFF vulnerabilities
Summary: LibTIFF could be made to crash or run programs as your login if it opened a
specially crafted file.
USN-3906-1 and USN-3864-1 fixed several vulnerabilities in LibTIFF. This update
provides the corresponding update for Ubuntu 12.04 ESM.
Original advisory details:
It was discovered that LibTIFF incorrectly handled certain malformed
images. If a user or automated system were tricked into opening a specially
crafted image, a remote attacker could crash the application, leading to a
denial of service, or possibly execute arbitrary code with user privileges.
Instructions: In general, a standard system update will make all the necessary changes.
Ubuntu
LibTIFF vulnerabilities
vendor_ubuntu·2019-01-22
CVE-2018-10963 LibTIFF vulnerabilities
Title: LibTIFF vulnerabilities
Summary: LibTIFF could be made to crash or run programs as your login if it opened a
specially crafted file.
It was discovered that LibTIFF incorrectly handled certain malformed
images. If a user or automated system were tricked into opening a specially
crafted image, a remote attacker could crash the application, leading to a
denial of service, or possibly execute arbitrary code with user privileges.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
libtiff: Out-of-bounds write in tif_jbig.c
vendor_redhat·2018-10-14·CVSS 8.8
CVE-2018-18557 [HIGH] CWE-787 libtiff: Out-of-bounds write in tif_jbig.c
libtiff: Out-of-bounds write in tif_jbig.c
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.
Statement: This issue did not affect the versions of libtiff as shipped with Red Hat Enterprise Linux 5 and 6.
This issue affects the versions of libtiff as shipped with Red Hat Enterprise Linux 7.
Package: libtiff (Red Hat Enterprise Linux 5) - Not affected
Package: libtiff (Red Hat Enterprise Linux 6) - Not affected
Package: libtiff (Red Hat Enterprise Linux 8) - Not affected
Debian
CVE-2018-18557: tiff - 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...
vendor_debian·2018·CVSS 8.8
CVE-2018-18557 [HIGH] CVE-2018-18557: tiff - 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...
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.
Scope: local
bookworm: resolved (fixed in 4.0.9+git181026-1)
bullseye: resolved (fixed in 4.0.9+git181026-1)
forky: resolved (fixed in 4.0.9+git181026-1)
sid: resolved (fixed in 4.0.9+git181026-1)
trixie: resolved (fixed in 4.0.9+git181026-1)
GHSA
GHSA-p963-j6qf-rp28: LibTIFF 3
ghsa_unreviewed·2022-05-13
CVE-2018-18557 [HIGH] CWE-787 GHSA-p963-j6qf-rp28: LibTIFF 3
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: LibTIFF 3
osv·2018-10-22·CVSS 8.8
CVE-2018-18557 [HIGH] CVE-2018-18557: LibTIFF 3
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.
No detection rules found.
Bugzilla
CVE-2018-18557 libtiff: Out-of-bounds write in tif_jbig.c [fedora-all]
bugzilla·2018-10-30·CVSS 8.8
CVE-2018-18557 [HIGH] CVE-2018-18557 libtiff: Out-of-bounds write in tif_jbig.c [fedora-all]
CVE-2018-18557 libtiff: Out-of-bounds write in tif_jbig.c [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fed
Bugzilla
CVE-2018-18557 libtiff: Out-of-bounds write in tif_jbig.c
bugzilla·2018-10-30·CVSS 8.8
CVE-2018-18557 [HIGH] CVE-2018-18557 libtiff: Out-of-bounds write in tif_jbig.c
CVE-2018-18557 libtiff: Out-of-bounds write in tif_jbig.c
LibTIFF 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.
Upstream MR:
https://gitlab.com/libtiff/libtiff/merge_requests/38
References:
https://bugs.chromium.org/p/project-zero/issues/detail?id=1697
Discussion:
Created libtiff tracking bugs for this issue:
Affects: fedora-all [bug 1644230]
---
Statement:
This issue did not affect the versions of libtiff as shipped with Red Hat Enterprise Linux 5 and 6.
This issue affects the versions of libtiff as shipped with Red Hat Enterprise Linux 7.
---
This issue has been addressed in the following products:
Red Hat Enterprise Linux 7
Via RHSA-2019:2053 https://access.red
https://access.redhat.com/errata/RHSA-2019:2053https://github.com/Hack-Me/Pocs_for_Multi_Versions/tree/main/CVE-2018-18557https://gitlab.com/libtiff/libtiff/commit/681748ec2f5ce88da5f9fa6831e1653e46af8a66https://gitlab.com/libtiff/libtiff/merge_requests/38https://lists.debian.org/debian-lts-announce/2018/10/msg00019.htmlhttps://security.gentoo.org/glsa/201904-15https://usn.ubuntu.com/3864-1/https://usn.ubuntu.com/3906-2/https://www.debian.org/security/2018/dsa-4349https://www.exploit-db.com/exploits/45694/https://access.redhat.com/errata/RHSA-2019:2053https://github.com/Hack-Me/Pocs_for_Multi_Versions/tree/main/CVE-2018-18557https://gitlab.com/libtiff/libtiff/commit/681748ec2f5ce88da5f9fa6831e1653e46af8a66https://gitlab.com/libtiff/libtiff/merge_requests/38https://lists.debian.org/debian-lts-announce/2018/10/msg00019.htmlhttps://security.gentoo.org/glsa/201904-15https://usn.ubuntu.com/3864-1/https://usn.ubuntu.com/3906-2/https://www.debian.org/security/2018/dsa-4349https://www.exploit-db.com/exploits/45694/
2018-10-22
Published