{"id":"CVE-2026-71268","state":"PUBLISHED","title":"OpenPLC Runtime v3 Path Traversal in Structured Text FILE Directive Leading to Arbitrary File Write","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.","publishedAt":"2026-08-05T12:26:15.867Z","updatedAt":"2026-08-10T11:46:39.944Z","severity":{"score":9.9,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"TuranSec"},"assigner":"TuranSec","products":["thiagoralves OpenPLC_v3"],"affected":[{"vendor":"thiagoralves","product":"OpenPLC_v3","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"*","versionType":"custom"}],"programFiles":["webserver/openplc.py"]}],"references":["https://github.com/thiagoralves/OpenPLC_v3","https://github.com/thiagoralves/OpenPLC_v3/blob/master/webserver/openplc.py"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/71xxx/CVE-2026-71268.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-71268","state":"PUBLISHED","datePublished":"2026-08-05T12:26:15.867Z","dateUpdated":"2026-08-10T11:46:39.944Z","assignerShortName":"TuranSec","assignerOrgId":"309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c","dateReserved":"2026-08-05T12:23:34.967Z"},"containers":{"cna":{"title":"OpenPLC Runtime v3 Path Traversal in Structured Text FILE Directive Leading to Arbitrary File Write","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"thiagoralves","product":"OpenPLC_v3","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"*","versionType":"custom"}],"programFiles":["webserver/openplc.py"]}],"references":[{"url":"https://github.com/thiagoralves/OpenPLC_v3","tags":["third-party-advisory"]},{"url":"https://github.com/thiagoralves/OpenPLC_v3/blob/master/webserver/openplc.py","tags":["third-party-advisory"]}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":9.9,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22","type":"CWE"}]}],"providerMetadata":{"shortName":"TuranSec","orgId":"309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c","dateUpdated":"2026-08-10T11:46:39.944Z"},"credits":[{"lang":"en","value":"Alibek Baxtiyorov","type":"finder"}],"source":{"discovery":"EXTERNAL"},"datePublic":"2026-08-05T12:26:15.867Z"},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-05T15:41:39.300095Z","id":"CVE-2026-71268","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-05T15:41:47.330Z"}}]}}}