CVE-2026-118498

Improper Limitation of a Pathname to a Restricted Directory in CODESYS Automation Server Connector

Published Nov 17, 2026 CVSS 4.0 · 7.5 High EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability in the CODESYS Automation Server Connector allows an attacker to supply file names that bypass path traversal checks, enabling the creation or modification of files outside the intended directory. An attacker who can trick a user into trusting a malicious Automation Server, or who can intercept communication between the user and the server, can write arbitrary files to the engineering workstation. If the attacker places an executable or modifies legitimate system files, they may achieve arbitrary code execution running under the user’s permissions.

Affected Systems

CODESYS products that include the Automation Server Connector are affected. No specific product versions are listed in the advisory, so any installation that contains the connector module should be considered potentially vulnerable.

Risk and Exploitability

The score of 7.5 indicates a high severity vulnerability, but the exploit probability (EPSS) is not publicly available. The vulnerability is not part of the CISA KEV catalog, suggesting no known widespread exploitation at this time. Nevertheless, the attack vector likely requires some degree of social engineering or a man‑in‑the‑middle position to present a malicious Automation Server to a user. Once an attacker controls a file write location, they can achieve remote code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Immediately update the Automation Server Connector to the latest vendor patch or upgrade to a version that implements correct path validation.
  • If a patch is not available, disable the connector or configure it to reject any file writes that are not in a trusted directory.
  • Apply network segmentation or firewall rules to restrict unauthenticated or unexpected connections to the Automation Server Connector, mitigating the possibility of a man‑in‑the‑middle attack.
  • Monitor system logs for unexpected file creation or modification outside the intended directories to detect potential exploitation attempts.

Generated by OpenCVE AI on November 17, 2026 at 10:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title Improper Limitation of a Pathname to a Restricted Directory in CODESYS Automation Server Connector
First Time appeared Codesys
Codesys codesys Automation Server Connector
Weaknesses CWE-22
CPEs cpe:2.3:a:codesys:codesys_automation_server_connector:*:*:*:*:*:*:*:*
Vendors & Products Codesys
Codesys codesys Automation Server Connector
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
CERTVDE
Published
Updated
Nov 17, 2026, 9:10 AM
Reserved
Oct 28, 2026, 12:56 PM
Status
Received
Published
Nov 17, 2026, 10:17 AM
Modified
Nov 17, 2026, 10:17 AM