Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach network-exposed OpenPLC web UI
-
DeliveryAuthenticate with default openplc:openplc creds
-
ExploitUpload .st with (*FILE:../../../ traversal directive
-
Executioncompile_program writes outside ./core
-
PersistDrop cron job or authorized_keys
-
ImpactRuntime user executes payload (RCE)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires network reach to the OpenPLC v3 web management interface and an authenticated web session (CVSS PR:L) - commonly satisfied by the hardcoded default credentials openplc:openplc. The concrete trigger is uploading a .st Structured Text file containing a |
| Impact | The supplied CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H (9.9) is internally consistent with the description: network-reachable web upload, low complexity, low privilege (an authenticated web session), scope change from web app into the host OS, and full CIA loss from arbitrary file write to RCE. The PR:L requirement is real - a login is needed - but the hardcoded default credentials (openplc:openplc) mean that bar is frequently zero in practice, so effective risk trends toward unauthenticated for un-hardened deployments. No EPSS score, SSVC decision, POC, or KEV entry was provided; there is therefore no public exploit identified at time of analysis and no evidence of active exploitation, which tempers urgency relative to the raw 9.9. The dominant limiting factor is real-world prevalence: OpenPLC is a niche ICS/education product, so this is a genuinely high-impact bug on a comparatively small install base rather than an internet-wide emergency. |
| Exploit ScenarioDerived | An attacker reaches the OpenPLC web UI over the network, logs in using the shipped default openplc:openplc credentials, and uploads a Structured Text program containing a directive like |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Arbitrary file write leading to remote code execution in OpenPLC Runtime v3 lets a low-privileged web user upload a crafted Structured Text (.st) program whose embedded (*FILE:path content*) directive escapes the intended ./core directory via path traversal. Because the compile_program() sink never calls the project's own validate_file_path() guard, an attacker can plant files such as a cron job or SSH authorized_keys to gain code execution as the runtime user. Exploitation is further eased by OpenPLC's shipped default credentials (openplc:openplc); no public exploit identified at time of analysis and the issue is not in CISA KEV.
RemediationAI
No vendor-released patch identified at time of analysis and no tagged fixed version is provided, so apply compensating controls now. First, immediately change the default openplc:openplc credentials to strong unique values, since default creds collapse the PR:L barrier. Second, restrict network access to the OpenPLC web interface (bind to localhost or place it behind a VPN/allowlisted firewall) so only trusted operators can reach the .st upload endpoint; the trade-off is loss of remote-management convenience. Third, until an upstream fix lands, disable or gate the program-upload/compile feature for untrusted users and run the runtime under a low-privilege, sandboxed account (no cron write access, non-writable authorized_keys) to blunt the file-write-to-RCE path; the trade-off is reduced ability to update ladder/ST logic. Track the upstream repository (https://github.com/thiagoralves/OpenPLC_v3) for a commit that wires the existing validate_file_path() check into compile_program(), and rebuild from that fix once published.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenPLC Runtime is an open-source soft-PLC / SCADA runtime that exposes a Flask-based web management interface (webserver/openplc.py) for uploading and compiling IEC 61131-3 Structured Text programs. The compile_program() function parses proprietary (*FILE:path content*) directives out of the uploaded .st file and writes the referenced content to os.path.join('./core', file_path). This is a textbook CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) flaw: os.path.join accepts an absolute or ../-laden file_path, so a value like ../../../etc/cron.d/x collapses the base prefix and resolves outside ./core. Notably a hardening routine, validate_file_path(), already exists in webserver/credentials.py but is never wired into this code path, leaving the sink completely unprotected.
Know when Openplc V3 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Network web upload (AV:N/AC:L), an authenticated session is needed (PR:L, eased by default creds), and arbitrary file write escapes the app into the host OS (S:C) for full RCE (C/I/A:H).
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
DescriptionCVE.org
OpenPLC Runtime v3's compile_program() function (webserver/openplc.py) parses (*FILE:path content*) directives from uploaded Structured Text (.st) program files and writes the referenced content to os.path.join('./core', file_path) with no validation that file_path stays within the ./core directory. A crafted .st file containing a directive such as (*FILE:../../../etc/cron.d/x * * * * root <command>*) writes attacker-controlled content to an arbitrary filesystem path, enabling remote code execution (e.g. via cron or SSH authorized_keys). A path-validation function, validate_file_path(), exists elsewhere in the codebase (webserver/credentials.py) but is never invoked from compile_program(), leaving the sink unprotected. OpenPLC additionally ships with hardcoded default credentials (openplc:openplc), lowering the practical bar for exploitation.
Executive ViewAI
OpenPLC Runtime v3 contains a critical remote code execution vulnerability (CVSS 9.9) enabling authenticated users to execute arbitrary code with runtime process privileges through malicious program uploads. No vendor-released patch is currently available; organizations deploying OpenPLC in industrial automation or control systems must implement immediate protective controls.
Restrict OpenPLC web interface access to authorized administrative networks via firewall rules; change all default credentials and enforce strong password policies; disable program upload functionality where operationally feasible or reject .st files containing FILE directives; segment OpenPLC systems from critical production networks; monitor process execution and child process creation for anomalies; maintain offline backups of system configurations.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Openplc V3
View allAuthentication bypass in OpenPLC_V3 allows unauthenticated remote attackers to gain unauthorized system access through i
Plaintext credential storage in OpenPLC_V3 enables network-based attackers to retrieve authentication credentials withou
Denial of service and heap corruption in OpenPLC_v3 lets an authenticated web-interface user overflow the 100-byte MB_de
Authorization bypass in OpenPLC_V3 REST API allows authenticated low-privilege users to delete administrator accounts or
EUVD-2026-53353
GHSA-qprq-675r-82h6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB