Skip to content
High 8.3

Symfony HttpClientに、リクエストのProxyヘッダーで送信先のプロキシを選ばれる脆弱性

CVE-2026-134792 First seen on SecPulse

Summary

CLI SAPIで動くHTTPワーカーでは、リクエストのヘッダーが$_SERVERに入るため、攻撃者がProxyヘッダーで送信時のプロキシを選べることがあります。そのプロキシに通信内容や認証情報が渡され、応答を偽装されるおそれがあります。Symfonyのsymfony/http-clientとsymfony/symfonyは5.4.57・6.4.51・7.4.24・8.1.12で修正されているため、これらの版への更新が必要です。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

CLI SAPIで動くHTTPワーカーでは、リクエストのヘッダーが$_SERVERに入るため、攻撃者がProxyヘッダーで送信時のプロキシを選べることがあります。そのプロキシに通信内容や認証情報が渡され、応答を偽装されるおそれがあります。Symfonyのsymfony/http-clientとsymfony/symfonyは5.4.57・6.4.51・7.4.24・8.1.12で修正されているため、これらの版への更新が必要です。

Affected packages

PackageAffected → Fixed
Symfonysymfony/http-client
≥ 4.3.0, < 5.4.57→ 5.4.57
≥ 6.0.0, < 6.4.51→ 6.4.51
≥ 7.0.0, < 7.4.24→ 7.4.24
≥ 8.0.0, < 8.1.12→ 8.1.12
Symfonysymfony/symfony
≥ 4.3.0, < 5.4.57→ 5.4.57
≥ 6.0.0, < 6.4.51→ 6.4.51
≥ 7.0.0, < 7.4.24→ 7.4.24
≥ 8.0.0, < 8.1.12→ 8.1.12

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details