ID CVE-2009-5022
Summary Heap-based buffer overflow in tif_ojpeg.c in the OJPEG decoder in LibTIFF before 3.9.5 allows remote attackers to execute arbitrary code via a crafted TIFF file.
References
Vulnerable Configurations
  • LibTIFF 3.5.7 beta
    cpe:2.3:a:libtiff:libtiff:3.5.7:beta
  • LibTIFF 3.5.1
    cpe:2.3:a:libtiff:libtiff:3.5.1
  • LibTIFF 3.5.7 alpha4
    cpe:2.3:a:libtiff:libtiff:3.5.7:alpha4
  • LibTIFF 3.5.2
    cpe:2.3:a:libtiff:libtiff:3.5.2
  • LibTIFF 3.5.7 alpha3
    cpe:2.3:a:libtiff:libtiff:3.5.7:alpha3
  • LibTIFF 3.5.3
    cpe:2.3:a:libtiff:libtiff:3.5.3
  • LibTIFF 3.5.7 alpha2
    cpe:2.3:a:libtiff:libtiff:3.5.7:alpha2
  • LibTIFF 3.5.4
    cpe:2.3:a:libtiff:libtiff:3.5.4
  • LibTIFF 3.5.7 alpha
    cpe:2.3:a:libtiff:libtiff:3.5.7:alpha
  • LibTIFF 3.5.5
    cpe:2.3:a:libtiff:libtiff:3.5.5
  • LibTIFF 3.5.6 beta
    cpe:2.3:a:libtiff:libtiff:3.5.6:beta
  • LibTIFF 3.5.6
    cpe:2.3:a:libtiff:libtiff:3.5.6
  • LibTIFF 3.5.7
    cpe:2.3:a:libtiff:libtiff:3.5.7
  • LibTIFF 3.4 beta37
    cpe:2.3:a:libtiff:libtiff:3.4:beta37
  • LibTIFF 3.6.0
    cpe:2.3:a:libtiff:libtiff:3.6.0
  • LibTIFF 3.4 beta36
    cpe:2.3:a:libtiff:libtiff:3.4:beta36
  • LibTIFF 3.6.1
    cpe:2.3:a:libtiff:libtiff:3.6.1
  • LibTIFF 3.4 beta35
    cpe:2.3:a:libtiff:libtiff:3.4:beta35
  • LibTIFF 3.7.0
    cpe:2.3:a:libtiff:libtiff:3.7.0
  • LibTIFF 3.4 beta34
    cpe:2.3:a:libtiff:libtiff:3.4:beta34
  • LibTIFF 3.7.1
    cpe:2.3:a:libtiff:libtiff:3.7.1
  • LibTIFF 3.4 beta32
    cpe:2.3:a:libtiff:libtiff:3.4:beta32
  • LibTIFF 3.8.0
    cpe:2.3:a:libtiff:libtiff:3.8.0
  • LibTIFF 3.4 beta31
    cpe:2.3:a:libtiff:libtiff:3.4:beta31
  • LibTIFF 3.8.1
    cpe:2.3:a:libtiff:libtiff:3.8.1
  • LibTIFF 3.4 beta29
    cpe:2.3:a:libtiff:libtiff:3.4:beta29
  • LibTIFF 3.8.2
    cpe:2.3:a:libtiff:libtiff:3.8.2
  • LibTIFF 3.4 beta28
    cpe:2.3:a:libtiff:libtiff:3.4:beta28
  • LibTIFF 3.4 beta24
    cpe:2.3:a:libtiff:libtiff:3.4:beta24
  • LibTIFF 3.4 beta18
    cpe:2.3:a:libtiff:libtiff:3.4:beta18
  • LibTIFF 3.7.3
    cpe:2.3:a:libtiff:libtiff:3.7.3
  • LibTIFF 3.7.4
    cpe:2.3:a:libtiff:libtiff:3.7.4
  • LibTIFF 3.7.0 beta2
    cpe:2.3:a:libtiff:libtiff:3.7.0:beta2
  • LibTIFF 3.7.2
    cpe:2.3:a:libtiff:libtiff:3.7.2
  • LibTIFF 3.7.0 alpha
    cpe:2.3:a:libtiff:libtiff:3.7.0:alpha
  • LibTIFF 3.7.0 beta
    cpe:2.3:a:libtiff:libtiff:3.7.0:beta
  • LibTIFF 3.6.0 beta
    cpe:2.3:a:libtiff:libtiff:3.6.0:beta
  • LibTIFF 3.4
    cpe:2.3:a:libtiff:libtiff:3.4
  • LibTIFF 3.6.0 beta2
    cpe:2.3:a:libtiff:libtiff:3.6.0:beta2
  • LibTIFF 3.9
    cpe:2.3:a:libtiff:libtiff:3.9
  • LibTIFF 3.9.0
    cpe:2.3:a:libtiff:libtiff:3.9.0
  • LibTIFF 3.9.0 beta
    cpe:2.3:a:libtiff:libtiff:3.9.0:beta
  • LibTIFF 3.9.1
    cpe:2.3:a:libtiff:libtiff:3.9.1
  • LibTIFF 3.9.2
    cpe:2.3:a:libtiff:libtiff:3.9.2
  • LibTIFF 3.9.2-5.2.1
    cpe:2.3:a:libtiff:libtiff:3.9.2-5.2.1
  • LibTIFF 3.9.3
    cpe:2.3:a:libtiff:libtiff:3.9.3
  • LibTIFF 3.9.4
    cpe:2.3:a:libtiff:libtiff:3.9.4
CVSS
Base: 6.8 (as of 04-05-2011 - 09:03)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
exploit-db via4
description IrfanView - .TIF Image Decompression Buffer Overflow Vulnerability. CVE-2009-5022. Dos exploit for windows platform
id EDB-ID:22681
last seen 2016-02-02
modified 2012-11-13
published 2012-11-13
reporter Francis Provencher
source https://www.exploit-db.com/download/22681/
title IrfanView - .TIF Image Decompression Buffer Overflow Vulnerability
nessus via4
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2256.NASL
    description Tavis Ormandy discovered that the Tag Image File Format (TIFF) library is vulnerable to a buffer overflow triggered by a crafted OJPEG file which allows for a crash and potentially execution of arbitrary code. The oldstable distribution (lenny) is not affected by this problem.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 55044
    published 2011-06-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=55044
    title Debian DSA-2256-1 : tiff - buffer overflow
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20110418_LIBTIFF_ON_SL6_X.NASL
    description A heap-based buffer overflow flaw was found in the way libtiff processed certain TIFF image files that were compressed with the JPEG compression algorithm. An attacker could use this flaw to create a specially crafted TIFF file that, when opened, would cause an application linked against libtiff to crash or, possibly, execute arbitrary code. (CVE-2009-5022) All running applications linked against libtiff must be restarted for this update to take effect.
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 61020
    published 2012-08-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=61020
    title Scientific Linux Security Update : libtiff on SL6.x i386/x86_64
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-1120-1.NASL
    description It was discovered that the TIFF library incorrectly handled certain JPEG data. If a user or automated system were tricked into opening a specially crafted TIFF image, a remote attacker could execute arbitrary code with user privileges, or crash the application, leading to a denial of service. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-12-01
    plugin id 55078
    published 2011-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=55078
    title Ubuntu 10.04 LTS / 10.10 : tiff vulnerability (USN-1120-1)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2011-078.NASL
    description A vulnerability has been found and corrected in libtiff : The libtiff OJPEG decoder contains a heap buffer overflow when decoding certain malformed data (CVE-2009-5022). The updated packages have been patched to correct this issue.
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 53542
    published 2011-04-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=53542
    title Mandriva Linux Security Advisory : libtiff (MDVSA-2011:078)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2011-0452.NASL
    description Updated libtiff packages that fix one security issue are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The libtiff packages contain a library of functions for manipulating Tagged Image File Format (TIFF) files. A heap-based buffer overflow flaw was found in the way libtiff processed certain TIFF image files that were compressed with the JPEG compression algorithm. An attacker could use this flaw to create a specially crafted TIFF file that, when opened, would cause an application linked against libtiff to crash or, possibly, execute arbitrary code. (CVE-2009-5022) All libtiff users should upgrade to these updated packages, which contain a backported patch to resolve this issue. All running applications linked against libtiff must be restarted for this update to take effect.
    last seen 2019-02-21
    modified 2018-11-26
    plugin id 53483
    published 2011-04-19
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=53483
    title RHEL 6 : libtiff (RHSA-2011:0452)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_3_LIBTIFF-DEVEL-110415.NASL
    description Specially crafted tiff files could cause a heap-based buffer overflow in the thunder- and ojpeg-decoders (CVE-2011-1167, CVE-2009-5022). Directories with a large number of files could cause an integer overflow in the tiffdump tool (CVE-2010-4665)
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 75621
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=75621
    title openSUSE Security Update : libtiff-devel (openSUSE-SU-2011:0405-1)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2011-5304.NASL
    description Update to libtiff 3.9.5, incorporating all our previous patches plus other fixes, notably the fix for CVE-2009-5022 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-07-12
    plugin id 53498
    published 2011-04-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=53498
    title Fedora 14 : libtiff-3.9.5-1.fc14 (2011-5304)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201209-02.NASL
    description The remote host is affected by the vulnerability described in GLSA-201209-02 (libTIFF: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in libTIFF. Please review the CVE identifiers referenced below for details. Impact : A remote attacker could entice a user to open a specially crafted TIFF file with an application making use of libTIFF, possibly resulting in execution of arbitrary code with the privileges of the user running the application or a Denial of Service condition. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-07-11
    plugin id 62235
    published 2012-09-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=62235
    title GLSA-201209-02 : libTIFF: Multiple vulnerabilities
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_4_LIBTIFF-DEVEL-110415.NASL
    description Specially crafted tiff files could cause a heap-based buffer overflow in the thunder- and ojpeg-decoders (CVE-2011-1167, CVE-2009-5022). Directories with a large number of files could cause an integer overflow in the tiffdump tool (CVE-2010-4665)
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 75926
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=75926
    title openSUSE Security Update : libtiff-devel (openSUSE-SU-2011:0405-1)
  • NASL family Windows
    NASL id IRFANVIEW_435.NASL
    description The remote Windows host contains a version of IrfanView prior to version 4.35. It is, therefore, reportedly affected by the following vulnerabilities : - An error exists related to 'ImageWidth' value handling in JPEG compressed TIFF images. - An error exists related to 'End of Line' marker handling in RLE compressed BMP images. These vulnerabilities could allow heap-based buffer overflows, which could lead to arbitrary code execution.
    last seen 2019-02-21
    modified 2018-11-15
    plugin id 63059
    published 2012-11-27
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=63059
    title IrfanView < 4.35 Multiple Heap-Based Buffer Overflows
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2011-0452.NASL
    description From Red Hat Security Advisory 2011:0452 : Updated libtiff packages that fix one security issue are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The libtiff packages contain a library of functions for manipulating Tagged Image File Format (TIFF) files. A heap-based buffer overflow flaw was found in the way libtiff processed certain TIFF image files that were compressed with the JPEG compression algorithm. An attacker could use this flaw to create a specially crafted TIFF file that, when opened, would cause an application linked against libtiff to crash or, possibly, execute arbitrary code. (CVE-2009-5022) All libtiff users should upgrade to these updated packages, which contain a backported patch to resolve this issue. All running applications linked against libtiff must be restarted for this update to take effect.
    last seen 2019-02-21
    modified 2018-07-18
    plugin id 68257
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=68257
    title Oracle Linux 6 : libtiff (ELSA-2011-0452)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2011-5336.NASL
    description Update to libtiff 3.9.5, incorporating all our previous patches plus other fixes, notably the fix for CVE-2009-5022 Fix incorrect fix for CVE-2011-0192 Add fix for CVE-2011-1167 Fix buffer overrun in fax decoding (CVE-2011-0192) as well as a non-security-critical crash in gif2tiff. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2016-05-11
    plugin id 53560
    published 2011-04-27
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=53560
    title Fedora 15 : libtiff-3.9.5-1.fc15 (2011-5336)
redhat via4
advisories
bugzilla
id 695885
title CVE-2009-5022 libtiff ojpeg buffer overflow
oval
AND
  • OR
    • comment Red Hat Enterprise Linux 6 Client is installed
      oval oval:com.redhat.rhsa:tst:20100842001
    • comment Red Hat Enterprise Linux 6 Server is installed
      oval oval:com.redhat.rhsa:tst:20100842002
    • comment Red Hat Enterprise Linux 6 Workstation is installed
      oval oval:com.redhat.rhsa:tst:20100842003
    • comment Red Hat Enterprise Linux 6 ComputeNode is installed
      oval oval:com.redhat.rhsa:tst:20100842004
  • OR
    • AND
      • comment libtiff is earlier than 0:3.9.4-1.el6_0.3
        oval oval:com.redhat.rhsa:tst:20110452005
      • comment libtiff is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20110318011
    • AND
      • comment libtiff-devel is earlier than 0:3.9.4-1.el6_0.3
        oval oval:com.redhat.rhsa:tst:20110452007
      • comment libtiff-devel is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20110318015
    • AND
      • comment libtiff-static is earlier than 0:3.9.4-1.el6_0.3
        oval oval:com.redhat.rhsa:tst:20110452009
      • comment libtiff-static is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20110318013
rhsa
id RHSA-2011:0452
released 2011-04-18
severity Important
title RHSA-2011:0452: libtiff security update (Important)
rpms
  • libtiff-0:3.9.4-1.el6_0.3
  • libtiff-devel-0:3.9.4-1.el6_0.3
  • libtiff-static-0:3.9.4-1.el6_0.3
refmap via4
bid 47338
confirm
debian DSA-2256
fedora FEDORA-2011-5304
gentoo GLSA-201209-02
mandriva MDVSA-2011:078
mlist [oss-security] 20110412 libtiff CVE assignments
sectrack 1025380
secunia
  • 44271
  • 50726
ubuntu USN-1120-1
vupen
  • ADV-2011-1014
  • ADV-2011-1082
xf libtiff-ojpeg-bo(66774)
Last major update 14-05-2013 - 23:04
Published 03-05-2011 - 16:55
Last modified 16-08-2017 - 21:31
Back to Top