Skip to main content
EPSS 0.4%top 70%

CVE-2026-71268: CWE-22 in thiagoralves OpenPLC_v3

0
Critical
Published: 08/05/2026 (08/05/2026, 12:26:15 UTC)
Source: CVE Database V5
Vendor/Project: thiagoralves
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected software

thiagoralves

OpenPLC_v3

Affected versions
>=0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 14:32:32 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses