Aller au contenu
8.3 Élevée

CVE-2026-134792 HttpClient Lets the Proxy Header of a Request Choose the Proxy of Outgoing Requests in HTTP Workers That Run Under the CLI SAPI

Produits et versions touchés

Produit Versions touchées Corrigé en
symfony/http-client 8.0 8.0.0 → < 8.1.12 8.1.12
symfony/http-client 7.0 7.0.0 → < 7.4.24 7.4.24
symfony/http-client 6.0 6.0.0 → < 6.4.51 6.4.51
symfony/http-client 4.3 4.3.0 → < 5.4.57 5.4.57
symfony/symfony 8.0 8.0.0 → < 8.1.12 8.1.12
symfony/symfony 7.0 7.0.0 → < 7.4.24 7.4.24
symfony/symfony 6.0 6.0.0 → < 6.4.51 6.4.51
symfony/symfony 4.3 4.3.0 → < 5.4.57 5.4.57

Description

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.

Détail CVSS 4.0

Vecteur 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

Exploitable à distance par le réseau, sans compte et sans action d’un utilisateur ; un attaquant peut compromettre gravement la confidentialité, l’intégrité ou la disponibilité.

Vecteur d’attaque
Réseau
Complexité
Faible
Prérequis d’attaque
Présents
Privilèges requis
Aucun
Interaction
Aucune
Confidentialité
Élevé
Intégrité
Faible
Disponibilité
Aucun
Confidentialité des autres systèmes
Aucun
Intégrité des autres systèmes
Aucun
Disponibilité des autres systèmes
Aucun
Les 4 CVE de symfony/http-client →
Suivre cette CVE