CVE-2018-5784
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | tiff | Fixed | 4.0.6-1ubuntu0.3 | UBUNTU-CVE-2018-5784 |
| Ubuntu 14.04 | tiff | Fixed | 4.0.3-7ubuntu0.8 | UBUNTU-CVE-2018-5784 |
| Debian 14 | tiff | Fixed | 4.0.9-4 | DEBIAN-CVE-2018-5784 |
| Debian 13 | tiff | Fixed | 4.0.9-4 | DEBIAN-CVE-2018-5784 |
| Debian 12 | tiff | Fixed | 4.0.9-4 | DEBIAN-CVE-2018-5784 |
| Red Hat Enterprise Linux 8 | libtiff | Not affected | ||
| Red Hat Enterprise Linux 8 | libtiff-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libtiff-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | compat-libtiff3 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libtiff | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libtiff-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libtiff-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libtiff-tools | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libtiff | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libtiff-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libtiff-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | libtiff | Will not fix Will not fix | ||
| Alpine Linux 3.24 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.23 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.22 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.21 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.20 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.19 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.18 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.17 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.16 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.15 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.14 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.13 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.12 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.11 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.10 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.9 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.8 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.7 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.6 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.5 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
| Alpine Linux 3.4 | tiff | Fixed | 4.0.9-r2 | ALPINE-CVE-2018-5784 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://usn.ubuntu.com/3606-1/ (vendor-advisory)
- https://usn.ubuntu.com/3602-1/ (vendor-advisory)
- https://www.debian.org/security/2018/dsa-4349 (vendor-advisory)
References
- https://usn.ubuntu.com/3606-1/
- https://usn.ubuntu.com/3602-1/
- https://lists.debian.org/debian-lts-announce/2018/05/msg00022.html
- https://www.debian.org/security/2018/dsa-4349
- http://bugzilla.maptools.org/show_bug.cgi?id=2772
- https://lists.debian.org/debian-lts-announce/2018/07/msg00002.html
- https://gitlab.com/libtiff/libtiff/commit/473851d211cf8805a161820337ca74cc9615d6ef
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.