CVE-2026-31156
A path injection vulnerability in OpenPLC v3 (commit 2c82b0e79c53f8c1f1458eee15fec173400d6e1a) allows authenticated attackers to read arbitrary files on the system. The vulnerability exists in the glue_generator.cpp component, where user-supplied file paths passed via command-line arguments are used directly in file operations without validation. An attacker with local access can exploit this by providing malicious path sequences (e.g., directory traversal) to read sensitive files. The CVSS 3.1 score of 6.5 (MEDIUM) reflects network attack vector with low attack complexity, low privileges required, and high confidentiality impact with no integrity or availability impact. The vulnerability was published on May 13, 2026, and last modified on May 26, 2026. No known exploitation in the wild or ransomware campaign use has been documented.