Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- http://openplc.com
- https://github.com/unicorn-hyh/CVE-2026-31156
- https://github.com/unicorn-hyh/CVE-2026-31156
FAQ
What is CVE-2026-31156?
CVE-2026-31156 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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 p...
How severe is CVE-2026-31156?
CVE-2026-31156 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-31156?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.