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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| openplcproject openplc_v3_firmware | 2024-03-09 | NVD |
Classification
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
| https://github.com/unicorn-hyh/CVE-2026-31156 | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31156 changed 2026-07-05 | CVE Terms of Use |
| NVD | CVE-2026-31156 changed 2026-10-19 | Public domain |