Symfony: Inline Fragments Let Untrusted Forwarded Headers Set the Host, Scheme and Port of the URLs Generated for the Main Request
受影响
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| composer:symfony/http-kernel | < 5.4.56 | 5.4.56 |
| composer:symfony/http-kernel | >= 6.0.0, < 6.4.50 | 6.4.50 |
| composer:symfony/http-kernel | >= 7.0.0, < 7.4.23 | 7.4.23 |
| composer:symfony/http-kernel | >= 8.0.0, < 8.1.11 | 8.1.11 |
| composer:symfony/symfony | < 5.4.56 | 5.4.56 |
显示全部 (8)
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| composer:symfony/symfony | >= 6.0.0, < 6.4.50 | 6.4.50 |
| composer:symfony/symfony | >= 7.0.0, < 7.4.23 | 7.4.23 |
| composer:symfony/symfony | >= 8.0.0, < 8.1.11 | 8.1.11 |
When a page renders an inline fragment, with render() in Twig or with an ESI tag rendered inline because no gateway cache is used, SubRequestHandler adds 127.0.0.1 to the trusted proxies while the sub-request runs, with the trusted header set of the application, so that the internal sub-request is trusted. RouterListener::onKernelFinishRequest() runs inside that window: when the sub-request finishes, it rebuilds the router's RequestContext from the main request with RequestContext::fromRequest(…
在 X 上接收快讯漏洞利用、重大泄露和故障,附应对措施。
关注 @vulnpulse_app2026/12/02 06:22,GitHub Advisory Database 发布了“Symfony: Inline Fragments Let Untrusted Forwarded Headers Set the Host, Scheme and Port of the URLs Generated for the Main Request”(类型:漏洞公告)。严重程度为“低危”(low)。相关技术:PHP、Symfony。CVE:CVE-2026-123339。