OpenPLC ProjectのOpenPLC_v3 ファームウェアにおけるパストラバーサルの脆弱性
タイトル OpenPLC ProjectのOpenPLC_v3 ファームウェアにおけるパストラバーサルの脆弱性
概要

OpenPLC v3 (2c82b0e79c53f8c1f1458eee15fec173400d6e1a)にはパスインジェクションの脆弱性が存在します。glue_generator.cppからコンパイルされたバイナリプログラムは、コマンドライン経由で渡されるファイルパスパラメータの検証を一切行っていません。ユーザーが制御する入力パラメータは、ファイルの読み書きのために基盤となるファイル操作関数(fopen/ifstream/ofstream)に直接渡されます。攻撃者はこの脆弱性を悪用して、任意の読み取り可能なファイルを読むための悪意のあるパスを構築できます。

想定される影響 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
対策

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

公表日 2026年5月13日0:00
登録日 2026年5月28日14:42
最終更新日 2026年5月28日14:42
CVSS3.0 : 警告
スコア 6.5
ベクター CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
影響を受けるシステム
OpenPLC Project
OpenPLC_v3 ファームウェア 2024-03-09
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2026年05月28日]
  掲載
2026年5月28日14:42

NVD脆弱性情報
CVE-2026-31156
概要

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.

公表日 2026年5月14日1:16
登録日 2026年5月15日4:20
最終更新日 2026年5月15日0:16
関連情報、対策とツール
共通脆弱性一覧