CVE-2026-118498: Improper Limitation of a Pathname to a Restricted Directory in CODESYS Automation Server Connector
The CODESYS Automation Server Connector uses server-supplied file names without sufficient path traversal checks. An unauthenticated remote attacker controlling a malicious Automation Server and tricking a user to trust it, or performing a man-in-the-middle attack on a trusted communication channel, can exploit this vulnerability to write attacker-controlled files to arbitrary locations on the engineering workstation and subsequently achieve arbitrary code execution with user privileges.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Engineering workstations running the CODESYS Automation Server Connector are exposed when a user is induced to trust a malicious Automation Server, or when an attacker can perform a man-in-the-middle attack against a trusted communication channel.
Does an attacker need an account or direct access to the workstation?
No account or prior privileges are required. Exploitation requires the attacker to control a malicious Automation Server and convince a user to trust it, or to intercept and manipulate a trusted communication channel; user interaction is required.
What is the impact if exploitation succeeds?
The attacker can write controlled files to arbitrary locations on the engineering workstation. This can subsequently result in arbitrary code execution with the privileges of the affected user.