CVE-2026-31156: n/a
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.
AI Analysis
Technical Summary
CVE-2026-31156 is a path injection vulnerability in OpenPLC v3 (commit 2c82b0e79c53f8c1f1458eee15fec173400d6e1a). The binary compiled from glue_generator.cpp fails to validate file path parameters passed via the command line. User-supplied input is directly passed to file operation functions such as fopen, ifstream, and ofstream without sanitization. This allows an attacker to craft malicious file paths to read arbitrary readable files on the system. The vulnerability requires low attack complexity and no user interaction, with a low privilege attacker able to exploit it remotely. The impact is high confidentiality loss but no integrity or availability impact. No official fix or patch is currently documented.
Potential Impact
An attacker with low privileges can exploit this vulnerability to read arbitrary files on the system that the OpenPLC process has access to. This results in a high confidentiality impact. There is no impact on integrity or availability. The vulnerability does not require user interaction and can be exploited remotely over the network.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to the affected binary and limit the ability of untrusted users to invoke it with arbitrary command line parameters. Monitor for suspicious usage of the glue_generator.cpp binary. Avoid running the vulnerable version in sensitive environments if possible.
CVE-2026-31156: n/a
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 v3.1
Score 6.5medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-31156 is a path injection vulnerability in OpenPLC v3 (commit 2c82b0e79c53f8c1f1458eee15fec173400d6e1a). The binary compiled from glue_generator.cpp fails to validate file path parameters passed via the command line. User-supplied input is directly passed to file operation functions such as fopen, ifstream, and ofstream without sanitization. This allows an attacker to craft malicious file paths to read arbitrary readable files on the system. The vulnerability requires low attack complexity and no user interaction, with a low privilege attacker able to exploit it remotely. The impact is high confidentiality loss but no integrity or availability impact. No official fix or patch is currently documented.
Potential Impact
An attacker with low privileges can exploit this vulnerability to read arbitrary files on the system that the OpenPLC process has access to. This results in a high confidentiality impact. There is no impact on integrity or availability. The vulnerability does not require user interaction and can be exploited remotely over the network.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to the affected binary and limit the ability of untrusted users to invoke it with arbitrary command line parameters. Monitor for suspicious usage of the glue_generator.cpp binary. Avoid running the vulnerable version in sensitive environments if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-03-09T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a049703cbff5d8610dff35e
Added to database: 05/13/2026, 15:21:39 UTC
Last enriched: 07/05/2026, 21:45:45 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 46
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.