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

- Severity: Critical 9.9 (CVSS:3.1, scored by TuranSec) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-08-05T12:26:15.867Z
- Modified: 2026-10-24T15:10:00.190Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: TuranSec

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

(As written by CVE List.)

## Affected

- thiagoralves OpenPLC_v3: up to *

## References

- <https://github.com/thiagoralves/OpenPLC_v3> (third-party-advisory)
- <https://github.com/thiagoralves/OpenPLC_v3/blob/master/webserver/openplc.py> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-71268](https://www.cve.org/CVERecord?id=CVE-2026-71268), CVE Terms of Use, modified 2026-08-10
- NVD: [CVE-2026-71268](https://nvd.nist.gov/vuln/detail/CVE-2026-71268), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-71268 · Whole record: https://cve.day/CVE-2026-71268.json · Rebuilt by cve.day 2026-11-25T22:59:31.103Z
