CVE-2020-12497: Phoenix Contact Automationworx PLCOpen XML File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability

Published Jul 1, 2020
·
Updated

PLCopen XML file parsing in Phoenix Contact PC Worx and PC Worx Express version 1.87 and earlier can lead to a stack-based overflow. Manipulated PC Worx projects could lead to a remote code execution due to insufficient input data validation.

Other sources

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 PLCOpen XML files. When parsing the 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.

ZDI

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.

ZDI

Affected Software

5 affected components
Phoenix Contact Automationworx
Phoenixcontact Pc Worx<1.87
Phoenixcontact Pc Worx Express<=1.87
Phoenix Contact PC Worx version 1.87 and prior
Phoenix Contact PC Worx Express version 1.87 and prior

Remediation

Information

With the next version of Automation Worx Software Suite (Version > 1.87) a sharpened input data validation with respect to buffer size and description of size and number of objects referenced in a file will be implemented.

Event History

Jul 1, 2020
CVE Published
via MITRE·03:52 PM
Data Sourced
via MITRE·03:52 PM
RemedyDescriptionSeverityWeakness
Aug 4, 2024
Advisory Published
via ZDI·12:04 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID of this vulnerability?

The vulnerability ID is CVE-2020-12497.

2

What is the severity of CVE-2020-12497?

The severity of CVE-2020-12497 is high with a severity value of 7.8.

3

Which software is affected by CVE-2020-12497?

Phoenix Contact Automationworx versions up to exclusive 1.87 and Phoenix Contact PC Worx versions up to inclusive 1.87 are affected.

4

How can this vulnerability be exploited?

This vulnerability can be exploited by remote attackers who can execute arbitrary code on affected installations of Phoenix Contact Automationworx.

5

Is user interaction required to exploit CVE-2020-12497?

Yes, user interaction is required to exploit this vulnerability. The target must visit a malicious page or open a malicious file.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203