CVE-2021-29360

7.8 HIGH

📋 TL;DR

This buffer overflow vulnerability in IrfanView allows attackers to execute arbitrary code by tricking users into opening a specially crafted RLE image file. The vulnerability affects IrfanView users who open untrusted image files, potentially leading to full system compromise.

💻 Affected Systems

Products:
  • IrfanView
Versions: 4.57 and potentially earlier versions (specific to FORMATS!Read_Utah_RLE function)
Operating Systems: Windows
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability triggers when IrfanView processes RLE (Run Length Encoded) image files. All default installations that can open RLE files are vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution with SYSTEM/administrator privileges leading to complete system takeover, data theft, ransomware deployment, or lateral movement within the network.

🟠

Likely Case

Local privilege escalation or arbitrary code execution in the context of the current user when opening a malicious RLE file, potentially leading to malware installation or data exfiltration.

🟢

If Mitigated

Limited impact with proper application sandboxing, user running with minimal privileges, and network segmentation preventing lateral movement.

🌐 Internet-Facing: LOW - IrfanView is primarily a desktop image viewer, not typically exposed directly to internet traffic.
🏢 Internal Only: MEDIUM - Risk exists when users open untrusted RLE files from internal sources like email attachments, shared drives, or downloads.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires user interaction to open a malicious file. Public research and proof-of-concept code exists in the provided GitHub repository.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: IrfanView 4.58 or later

Vendor Advisory: https://www.irfanview.com/main_history.htm

Restart Required: No

Instructions:

1. Download latest IrfanView from official website. 2. Run installer. 3. Follow installation prompts. 4. Verify version is 4.58 or higher.

🔧 Temporary Workarounds

Disable RLE file association

windows

Remove IrfanView as default handler for .rle files to prevent automatic exploitation

Control Panel > Default Programs > Set Associations > Find .rle > Change program

Application control policy

windows

Block execution of IrfanView via application whitelisting or endpoint protection

🧯 If You Can't Patch

  • Implement application sandboxing to limit IrfanView's system access
  • Educate users to never open RLE files from untrusted sources and use alternative image viewers

🔍 How to Verify

Check if Vulnerable:

Check IrfanView version via Help > About. If version is 4.57 or earlier, system is vulnerable.

Check Version:

irfanview.exe /?

Verify Fix Applied:

Verify IrfanView version is 4.58 or later in Help > About dialog.

📡 Detection & Monitoring

Log Indicators:

  • IrfanView crash logs with exception in FORMATS module
  • Windows Application logs showing IrfanView crashes

Network Indicators:

  • Unusual outbound connections from IrfanView process
  • Downloads of .rle files followed by IrfanView execution

SIEM Query:

process_name:"i_view32.exe" OR process_name:"i_view64.exe" AND (file_extension:".rle" OR crash_detected:true)

🔗 References

📤 Share & Export