Technical impact
The vulnerability arises from improper trust of X‑Forwarded‑* and Forwarded headers within RouterListener::onKernelFinishRequest. When an inline fragment or ESI tag triggers a sub‑request, Symfony temporarily trusts the client IP 127.0.0.1, allowing an attacker to supply forged forwarded headers that set the host, scheme and port used to build absolute URLs. These manipulated URLs are inserted into rendered pages and cached responses, and they can also appear in e‑mail notifications, leading to link poisoning and potential phishing attacks.
Affected Systems
Affected vendors: Sensiolabs Symfony. Versions subject to this flaw include any releases before 5.4.56, 6.4.50, 7.4.23 or 8.1.11. A typical vulnerable deployment is one where the application is reached over HTTP from localhost, such as behind a TLS terminator, reverse proxy, local HTTP cache or sidecar, and that proxy forwards client‑supplied forwarded headers. Configurations that leave framework.trusted_proxies unset trust all forwarded headers by default during the sub‑request window. Use of framework.trusted_hosts mitigates host spoofing but does not prevent scheme or port changes.
Risk and Exploitability
Threat rating is low with a CVSS base score of 2.3, and no EPSS information is available. The vulnerability is not listed in CISA KEV, indicating no publicly known exploit at the time of assessment. Exploitation requires a specific configuration where Symfony trusts requests from 127.0.0.1 and receives forged forwarded headers. While the window is narrow, an attacker who controls a proxy on the same host can manipulate generated links, possibly deceiving users who retrieve cached or emailed content. The overall risk is low to moderate, but patching remains prudent.