Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Irfanview JPEG2000 jp2 Stack Buffer Overflow

Disclosed
Jan 16, 2012
Created
May 30, 2018

Description

This module exploits a stack-based buffer overflow vulnerability in
version 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.

Authors

Platform

Windows

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/windows/fileformat/irfanview_jpeg2000_bof
msf exploit(irfanview_jpeg2000_bof) > show targets
...targets...
msf exploit(irfanview_jpeg2000_bof) > set TARGET < target-id >
msf exploit(irfanview_jpeg2000_bof) > show options
...show and set options...
msf exploit(irfanview_jpeg2000_bof) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.