CVE-2021-25178: Siemens JT2Go DWG File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability
An issue was discovered in Open Design Alliance Drawings SDK before 2021.11. A stack-based buffer overflow vulnerability exists when the recover operation is run with malformed .DXF and .DWG files. This can allow attackers to cause a crash potentially enabling a denial of service attack (Crash, Exit, or Restart) or possible code execution.
Other sources
This vulnerability allows remote attackers to disclose sensitive information on affected installations of Siemens JT2Go. 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 read past the end of an allocated buffer. An attacker can leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the current process.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Siemens JT2Go. 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 DXF and DWG files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Siemens JT2Go. 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 processing of DWG files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2021-25178?
The severity of CVE-2021-25178 is high with a CVSS score of 7.8.
How can remote attackers exploit CVE-2021-25178?
Remote attackers can exploit CVE-2021-25178 by having the target visit a malicious page or open a malicious file that triggers the vulnerability.
Which software is affected by CVE-2021-25178?
Siemens JT2Go, Opendesign Drawings Software Development Kit, Siemens COMOS, and Siemens Teamcenter Visualization are affected by CVE-2021-25178.
How can I fix CVE-2021-25178?
Apply the latest security updates or patches provided by Siemens to mitigate the vulnerability in the affected software.
Are there any references for CVE-2021-25178?
Yes, you can refer to the following links for more information: [US-CERT Advisory](https://us-cert.cisa.gov/ics/advisories/icsa-21-040-06), [Zero Day Initiative Advisory 1](https://www.zerodayinitiative.com/advisories/ZDI-21-240/), [Zero Day Initiative Advisory 2](https://www.zerodayinitiative.com/advisories/ZDI-21-243/).