CVE-2018-8905: Buffer Overflow

Published Mar 22, 2018
·
Updated

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tiflzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

Other sources

LibTIFF since version 3.9.0 is vulnerable to a heap-based buffer overflow in the tiflzw.c:LZWDecodeCompat() function. An attacker could exploit this to cause a denial of service via crafted TIF file.

Upstream Issue: http://bugzilla.maptools.org/showbug.cgi?id=2780

Additional References: https://github.com/halfbitteam/POCs/tree/master/libtiff-4.08tiff2psheapoverflow

Red Hat

Affected Software

12 affected componentsFixes available
LibTIFF libtiff=4.0.9
Debian Debian Linux=7.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=18.10
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Workstation=7.0
debian/tiff
4.2.0-1+deb11u54.2.0-1+deb11u84.5.0-6+deb12u44.7.0-3+deb13u24.7.2-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/tiff to a version that resolves this vulnerability.

    Fixed in 4.2.0-1+deb11u5Fixed in 4.2.0-1+deb11u8Fixed in 4.5.0-6+deb12u4Fixed in 4.7.0-3+deb13u2Fixed in 4.7.2-1
  2. Upgrade

    Upgrade LibTIFF to a version that resolves this vulnerability.

    Fixed in 4.0.9

Event History

Mar 22, 2018
CVE Published
via MITRE·04:00 AM
Data Sourced
via MITRE·04:00 AM
Description
Data Sourced
via NVD·04:29 AM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 23, 2018
Data Sourced
via Red Hat·05:08 AM
DescriptionSeverityAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:10 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·04:01 PM
RemedyDescriptionSeverityAffected Software
Jul 8, 2026
Data Sourced
via Debian·02:59 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-8905?

CVE-2018-8905 is classified as a critical vulnerability due to the potential for a heap-based buffer overflow.

2

How do I fix CVE-2018-8905?

To resolve CVE-2018-8905, upgrade to LibTIFF version 4.2.0-1+deb11u5 or later.

3

What software is affected by CVE-2018-8905?

CVE-2018-8905 affects multiple versions of LibTIFF, including version 4.0.9 and versions up to 4.5.1.

4

Can CVE-2018-8905 be exploited remotely?

Yes, CVE-2018-8905 can be exploited remotely by sending a maliciously crafted TIFF file to the target system.

5

Is my system safe if it runs a version later than LibTIFF 4.2.0?

Yes, systems running LibTIFF version 4.2.0 or later are not vulnerable to CVE-2018-8905.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203