CVE-2026-31156

6.5 MEDIUM
Published: May 13, 2026 Modified: May 26, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://openplc.com
Source: cve@mitre.org
Product
https://github.com/unicorn-hyh/CVE-2026-31156
Source: cve@mitre.org
Exploit Third Party Advisory
https://github.com/unicorn-hyh/CVE-2026-31156
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit Third Party Advisory

3 reference(s) from NVD

Quick Stats

CVSS v3 Score
6.5 / 10.0
EPSS (Exploit Probability)
0.4%
32th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

openplcproject