CVE-2026-31156
JSON

6.5medium

A path injection vulnerability exists in OpenPLC v3 (2c82b0e79c53f8c1f1458eee15fec173400d6e1a) as the binary program compiled from gluegene…

Severity
6.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.39% (higher than 34% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
openplcproject openplc_v3_firmware2024-03-09NVD

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31156 changed 2026-07-05CVE Terms of Use
NVDCVE-2026-31156 changed 2026-10-19Public domain