OpenPLC v3 Path Injection Allows Arbitrary File Read via Command-Line Parameters
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | n/a | affected |
|
Configuration 1 [-]
| AND |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Openplc | Openplc |
|
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.387% probability within 30 days)
| Link | Providers |
|---|---|
| https://github.com/unicorn-hyh/CVE-2026-31156 |
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Openplcproject
Openplcproject openplc V3 Openplcproject openplc V3 Firmware |
|
| CPEs | cpe:2.3:h:openplcproject:openplc_v3:-:*:*:*:*:*:*:* cpe:2.3:o:openplcproject:openplc_v3_firmware:2024-03-09:*:*:*:*:*:*:* |
|
| Vendors & Products |
Openplcproject
Openplcproject openplc V3 Openplcproject openplc V3 Firmware |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Openplc
Openplc openplc |
|
| Vendors & Products |
Openplc
Openplc openplc |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | OpenPLC v3 Path Injection Allows Arbitrary File Read via Command-Line Parameters |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | OpenPLC v3 Path Injection Leading to Arbitrary File Read via Command-Line Parameters | |
| Weaknesses | CWE-20 |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Title | OpenPLC v3 Path Injection Leading to Arbitrary File Read via Command-Line Parameters | |
| Weaknesses | CWE-20 CWE-22 |
| 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 |
|