6.5
MEDIUM CVSS 3.1
CVE-2026-31156
OpenPLC Path Injection 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.

INFO

Published Date :

May 13, 2026, 4:16 p.m.

Last Modified :

May 26, 2026, 3:13 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-31156 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Openplcproject openplc_v3_firmware
2 Openplcproject openplc_v3
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM 134c704f-9b21-4f2e-91b3-4a467353bcc0
Solution
Validate all file path parameters to prevent unauthorized file access.
  • Sanitize all file path inputs.
  • Validate input paths against allowed directories.
  • Restrict file access permissions.
  • Update the application to a secure version.
Public PoC/Exploit Available at Github

CVE-2026-31156 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-31156.

URL Resource
http://openplc.com Product
https://github.com/unicorn-hyh/CVE-2026-31156 Exploit Third Party Advisory
https://github.com/unicorn-hyh/CVE-2026-31156 Exploit Third Party Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-31156 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

There is a path injection vulnerability in OpenPLC-v3, which arises from the program not performing any validity checks on the file path parameters passed in from the command line. Attackers can read any readable file by constructing malicious paths, posing a risk of information leakage.

Updated: 3 weeks, 2 days ago
0 stars 0 fork 0 watcher
Born at : May 13, 2026, 8:34 a.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-31156 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-31156 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    May. 26, 2026

    Action Type Old Value New Value
    Added CPE Configuration AND OR *cpe:2.3:o:openplcproject:openplc_v3_firmware:2024-03-09:*:*:*:*:*:*:* OR cpe:2.3:h:openplcproject:openplc_v3:-:*:*:*:*:*:*:*
    Added Reference Type MITRE: http://openplc.com Types: Product
    Added Reference Type CISA-ADP: https://github.com/unicorn-hyh/CVE-2026-31156 Types: Exploit, Third Party Advisory
    Added Reference Type MITRE: https://github.com/unicorn-hyh/CVE-2026-31156 Types: Exploit, Third Party Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    May. 14, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
    Added CWE CWE-22
    Added Reference https://github.com/unicorn-hyh/CVE-2026-31156
  • New CVE Received by [email protected]

    May. 13, 2026

    Action Type Old Value New Value
    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.
    Added Reference http://openplc.com
    Added Reference https://github.com/unicorn-hyh/CVE-2026-31156
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.