ID CVE-2012-0897
Summary Stack-based buffer overflow in the JPEG2000 plugin in IrfanView PlugIns before 4.33 allows remote attackers to execute arbitrary code via a JPEG2000 (JP2) file with a crafted Quantization Default (QCD) marker segment.
References
Vulnerable Configurations
  • IrfanView 4.32
    cpe:2.3:a:irfanview:irfanview:4.32
  • Irfanview 4.30
    cpe:2.3:a:irfanview:irfanview:4.30
  • Irfanview 4.28
    cpe:2.3:a:irfanview:irfanview:4.28
  • IrfanView 2.32
    cpe:2.3:a:irfanview:irfanview:2.32
  • IrfanView 2.30
    cpe:2.3:a:irfanview:irfanview:2.30
  • IrfanView 2.27
    cpe:2.3:a:irfanview:irfanview:2.27
  • IrfanView 2.25
    cpe:2.3:a:irfanview:irfanview:2.25
  • IrfanView 2.22
    cpe:2.3:a:irfanview:irfanview:2.22
  • IrfanView 2.20
    cpe:2.3:a:irfanview:irfanview:2.20
  • IrfanView 2.18
    cpe:2.3:a:irfanview:irfanview:2.18
  • IrfanView 2.17
    cpe:2.3:a:irfanview:irfanview:2.17
  • cpe:2.3:a:irfanview:irfanview:2.62
    cpe:2.3:a:irfanview:irfanview:2.62
  • IrfanView 2.60
    cpe:2.3:a:irfanview:irfanview:2.60
  • IrfanView 2.55
    cpe:2.3:a:irfanview:irfanview:2.55
  • IrfanView 2.52
    cpe:2.3:a:irfanview:irfanview:2.52
  • IrfanView 2.50
    cpe:2.3:a:irfanview:irfanview:2.50
  • IrfanView 2.40
    cpe:2.3:a:irfanview:irfanview:2.40
  • Irfanview 4.10
    cpe:2.3:a:irfanview:irfanview:4.10
  • IrfanView 2.37
    cpe:2.3:a:irfanview:irfanview:2.37
  • IrfanView 2.35
    cpe:2.3:a:irfanview:irfanview:2.35
  • IrfanView 2.83
    cpe:2.3:a:irfanview:irfanview:2.83
  • IrfanView 2.85
    cpe:2.3:a:irfanview:irfanview:2.85
  • cpe:2.3:a:irfanview:irfanview:3.0.7
    cpe:2.3:a:irfanview:irfanview:3.0.7
  • Irfanview 3.98
    cpe:2.3:a:irfanview:irfanview:3.98
  • IrfanView 2.80
    cpe:2.3:a:irfanview:irfanview:2.80
  • Irfanview 3.99
    cpe:2.3:a:irfanview:irfanview:3.99
  • IrfanView 2.82
    cpe:2.3:a:irfanview:irfanview:2.82
  • Irfanview 4.00
    cpe:2.3:a:irfanview:irfanview:4.00
  • IrfanView 2.66
    cpe:2.3:a:irfanview:irfanview:2.66
  • IrfanView 2.68
    cpe:2.3:a:irfanview:irfanview:2.68
  • IrfanView 2.63
    cpe:2.3:a:irfanview:irfanview:2.63
  • IrfanView 2.65
    cpe:2.3:a:irfanview:irfanview:2.65
  • IrfanView 3.02
    cpe:2.3:a:irfanview:irfanview:3.02
  • IrfanView 3.05
    cpe:2.3:a:irfanview:irfanview:3.05
  • IrfanView 2.98
    cpe:2.3:a:irfanview:irfanview:2.98
  • IrfanView 3.00
    cpe:2.3:a:irfanview:irfanview:3.00
  • IrfanView 2.95
    cpe:2.3:a:irfanview:irfanview:2.95
  • IrfanView 2.97
    cpe:2.3:a:irfanview:irfanview:2.97
  • IrfanView 2.90
    cpe:2.3:a:irfanview:irfanview:2.90
  • IrfanView 2.92
    cpe:2.3:a:irfanview:irfanview:2.92
  • IrfanView 1.90
    cpe:2.3:a:irfanview:irfanview:1.90
  • IrfanView 1.95
    cpe:2.3:a:irfanview:irfanview:1.95
  • IrfanView 1.97
    cpe:2.3:a:irfanview:irfanview:1.97
  • IrfanView 1.98
    cpe:2.3:a:irfanview:irfanview:1.98
  • IrfanView 1.70
    cpe:2.3:a:irfanview:irfanview:1.70
  • cpe:2.3:a:irfanview:irfanview:1.75
    cpe:2.3:a:irfanview:irfanview:1.75
  • IrfanView 1.80
    cpe:2.3:a:irfanview:irfanview:1.80
  • IrfanView 1.85
    cpe:2.3:a:irfanview:irfanview:1.85
  • IrfanView 2.07
    cpe:2.3:a:irfanview:irfanview:2.07
  • IrfanView 2.10
    cpe:2.3:a:irfanview:irfanview:2.10
  • IrfanView 2.12
    cpe:2.3:a:irfanview:irfanview:2.12
  • IrfanView 2.15
    cpe:2.3:a:irfanview:irfanview:2.15
  • IrfanView 1.98a
    cpe:2.3:a:irfanview:irfanview:1.98a
  • IrfanView 1.99
    cpe:2.3:a:irfanview:irfanview:1.99
  • IrfanView 2.00
    cpe:2.3:a:irfanview:irfanview:2.00
  • IrfanView 2.05
    cpe:2.3:a:irfanview:irfanview:2.05
  • Irfanview 4.23
    cpe:2.3:a:irfanview:irfanview:4.23
  • IrfanView 3.10
    cpe:2.3:a:irfanview:irfanview:3.10
  • IrfanView 3.07
    cpe:2.3:a:irfanview:irfanview:3.07
  • IrfanView 3.15
    cpe:2.3:a:irfanview:irfanview:3.15
  • IrfanView 3.12
    cpe:2.3:a:irfanview:irfanview:3.12
  • IrfanView 3.20
    cpe:2.3:a:irfanview:irfanview:3.20
  • IrfanView 3.17
    cpe:2.3:a:irfanview:irfanview:3.17
  • IrfanView 3.25
    cpe:2.3:a:irfanview:irfanview:3.25
  • IrfanView 3.21
    cpe:2.3:a:irfanview:irfanview:3.21
  • IrfanView 3.33
    cpe:2.3:a:irfanview:irfanview:3.33
  • IrfanView 3.30
    cpe:2.3:a:irfanview:irfanview:3.30
  • IrfanView 3.36
    cpe:2.3:a:irfanview:irfanview:3.36
  • cpe:2.3:a:irfanview:irfanview:4.22
    cpe:2.3:a:irfanview:irfanview:4.22
  • IrfanView 3.35
    cpe:2.3:a:irfanview:irfanview:3.35
  • IrfanView 3.51
    cpe:2.3:a:irfanview:irfanview:3.51
  • IrfanView 3.50
    cpe:2.3:a:irfanview:irfanview:3.50
  • IrfanView 3.61
    cpe:2.3:a:irfanview:irfanview:3.61
  • IrfanView 3.60
    cpe:2.3:a:irfanview:irfanview:3.60
  • IrfanView 3.70
    cpe:2.3:a:irfanview:irfanview:3.70
  • IrfanView 3.75
    cpe:2.3:a:irfanview:irfanview:3.75
  • IrfanView 3.80
    cpe:2.3:a:irfanview:irfanview:3.80
  • IrfanView 3.85
    cpe:2.3:a:irfanview:irfanview:3.85
  • Irfanview 3.90
    cpe:2.3:a:irfanview:irfanview:3.90
  • Irfanview 3.91
    cpe:2.3:a:irfanview:irfanview:3.91
  • Irfanview 3.92
    cpe:2.3:a:irfanview:irfanview:3.92
  • Irfanview 3.95
    cpe:2.3:a:irfanview:irfanview:3.95
  • Irfanview 3.97
    cpe:2.3:a:irfanview:irfanview:3.97
  • Irfanview 4.20
    cpe:2.3:a:irfanview:irfanview:4.20
  • Irfanview 4.25
    cpe:2.3:a:irfanview:irfanview:4.25
  • Irfanview 4.27
    cpe:2.3:a:irfanview:irfanview:4.27
