脆弱性ウォッチ

新着 / 2026年11月25日 / CVE-2026-134792

Symfony HttpClientでHTTP_PROXY環境変数が誤って参照される問題

重要 8.3

掲載

何が問題か

proxyオプションが未設定の場合、HttpClientは環境変数からプロキシを取得します。CLI SAPIでは$_SERVERからHTTP_PROXYを読み込んでおり、CLI上で動作するHTTPワーカーはリクエストヘッダーを$_SERVERに格納するため、クライアントがProxyヘッダーを送ってプロキシを指定できる状態でした。NativeHttpClient、AmpHttpClient、CurlHttpClientが影響を受けるとされています。

悪用されると

攻撃者が指定したプロキシ経由でアプリケーションの送信リクエストが流れ、http://宛ての通信は認証情報を含む全内容が読まれ、応答を偽造される可能性があります。https://宛てではCONNECTによりホストとポートが知られます。悪用が実際に確認されたかは公表されていません。

取るべき対応

CLI SAPIでHTTPワーカーを使っている場合は、修正を含むSymfonyの版へ更新してください。修正版の番号はJSONに記載がないため公表されていません。更新までは、プロキシ設定を明示し、ヘッダーのProxyをアプリケーションに渡さない運用を検討してください。

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

更新履歴

  1. 初回掲載。

指標

深刻度(CVSS v4.0)重要 8.3
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
実際の攻撃での悪用CISA KEVには未掲載
30日以内に悪用される確率(EPSS)0.9%(全体の上位 42.7%)
問題の種類CWE-15
CVE公開日2026-11-25

出典

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

When the proxy option isn't set, HttpClient takes the proxy from environment variables like http_proxy or HTTP_PROXY. On web servers, it ignores HTTP_PROXY, because PHP puts the Proxy request header there (the httpoxy issue). On the CLI SAPI, it read HTTP_PROXY from $_SERVER, where PHP also puts the environment. HTTP workers that run under the CLI SAPI put the headers of each request in $_SERVER too. This is the case of spiral/roadrunner-http, which the RoadRunner runner of php-runtime uses, and of baldinof/roadrunner-bundle and php-pm. A client could then send a Proxy header to choose the proxy of the requests that the application sent while handling its request. That proxy received the full requests to http:// URLs, with their credentials, and could forge the responses. For https:// URLs, it learned the host and port through CONNECT. NativeHttpClient is affected since Symfony 4.3.0, AmpHttpClient since 5.1.0, and CurlHttpClient since 4.4.40, 5.4.7 and 6.0.7. On the CLI SAPI, HTTP_PROXY is now read from the environment with $_ENV and getenv(), never from $_SERVER. Other SAPIs still ignore it.