Skip to main content

OpenPLC Runtime CVE-2026-71268

| EUVDEUVD-2026-53353 CRITICAL
Path Traversal (CWE-22)
2026-08-05 TuranSec GHSA-qprq-675r-82h6
9.9
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach network-exposed OpenPLC web UI
  2. Delivery
    Authenticate with default openplc:openplc creds
  3. Exploit
    Upload .st with (*FILE:../../../ traversal directive
  4. Execution
    compile_program writes outside ./core
  5. Persist
    Drop cron job or authorized_keys
  6. Impact
    Runtime 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 (*FILE:path content*) directive whose path uses traversal sequences (e.g., ../../../etc/cron.d/x) so os.path.join('./core', file_path) resolves outside ./core; the target path must be writable by the runtime user for RCE (cron.d, an SSH authorized_keys location, or another auto-executed file). Limiting factors: an account/login is required unless default creds remain, the web uploader must be network-exposed, and RCE via the cron/authorized_keys route depends on the runtime running with sufficient filesystem privileges and those daemons being present.

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 (*FILE:../../../etc/cron.d/x * * * * root <command>*). The traversal writes an attacker-controlled cron entry (or an SSH authorized_keys file) outside ./core, and OpenPLC's runtime user executes the payload, yielding remote code execution. No public exploit was identified at time of analysis, but the low attack complexity and default credentials make weaponization straightforward.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

OpenPLC_v3 0 ≤*

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

Vendor (TuranSec) PRIMARY 9.9 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.9 CRITICAL

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating 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

EPSS Score
0.6%
Top 56% exploitable
Prevalence
Low
niche open-source ICS/education PLC runtime, limited enterprise footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.6%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

51
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy