PHPの一覧に戻る

脆弱性の詳細

PHP:脆弱性情報

PHP 本体CVE-2026-7261重要度:中悪用状況:未確認修正版情報あり

PHPに脆弱性情報に関する脆弱性情報があります。影響を受ける条件を確認してください。

どんな危険?

影響と攻撃の成立条件は、リンク先の公式情報で確認してください。

対象
PHP 8.2系 / ext-soap:< 8.2.31(修正版 8.2.31 に対応する系列。旧系列の影響は原文確認)PHP 8.3系 / ext-soap:< 8.3.31(修正版 8.3.31 に対応する系列。旧系列の影響は原文確認)PHP 8.4系 / ext-soap:< 8.4.21(修正版 8.4.21 に対応する系列。旧系列の影響は原文確認)PHP 8.5系 / ext-soap:< 8.5.6(修正版 8.5.6 に対応する系列。旧系列の影響は原文確認)
修正版
8.2.318.3.318.4.218.5.6

どうすればいい?

  1. 使っている製品名・バージョン・構成を、影響を受ける条件と照合してください。
  2. 公式の修正版を確認し、バックアップと動作確認のうえで更新してください。
  3. 更新後は稼働中のバージョンと動作を確認してください。管理を委託している場合は、提供元に対応状況を確認してください。
情報源の原文を確認

悪用状況の「未確認」は、悪用されていないことを意味しません。対策は製品・バージョン・利用条件によって異なります。適用前に情報源とご自身の環境を確認してください。

情報の出典と更新日時

原文と条件を確認

`SOAP_PERSISTENCE_SESSION` allows to persist the SOAP handler object between requests using the session storage. Normally the object is immediately released after `SoapServer::handle()`, unless this setting is specified. This differentiation happens with the `service->soap_class.persistence != SOAP_PERSISTENCE_SESSION` check. `soap.c` fails to account for this flag in two places: https://github.com/php/php-src/blob/0d9ff00394d9447992bb66ccb1cef3edf70576bd/ext/soap/soap.c#L1595 https://github.com/php/php-src/blob/0d9ff00394d9447992bb66ccb1cef3edf70576bd/ext/soap/soap.c#L1600 Both of them are failure cases when a handler function for a header node either returned `false` or threw an exception. When the session is written, the freed object will be read and written to the session storage, resulting in a use-after-free. Normally, a SOAP server will only handle one SOAP request per PHP request, so it's unlikely that the attacker will be able to control the freed memory segment, though it is not impossible. The following example demonstrates the use-after-free. ```php class SoapSrv { public function return() { return new SoapFault('Server', 'denied'); } public function hello() { return 'ok'; } } session_start(); $srv = new SoapServer(null, ['uri' => 'urn:a']); $srv->setClass('SoapSrv'); $srv->setPersistence(SOAP_PERSISTENCE_SESSION); $srv->handle(<<<XML <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="urn:a"> <soap:Header> <a:return/> </soap:Header> <soap:Body> <a:hello/> </soap:Body> </soap:Envelope> XML); ```

この情報をAIに渡す

対象・リスク・対策・出典を同じ内容で取得

JSONを見る

このサービスを共有

脆弱性を確認する入口を、チームや知り合いに。

Xで共有