CVE-2026-31156 Details
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.
A path injection vulnerability has been identified in OpenPLC version 3, specifically in the binary program compiled from glue_generator.cpp. The vulnerability arises because the program does not validate file path parameters provided via the command line. This lack of validation allows attackers to construct malicious paths that the program will follow to read arbitrary files. The user-controlled input is directly passed to file operation functions for reading and writing, creating a risk of unauthorized information disclosure.
Users are advised to validate and sanitize all file path inputs, restrict file access to trusted directories, and implement measures to prevent the reading of sensitive system files.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/unicorn-hyh/CVE-2026-31156 | CISA-ADP | ExploitThird Party Advisory |
| https://github.com/unicorn-hyh/CVE-2026-31156 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| openplcproject openplc v3 firmware | 2024-03-09 |
CPE
Remediation
| |
| openplcproject openplc v3 | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 5, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 26, 2026 | Initial Analysis | [email protected] |
| May 14, 2026 | CVE Modified | CISA-ADP |
| May 13, 2026 | New CVE Received | [email protected] |