ThinkPHP 5.0 に認証なしでコマンドを実行される脆弱性
ThinkPHP の 5.0.0 から 5.0.24 より前の版が対象です。POST データに _method=__construct を指定して Request の filter プロパティを上書きできるため、認証のない攻撃者が ?s=captcha などのエンドポイントにリクエストを送り、サーバー上で任意のシステムコマンドを実行できます。記録には、Shadowserver Foundation が 2023-10-14 に悪用の形跡を初めて確認したとあります。使っている ThinkPHP の版を確認し、5.0.24 より前であれば更新を検討してください。
概要
| CVE 番号 | CVE-2019-25782 |
|---|---|
| CVSS 基本値 | 9.8(CVSS 3.1) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 弱点の種類 | CWE-470 |
| NVD の公開日 | 2026年11月18日 |
| NVD の最終更新日 | 2026年11月18日 |
| 悪用 | CISA の悪用が確認された脆弱性の一覧(KEV)には載っていません(このページの作成時点) |
対象の製品と版
NVD の製品と版の記録(CPE)は、まだ入っていません。対象の版は、下の原文とベンダーの案内で確認してください。NVD に記録が入ると、このページにも表で載ります。
NVD の記載(原文)
ThinkPHP 5.0.0 before 5.0.24 contains a code injection vulnerability that allows unauthenticated attackers to execute commands by setting _method=__construct in POST data to overwrite the Request filter property. Attackers can send POST requests to endpoints reached via ?s=captcha or ?s=index/index/index with filter[]=system and server[REQUEST_METHOD] values to execute arbitrary system commands. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-14.
元の情報
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-5023-rce.yaml
- https://github.com/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f3196de003
- https://github.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce
- https://packetstorm.news/files/id/157218/
- https://www.exploit-db.com/exploits/46150
- https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.23-rce-via-method-construct-in-request-php
- https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.24-rce-via-method-construct-in-request-php
このページは、NVD と CISA の記録から自動で作っています。日本語の題と説明は、記録をもとに AI が書き、記録にない数字を含まないことを機械で確認しています。対処の前に、ベンダーの案内(元の情報)を必ず確認してください。