PT-2026-68141 · Unknown · Openplc Runtime
CVSS v3.1
9.9
Critical
| Vector | AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
OpenPLC Runtime version 3
Description
The
compile program() function in webserver/openplc.py fails to validate the file path variable when parsing (*FILE:path content*) directives from uploaded Structured Text (.st) program files. This allows an attacker to use path traversal sequences to write arbitrary content to any filesystem path outside the intended ./core directory, leading to remote code execution through mechanisms such as cron jobs or SSH authorized keys. The software also contains hardcoded default credentials (openplc:openplc), which facilitates exploitation.Recommendations
Update OpenPLC Runtime version 3 to a version where the
compile program() function properly invokes the validate file path() function to ensure the file path remains within the intended directory.
Change the default credentials from openplc:openplc to unique, strong passwords.Fix
RCE
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Openplc Runtime