Advisory Details

March 31st, 2021

Phoenix Contact Automationworx XML File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability

ZDI-21-398
ZDI-CAN-12244

CVE ID CVE-2020-12497
CVSS SCORE 7.8, AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AFFECTED VENDORS Phoenix Contact
AFFECTED PRODUCTS Automationworx
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Phoenix Contact Automationworx. 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 XML files. When parsing the name attribute of a pou element, the process does not properly validate 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.

ADDITIONAL DETAILS

https://us-cert.cisa.gov/ics/advisories/icsa-20-191-01
https://cert.vde.com/en-us/advisories/vde-2020-023


DISCLOSURE TIMELINE
  • 2020-12-16 - Vulnerability reported to vendor
  • 2021-03-31 - Coordinated public release of advisory
  • 2021-04-16 - Advisory Updated
CREDIT Natnael Samson (@NattiSamson)
BACK TO ADVISORIES