{"id":"CVE-2026-71268","aliases":["CVE-2026-71268"],"related":[],"kind":"vulnerability","state":"published","title":"OpenPLC Runtime v3 Path Traversal in Structured Text FILE Directive Leading to Arbitrary File Write","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"La función compile_program() de OpenPLC Runtime v3 (webserver/openplc.py) analiza las directivas “(FILE:path content)” de los archivos de programa Structured Text (.st) cargados y escribe el contenido referenciado en “os.path.join(’./core’, file_path)” sin validación de que file_path permanezca dentro del directorio ./core. Un archivo .st manipulado que contiene una directiva como “(FILE:.. / .. / .. / etc/cron.d/x * * * * root [command]*)” escribe contenido controlado por el atacante en una ruta arbitraria del sistema de archivos, lo que permite la ejecución remota de código (por ejemplo, a través de cron o de las claves autorizadas de SSH). Una función de validación de rutas, validate_file_path(), existe en otra parte de la base de código (webserver/credentials.py) pero nunca se invoca desde compile_program(), dejando el ’sink’ desprotegido. OpenPLC se distribuye además con credenciales predeterminadas codificadas (openplc:openplc), lo que reduce la barrera práctica para la explotación.","source":"nvd"}],"published":"2026-08-05T12:26:15.867Z","modified":"2026-10-24T15:10:00.190Z","severity":{"scorer":"TuranSec","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"TuranSec","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"*","status":"affected"}],"vendor":"thiagoralves","product":"OpenPLC_v3","source":"cvelist"}],"references":[{"url":"https://github.com/thiagoralves/OpenPLC_v3","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/thiagoralves/OpenPLC_v3/blob/master/webserver/openplc.py","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Alibek Baxtiyorov"],"assigner":"TuranSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-05T15:41:39.300Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-71268","url":"https://www.cve.org/CVERecord?id=CVE-2026-71268","licence":"CVE Terms of Use","modified":"2026-08-10T11:46:39.944Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-71268","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71268","licence":"Public domain","modified":"2026-10-24T15:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:31.103Z","epss":{"score":0.00365,"percentile":0.32382,"date":"2026-12-01T12:00:22.000Z"}}