CVE-2008-2327: Buffer Overflow

Published Aug 11, 2008
·
Updated

Drew Yao of Apple Product Security reported a flaw in the LZW decoder used by libtiff to handle LZW-encoded images. Translation table used by decoding algorithm is not properly re-initialized after "code clear" code is read from the stream being decoded. When reading that code, decoder should discard previous translation table and start filling it again.

Later during the processing, no longer valid table entries may be indexed by the input stream, causing libtiff to follow no longer valid pointer. This can result in crash, memory corruption and possibly allow code execution.

References: http://www.remotesensing.org/libtiff/ http://en.wikipedia.org/wiki/Lzw

Acknowledgements:

Red Hat would like to thank Drew Yao of the Apple Product Security team for reporting this issue.

Other sources

Multiple buffer underflows in the (1) LZWDecode, (2) LZWDecodeCompat, and (3) LZWDecodeVector functions in tiflzw.c in the LZW decoder in LibTIFF 3.8.2 and earlier allow context-dependent attackers to execute arbitrary code via a crafted TIFF file, related to improper handling of the CODECLEAR code.

MITRE

Affected Software

15 affected components
LibTIFF libtiff=3.6.1
LibTIFF libtiff=3.8.0
LibTIFF libtiff=3.8.1
LibTIFF libtiff=3.4
LibTIFF libtiff=3.5.7
LibTIFF libtiff=3.7.0
LibTIFF libtiff=3.6.0
LibTIFF libtiff=3.5.3
LibTIFF libtiff=3.7.1
LibTIFF libtiff=3.5.4
LibTIFF libtiff=3.5.2
LibTIFF libtiff=3.5.5
LibTIFF libtiff=3.5.1
LibTIFF libtiff=3.5.6
LibTIFF libtiff<=3.8.2

Event History

Aug 11, 2008
Data Sourced
02:24 PM
DescriptionSeverityAffected Software
Aug 27, 2008
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2008-2327?

CVE-2008-2327 is considered to have a moderate severity level due to its potential impact on the integrity of LZW-encoded images.

2

How do I fix CVE-2008-2327?

To fix CVE-2008-2327, upgrade libtiff to version 3.8.3 or later.

3

Which versions of libtiff are affected by CVE-2008-2327?

CVE-2008-2327 affects libtiff versions up to and including 3.8.2, as well as specific earlier versions including 3.4, 3.5.1 to 3.8.1.

4

What is the impact of CVE-2008-2327 on systems using libtiff?

The impact of CVE-2008-2327 can lead to application crashes or execution of arbitrary code when handling LZW-encoded images.

5

Is there a workaround for CVE-2008-2327 if I cannot update libtiff?

There is no known workaround for CVE-2008-2327, so updating to a patched version is strongly recommended.

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