{"id":"CVE-2026-31156","aliases":["CVE-2026-31156"],"related":[],"kind":"vulnerability","state":"published","title":"A path injection vulnerability exists in OpenPLC v3 (2c82b0e79c53f8c1f1458eee15fec173400d6e1a) as the binary program compiled from gluegene…","summary":"A path injection vulnerability exists in OpenPLC v3 (2c82b0e79c53f8c1f1458eee15fec173400d6e1a) as the binary program compiled from glue_generator.cpp does not perform any validation on the file path parameters passed via the command line. The user-controlled input parameters are directly passed to the underlying file operation functions (fopen/ifstream/ofstream) for file reading and writing. An attacker can exploit this vulnerability by constructing a malicious path to read arbitrary readable files.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A path injection vulnerability exists in OpenPLC v3 (2c82b0e79c53f8c1f1458eee15fec173400d6e1a) as the binary program compiled from glue_generator.cpp does not perform any validation on the file path parameters passed via the command line. The user-controlled input parameters are directly passed to the underlying file operation functions (fopen/ifstream/ofstream) for file reading and writing. An attacker can exploit this vulnerability by constructing a malicious path to read arbitrary readable files.","source":"cvelist"},{"lang":"es","text":"Existe una vulnerabilidad de inyección de ruta en OpenPLC v3 (2c82b0e79c53f8c1f1458eee15fec173400d6e1a) ya que el programa binario compilado de glue_generator.cpp no realiza ninguna validación en los parámetros de ruta de archivo pasados a través de la línea de comandos. Los parámetros de entrada controlados por el usuario se pasan directamente a las funciones subyacentes de operación de archivos (fopen/ifstream/ofstream) para lectura y escritura de archivos. Un atacante puede explotar esta vulnerabilidad construyendo una ruta maliciosa para leer archivos arbitrarios legibles.","source":"nvd"}],"published":"2026-05-13T00:00:00.000Z","modified":"2026-10-19T22:10:00.130Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","version":"2024-03-09"}],"vendor":"openplcproject","product":"openplc_v3_firmware","cpe":"cpe:2.3:o:openplcproject:openplc_v3_firmware:2024-03-09:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/unicorn-hyh/CVE-2026-31156","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-14T13:56:11.488Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31156","url":"https://www.cve.org/CVERecord?id=CVE-2026-31156","licence":"CVE Terms of Use","modified":"2026-07-05T01:35:15.469Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31156","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31156","licence":"Public domain","modified":"2026-10-19T22:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:21.547Z","epss":{"score":0.00387,"percentile":0.34942,"date":"2026-12-01T12:00:22.000Z"}}