CVE-2026-71268: OpenPLC Runtime - Path Traversal & Remote Code Execution
- Cve: CVE-2026-71268
- Name: OpenPLC Runtime - Path Traversal & Remote Code Execution
- Description: OpenPLC Runtime v3's compile_program function (webserver/openplc.py) parses directives from uploaded Structured Text (.st) program files and writes the referenced content to with no validation that file_path stays within the ./core directory. 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.
- Impact: Remote attackers can write files to arbitrary paths, enabling remote code execution and full system compromise.
- Remediation: Update to a version that invokes proper path validation in compile_program() or apply patches to validate file paths; otherwise, update to the latest version.
- Vulnerability type: path_traversal
- Vulnerability impact: remote_code_execution, file_system_write
- Requirement type: logged_in
- Requirements: Attacker needs valid credentials due to hardcoded default credentials
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.9
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Epss score: 0.0058
- Epss percentile: 0.48632
- Assignee: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
- Published at: 2026-08-05T13:24:51Z
- Age in days: 111
- Modified at: 2026-10-24T15:10:00Z
- References total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-71268
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/thiagoralves/OpenPLC_v3 | nvd | |
| https://github.com/thiagoralves/OpenPLC_v3/blob/master/webserver/openplc.py | nvd |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts