脆弱性ウォッチ

新着 / 2026年11月27日 / CVE-2023-47039

Perlの実行パス検索による任意コード実行の脆弱性

重要 7.8

掲載

何が問題か

Windows版Perlが、シェル(cmd.exe)を探す際にシステムのPATH環境変数に依存しており、検索順序の問題から最初に現在の作業ディレクトリ内のcmd.exeを探すことが説明されています。権限の低い攻撃者が、C:\ProgramDataなど権限の弱い場所にcmd.exeを配置できる恐れがあります。

悪用されると

管理者が侵害された場所からWindows版Perlを利用する実行ファイルを起動すると、任意のコードが実行される可能性があります。CVSSの評価はHIGH(7.8)です。実際に悪用されたかどうかは公表されていません。

取るべき対応

Windows版Perlを利用している場合は、修正版の提供状況と適用方法を公式情報で確認してください。修正版の番号は公表されていません。信頼できない場所にあるcmd.exeや実行ファイルを管理者権限で起動しないようにしてください。

AIが出典から要約し、数値を機械照合しています。

更新履歴

  1. 初回掲載。

指標

深刻度(CVSS v3.1)重要 7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
実際の攻撃での悪用CISA KEVには未掲載
30日以内に悪用される確率(EPSS)0.3%(全体の上位 81.1%)
問題の種類CWE-122、CWE-787
CVE公開日2024-01-02

対象製品

出典

公式の説明(英語の原文)

A vulnerability was found in Perl. This security issue occurs while Perl for Windows relies on the system path environment variable to find the shell (`cmd.exe`). When running an executable that uses the Windows Perl interpreter, Perl attempts to find and execute `cmd.exe` within the operating system. However, due to path search order issues, Perl initially looks for cmd.exe in the current working directory. This flaw allows an attacker with limited privileges to place`cmd.exe` in locations with weak permissions, such as `C:\ProgramData`. By doing so, arbitrary code can be executed when an administrator attempts to use this executable from these compromised locations.