| タイトル | The PHP GroupのPHPにおける境界外読み取りに関する脆弱性 |
|---|---|
| 概要 | PHPのバージョン8.4.*の8.4.21未満および8.5.*の8.5.6未満において、埋め込みNULバイトを含むエンコーディング名がmb_convert_encoding()や関連するmbstring関数に渡されると、strncasecmp()が0を返して文字列の長さが同じであると誤って判断します。これにより、グローバルメモリの範囲外読み取りが発生し、クラッシュや情報漏洩、またはプログラムの異常終了を引き起こす可能性があります。影響を受ける関数にはmb_convert_encoding()、mb_detect_encoding()、mb_convert_variables()、mb_detect_order()のほか、mbstring.detect_orderおよびmbstring.http_outputのINI設定が含まれます。 |
| 想定される影響 | 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| 対策 | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月10日0:00 |
| 登録日 | 2026年5月14日10:15 |
| 最終更新日 | 2026年5月14日10:15 |
| CVSS3.0 : 緊急 | |
| スコア | 9.1 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| The PHP Group |
| PHP 8.4.0 以上 8.4.21 未満 |
| PHP 8.5.0 以上 8.5.6 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月14日] 掲載 |
2026年5月14日10:15 |
| 概要 | In PHP versions 8.4.* before 8.4.21 and 8.5.* before 8.5.6, when an encoding name containing an embedded NUL byte is passed to mb_convert_encoding() or related mbstring functions, the code incorrectly assumes that when strncasecmp() returns 0 it means the strings have the same length. This can lead to out-of-bounds read of global memory, potentially causing a crash or information disclosure or crash. Affected functions include mb_convert_encoding(), mb_detect_encoding(), mb_convert_variables(), and mb_detect_order(), as well as the mbstring.detect_order and mbstring.http_output INI settings. |
|---|---|
| 公表日 | 2026年5月10日15:16 |
| 登録日 | 2026年5月11日4:08 |
| 最終更新日 | 2026年5月13日2:35 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | 8.4.0 | 8.4.21 | |||
| cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | 8.5.0 | 8.5.6 | |||