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.
Metrics
Affected Vendors & Products
References
| Link | Providers |
|---|---|
| http://openplc.com |
|
| https://github.com/unicorn-hyh/CVE-2026-31156 |
|
History
Wed, 13 May 2026 17:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Title | OpenPLC v3 Path Injection Leading to Arbitrary File Read via Command-Line Parameters | |
| Weaknesses | CWE-20 CWE-22 |
Wed, 13 May 2026 15:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| References |
|
Status: PUBLISHED
Assigner: mitre
Published:
Updated: 2026-05-13T14:38:56.849Z
Reserved: 2026-03-09T00:00:00.000Z
Link: CVE-2026-31156
No data.
Status : Awaiting Analysis
Published: 2026-05-13T16:16:38.763
Modified: 2026-05-13T16:27:36.223
Link: CVE-2026-31156
No data.
OpenCVE Enrichment
Updated: 2026-05-13T17:00:14Z