CVE-2026-31156
Last modified
CVE-2026-31156 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.41% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Openplcproject | Openplc V3 Firmware | 2024-03-09 |
References
- http://openplc.comProduct
- https://github.com/unicorn-hyh/CVE-2026-31156Exploit, Third Party Advisory
- https://github.com/unicorn-hyh/CVE-2026-31156Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-31156?
How severe is CVE-2026-31156?
How do I fix CVE-2026-31156?
Are you affected by CVE-2026-31156?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
