Symfony: Inline Fragments Let Untrusted Forwarded Headers Set the Host, Scheme and Port of the URLs Generated for the Main Request
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| sensiolabssymfony |
5.4.56 未満→ 5.4.56 6.0.0 以上 6.4.50 未満→ 6.4.50 7.0.0 以上 7.4.23 未満→ 7.4.23 8.0.0 以上 8.1.11 未満→ 8.1.11 |
5.4.56 6.4.50 7.4.23 8.1.11 |
| composersymfony/http-kernel |
8.1.11 未満→ 8.1.11 |
8.1.11 |
| composersymfony/symfony |
8.1.11 未満→ 8.1.11 |
8.1.11 |
| Packagistsymfony/http-kernel |
8.0.0 以上 8.1.11 未満→ 8.1.11 |
8.1.11 |
| Packagistsymfony/symfony |
8.0.0 以上 8.1.11 未満→ 8.1.11 |
8.1.11 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- Debian DEBIAN-CVE-2026-123339 symfony 修正版あり
- Ubuntu UBUNTU-CVE-2026-123339 symfony この記録に修正版の記載なし
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Description
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(). If the main request itself came from 127.0.0.1, its X-Forwarded-* and Forwarded headers are then trusted, although the application never declared 127.0.0.1 a trusted proxy.
From that point on, every absolute URL the router generates for the rest of the main request takes its host, scheme and port from headers sent by the client: url() in Twig, UrlGeneratorInterface::ABSOLUTE_URL, links in a page that a shared cache stores, or in an e-mail sent after the page was rendered.
This affects applications reached over HTTP from 127.0.0.1 without that address being a trusted proxy, for instance behind a TLS terminator or a reverse proxy running on the same host in front of an application server, behind a local HTTP cache, or behind a sidecar proxy. When framework.trusted_proxies is not configured, which is the default, every forwarded header is trusted during that window, X-Forwarded-Host included, and a web server or proxy that only accepts kn…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- package github.com
- web github.com
- web github.com
- web packagist.org
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com