ZDI-CAN-26127: ZDI-25-507: IrfanView CADImage Plugin DWG File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability
This vulnerability allows remote attackers to execute arbitrary code on affected installations of IrfanView CADImage Plugin. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of DWG files. The issue results from the lack of proper validation of user-supplied data, which can result in a write past the end of an allocated buffer. An attacker can leverage this vulnerability to execute code in the context of the current process.
Other sources
This vulnerability allows remote attackers to execute arbitrary code on affected installations of IrfanView CADImage Plugin. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The ZDI has assigned a CVSS rating of 7.8. The following CVEs are assigned: CVE-2025-7258.
— ZDI
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch ZDI-25-507 - Compensating control
Since exploitation requires user interaction (victim must visit a malicious page or open a malicious file), restrict users from opening untrusted CAD files and visiting untrusted web content, and ensure users can only access trusted sites/resources.
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Users of affected IrfanView CADImage Plugin installations are exposed when they visit a malicious page or open a malicious DWG file. Exploitation requires user interaction.
What does an attacker need to do to exploit this issue?
An attacker needs to induce the target to process attacker-controlled DWG content, either through a malicious file or a malicious page. No attacker privileges are required according to the supplied CVSS vector.
What is the likely impact of successful exploitation?
Successful exploitation can allow arbitrary code execution in the context of the current process. The supplied CVSS vector indicates potential high impact to confidentiality, integrity, and availability.