{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-134792","assignerOrgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","state":"PUBLISHED","assignerShortName":"Symfony","dateReserved":"2026-11-22T17:09:05.968Z","datePublished":"2026-11-25T10:00:23.614Z","dateUpdated":"2026-11-25T10:00:23.614Z"},"containers":{"cna":{"providerMetadata":{"orgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","shortName":"Symfony","dateUpdated":"2026-11-25T10:00:23.614Z"},"title":"HttpClient Lets the Proxy Header of a Request Choose the Proxy of Outgoing Requests in HTTP Workers That Run Under the CLI SAPI","datePublic":"2026-11-25T09:36:51.000Z","descriptions":[{"lang":"en","value":"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.\n\nHTTP 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.\n\nNativeHttpClient 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.\n\nOn the CLI SAPI, HTTP_PROXY is now read from the environment with $_ENV and getenv(), never from $_SERVER. Other SAPIs still ignore it.","supportingMedia":[{"type":"text/markdown","base64":false,"value":"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.\n\nHTTP 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`.\n\n`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.\n\nOn the CLI SAPI, `HTTP_PROXY` is now read from the environment with `$_ENV` and `getenv()`, never from `$_SERVER`. Other SAPIs still ignore it."}]}],"affected":[{"vendor":"Symfony","product":"symfony/http-client","collectionURL":"https://packagist.org","packageName":"symfony/http-client","repo":"https://github.com/symfony/symfony","defaultStatus":"unaffected","versions":[{"version":"4.3.0","status":"affected","lessThan":"5.4.57","versionType":"semver"},{"version":"6.0.0","status":"affected","lessThan":"6.4.51","versionType":"semver"},{"version":"7.0.0","status":"affected","lessThan":"7.4.24","versionType":"semver"},{"version":"8.0.0","status":"affected","lessThan":"8.1.12","versionType":"semver"}]},{"vendor":"Symfony","product":"symfony/symfony","collectionURL":"https://packagist.org","packageName":"symfony/symfony","repo":"https://github.com/symfony/symfony","defaultStatus":"unaffected","versions":[{"version":"4.3.0","status":"affected","lessThan":"5.4.57","versionType":"semver"},{"version":"6.0.0","status":"affected","lessThan":"6.4.51","versionType":"semver"},{"version":"7.0.0","status":"affected","lessThan":"7.4.24","versionType":"semver"},{"version":"8.0.0","status":"affected","lessThan":"8.1.12","versionType":"semver"}]}],"problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-15","description":"CWE-15 External Control of System or Configuration Setting","type":"CWE"}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"version":"4.0","vectorString":"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","baseScore":8.3,"baseSeverity":"HIGH"}}],"references":[{"url":"https://symfony.com/cve-2026-134792","name":"CVE-2026-134792","tags":["vendor-advisory"]},{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-cjfx-x9pc-q4rx","name":"GHSA-cjfx-x9pc-q4rx","tags":["vendor-advisory"]},{"url":"https://github.com/symfony/symfony/commit/3684fa9d43502edbd70406bdc94eae2d1aac5c97","tags":["patch"]}],"credits":[{"lang":"en","value":"Nicolas Grekas","type":"finder"}],"source":{"advisory":"GHSA-cjfx-x9pc-q4rx","discovery":"UNKNOWN"},"x_generator":{"engine":"symfony/ghsa-to-cve"}}}}