CVE-2026-71268 OpenPLC Runtime v3 Path Traversal in Structured Text FILE Directive Leading to Arbitrary File Write

Critical 9.9 Published Updated

Attackers can write arbitrary files via path traversal in Structured Text directives, potentially leading to code execution on OpenPLC Runtime servers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-71268?

CVE-2026-71268 is a critical path traversal vulnerability in thiagoralves OpenPLC_v3, published on 5 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-22

Which versions are affected by CVE-2026-71268?

How do I fix CVE-2026-71268?

No fix has been published for CVE-2026-71268 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-71268 being exploited?

There is no known exploitation of CVE-2026-71268 in the wild and no public exploit code.

Sources

Also known as GHSA-qprq-675r-82h6.

Is CVE-2026-71268 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free