CVSS
Base: 6.8 (as of 23-01-2012 - 09:25)
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 JPEG2000. CVE-2012-0897. Local exploit for windows platform
id EDB-ID:19519
last seen 2016-02-02
modified 2012-07-01
published 2012-07-01
reporter metasploit
source https://www.exploit-db.com/download/19519/
title Irfanview JPEG2000 <= 4.3.2.0 - jp2 - Stack Buffer Overflow
metasploit via4
description This module exploits a stack-based buffer overflow vulnerability in version <= 4.3.2.0 of Irfanview's JPEG2000.dll plugin. This exploit has been tested on a specific version of irfanview (v4.3.2), although other versions may work also. The vulnerability is triggered via parsing an invalid qcd chunk structure and specifying a malformed qcd size and data. Payload delivery and vulnerability trigger can be executed in multiple ways. The user can double click the file, use the file dialog, open via the icon and drag/drop the file into Irfanview's window. An egg hunter is used for stability.
id MSF:EXPLOIT/WINDOWS/FILEFORMAT/IRFANVIEW_JPEG2000_BOF
last seen 2019-02-21
modified 2017-07-24
published 2012-06-29
reliability Normal
reporter Rapid7
source https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/fileformat/irfanview_jpeg2000_bof.rb
title Irfanview JPEG2000 jp2 Stack Buffer Overflow
nessus via4
  • NASL family Windows
    NASL id IRFANVIEW_JPEG2000_STACK_OVERFLOW.NASL
    description The version of the IrfanView JPEG-2000 plugin (JPEG2000.dll) was found to be less than 4.33. Such versions are affected by a stack-based buffer overflow vulnerability that can be triggered by tricking users into opening a .JP2 file with a specially crafted Quantization Default section. Successful exploitation may allow arbitrary code to be executed on the affected host subject to the privileges of the user.
    last seen 2019-02-21
    modified 2018-11-15
    plugin id 59846
    published 2012-07-05
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=59846
    title IrfanView JPEG-2000 Plugin Remote Stack-based Buffer Overflow
  • NASL family Windows
    NASL id VMWARE_PLAYER_6_0_6_VMSA_2015-0004.NASL
    description The version of VMware Player installed on the remote Windows host is 6.x prior to 6.0.6. It is, therefore, affected by multiple vulnerabilities : - An arbitrary code execution vulnerability exists due to a stack-based buffer overflow condition in the JPEG2000 plugin that is triggered when parsing a Quantization Default (QCD) marker segment in a JPEG2000 (JP2) image file. A remote attacker can exploit this, using a specially crafted image, to execute arbitrary code or cause a denial of service condition. (CVE-2012-0897) - Multiple unspecified remote code execution vulnerabilities exists in 'TPView.dll' and 'TPInt.dll' library files. (CVE-2015-2336, CVE-2015-2337) - The 'TPview.dll' and 'TPInt.dll' library files fail to properly handle memory allocation. A remote attacker can exploit this to cause a denial of service. (CVE-2015-2338, CVE-2015-2339, CVE-2015-2340) - A denial of service vulnerability exists due to improper validation of user-supplied input to a remote procedure call (RPC) command. An unauthenticated, remote attacker can exploit this, via a crafted command, to crash the host or guest operating systems. (CVE-2015-2341)
    last seen 2019-02-21
    modified 2018-08-06
    plugin id 84219
    published 2015-06-16
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=84219
    title VMware Player 6.x < 6.0.6 Multiple Vulnerabilities (VMSA-2015-0004)
  • NASL family Windows
    NASL id VMWARE_HORIZON_VIEW_CLIENT_VMSA_2015_0004.NASL
    description The version of VMware Horizon View Client installed on the remote host is 3.2.x prior to 3.2.1, 3.3.x prior to 3.4.0, or 5.x (with local mode) prior to 5.4.2. It is, therefore, affected by multiple vulnerabilities : - An arbitrary code execution vulnerability exists due to a stack-based buffer overflow condition in the JPEG2000 plugin that is triggered when parsing a Quantization Default (QCD) marker segment in a JPEG2000 (JP2) image file. A remote attacker can exploit this, using a specially crafted image, to execute arbitrary code or cause a denial of service condition. (CVE-2012-0897) - Multiple denial of service vulnerabilities exist due to improper memory allocation by the TPView.dll and TPInt.dll libraries. A remote attacker can exploit this to cause a denial of service condition. (CVE-2015-2338, CVE-2015-2339, CVE-2015-2340) - Multiple remote code execution vulnerabilities exist due to improper memory allocation by the TPView.dll and TPInt.dll libraries. A remote attacker can exploit this to execute arbitrary code. (CVE-2015-2336, CVE-2015-2337)
    last seen 2019-02-21
    modified 2018-11-15
    plugin id 84150
    published 2015-06-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=84150
    title VMware Horizon View Client 3.2.x < 3.2.1 / 3.3.x < 3.4.0 / or 5.x < 5.4.2 Multiple Vulnerabilities (VMSA-2015-0004)
  • NASL family Windows
    NASL id VMWARE_WORKSTATION_MULTIPLE_VMSA_2015_0004.NASL
    description The version of VMware Workstation installed on the remote Windows host is 10.x prior to 10.0.6 or 11.x prior to 11.1.1. It is, therefore, affected by multiple vulnerabilities : - An arbitrary code execution vulnerability exists due to a stack-based buffer overflow condition in the JPEG2000 plugin that is triggered when parsing a Quantization Default (QCD) marker segment in a JPEG2000 (JP2) image file. A remote attacker can exploit this, using a specially crafted image, to execute arbitrary code or cause a denial of service condition. (CVE-2012-0897) - Multiple unspecified remote code execution vulnerabilities exists in 'TPView.dll' and 'TPInt.dll' library files. (CVE-2015-2336, CVE-2015-2337) - The 'TPview.dll' and 'TPInt.dll' library files fail to properly handle memory allocation. A remote attacker can exploit this to cause a denial of service. (CVE-2015-2338, CVE-2015-2339, CVE-2015-2340)
    last seen 2019-02-21
    modified 2018-08-06
    plugin id 84223
    published 2015-06-16
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=84223
    title VMware Workstation 10.x < 10.0.6 / 11.x < 11.1.1 Multiple Vulnerabilities (VMSA-2015-0004) (Windows)
  • NASL family Windows
    NASL id VMWARE_PLAYER_7_1_1_VMSA_2015-0004.NASL
    description The version of VMware Player installed on the remote Windows host is 7.x prior to 7.1.1. It is, therefore, affected by multiple vulnerabilities : - An arbitrary code execution vulnerability exists due to a stack-based buffer overflow condition in the JPEG2000 plugin that is triggered when parsing a Quantization Default (QCD) marker segment in a JPEG2000 (JP2) image file. A remote attacker can exploit this, using a specially crafted image, to execute arbitrary code or cause a denial of service condition. (CVE-2012-0897) - Multiple unspecified remote code execution vulnerabilities exists in 'TPView.dll' and 'TPInt.dll' library files. (CVE-2015-2336, CVE-2015-2337) - The 'TPview.dll' and 'TPInt.dll' library files fail to properly handle memory allocation. A remote attacker can exploit this to cause a denial of service. (CVE-2015-2338, CVE-2015-2339, CVE-2015-2340)
    last seen 2019-02-21
    modified 2018-08-06
    plugin id 84220
    published 2015-06-16
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=84220
    title VMware Player 7.x < 7.1.1 Multiple Vulnerabilities (VMSA-2015-0004)
packetstorm via4
data source https://packetstormsecurity.com/files/download/114409/irfanview_jpeg2000_bof.rb.txt
id PACKETSTORM:114409
last seen 2016-12-05
published 2012-07-02
reporter Parvez Anwar
source https://packetstormsecurity.com/files/114409/Irfanview-JPEG2000-4.3.2.0-jp2-Stack-Buffer-Overflow.html
title Irfanview JPEG2000 4.3.2.0 jp2 Stack Buffer Overflow
refmap via4
bid 51426
confirm http://www.irfanview.com/history_old.htm
osvdb 78333
sectrack
  • 1032529
  • 1032530
secunia 47360
xf irfanview-qcd-bo(72398)
Last major update 30-12-2016 - 21:59
Published 20-01-2012 - 12:55
Last modified 28-08-2017 - 21:31
Back to Top