CVE-2026-71268: CWE-22 in thiagoralves OpenPLC_v3
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.
AI Analysis
Technical Summary
OpenPLC Runtime v3's compile_program function parses directives from uploaded Structured Text (.st) program files and writes referenced content without validating that the file_path stays within the ./core directory. The codebase includes a validate_file_path function in webserver/credentials.py, but this function is never invoked by compile_program, resulting in an unprotected sink vulnerable to directory traversal (CWE-22). This allows an attacker with low privileges to write files outside the intended directory, potentially leading to full system compromise. The vulnerability has a CVSS 3.1 score of 9.9, indicating critical impact on confidentiality, integrity, and availability.
Potential Impact
An attacker with low privileges can exploit this vulnerability to write files outside the intended directory, potentially overwriting or creating arbitrary files on the system. This can lead to complete system compromise, including unauthorized code execution, data corruption, or denial of service. The vulnerability affects confidentiality, integrity, and availability of the system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the vulnerable compile_program function with untrusted input or restrict file upload capabilities. Monitor vendor channels for official patches or updates addressing this issue.
CVE-2026-71268: CWE-22 in thiagoralves OpenPLC_v3
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.
CVSS v3.1
Score 9.9critical
Affected software
thiagoralves
OpenPLC_v3
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
OpenPLC Runtime v3's compile_program function parses directives from uploaded Structured Text (.st) program files and writes referenced content without validating that the file_path stays within the ./core directory. The codebase includes a validate_file_path function in webserver/credentials.py, but this function is never invoked by compile_program, resulting in an unprotected sink vulnerable to directory traversal (CWE-22). This allows an attacker with low privileges to write files outside the intended directory, potentially leading to full system compromise. The vulnerability has a CVSS 3.1 score of 9.9, indicating critical impact on confidentiality, integrity, and availability.
Potential Impact
An attacker with low privileges can exploit this vulnerability to write files outside the intended directory, potentially overwriting or creating arbitrary files on the system. This can lead to complete system compromise, including unauthorized code execution, data corruption, or denial of service. The vulnerability affects confidentiality, integrity, and availability of the system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the vulnerable compile_program function with untrusted input or restrict file upload capabilities. Monitor vendor channels for official patches or updates addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T12:23:34.967Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7336e4bf8831d539ed9141
Added to database: 08/05/2026, 13:13:08 UTC
Last enriched: 08/12/2026, 14:32:32 UTC
Last updated: 09/17/2026, 22:01:38 UTC
Views: 45
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.