- Accueil
- Vulnérabilités
- CVE-2026-123339
CVE-2026-123339
Symfony: Inline Fragments Let Untrusted Forwarded Headers Set the Host, Scheme and Port of the URLs Generated for the Main Request
Résumé
Improper trust of forwarded headers in RouterListener::onKernelFinishRequest() in Symfony HttpKernel versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11 allows a remote attacker to control the host, scheme, and port of absolute URLs generated for the rest of the request, poisoning links in pages stored by a shared cache and in e-mails sent after the page was rendered.When a page renders an inline fragment (render() in Twig, or an ESI tag rendered inline), SubRequestHandler temporarily adds 127.0.0.1 to the trusted proxies, and RouterListener rebuilds the router context from the main request while that trust is still active, so the X-Forwarded-* and Forwarded headers of a request whose client address is 127.0.0.1 are trusted even though that address is not a configured 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, including URLs produced by url() in Twig and by UrlGeneratorInterface::ABSOLUTE_URL. Applications are affected when they are reached over HTTP from 127.0.0.1, for example behind a TLS terminator, reverse proxy, local HTTP cache, or sidecar proxy on the same host, and that proxy passes the client’s forwarded headers along. With the default configuration (framework.trusted_proxies unset), all forwarded headers, including X-Forwarded-Host, are trusted during that window. Applications served through php-fpm, mod_php, or a proxy on another host are not affected. When framework.trusted_hosts is configured, a forwarded host outside the list is rejected, but the scheme and port can still be changed.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Packagist (8 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| symfony/http-kernel | avant 5.4.56 (exclu) |
5.4.56 |
GitHub Advisory |
| symfony/http-kernel | de 6.0.0 (inclus) à 6.4.50 (exclu) |
6.4.50 |
GitHub Advisory |
| symfony/http-kernel | de 7.0.0 (inclus) à 7.4.23 (exclu) |
7.4.23 |
GitHub Advisory |
| symfony/http-kernel | de 8.0.0 (inclus) à 8.1.11 (exclu) |
8.1.11 |
GitHub Advisory |
| symfony/symfony | avant 5.4.56 (exclu) |
5.4.56 |
GitHub Advisory |
| symfony/symfony | de 6.0.0 (inclus) à 6.4.50 (exclu) |
6.4.50 |
GitHub Advisory |
| symfony/symfony | de 7.0.0 (inclus) à 7.4.23 (exclu) |
7.4.23 |
GitHub Advisory |
| symfony/symfony | de 8.0.0 (inclus) à 8.1.11 (exclu) |
8.1.11 |
GitHub Advisory |
Correctif
Mise à jour — Packagist/symfony/http-kernel 5.4.56; Packagist/symfony/http-kernel 6.4.50; Packagist/symfony/http-kernel 7.4.23; Packagist/symfony/http-kernel 8.1.11; Packagist/symfony/symfony 5.4.56; Packagist/symfony/symfony 6.4.50; Packagist/symfony/symfony 7.4.23; Psource officielle
Packagist/symfony/http-kernel 5.4.56; Packagist/symfony/http-kernel 6.4.50; Packagist/symfony/http-kernel 7.4.23; Packagist/symfony/http-kernel 8.1.11; Packagist/symfony/symfony 5.4.56; Packagist/symfony/symfony 6.4.50; Packagist/symfony/symfony 7.4.23; Packagist/symfony/symfony 8.1.11
Source : GitHub Advisory
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GHSA-wg5q-m2ww-f3c9 — Symfony: Inline Fragments Let Untrusted Forwarded Headers Set the Host, Scheme and Port of the URLs Generated for the Main Request 1 déc. 2026
Références
- https://github.com/symfony/symfony/security/advisories/GHSA-wg5q-m2ww-f3c9WEB
- https://github.com/symfony/symfony/commit/4b4e683b2c280083c6758bb776af952076add612WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-123339ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-kernel/CVE-2026-123339.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-123339.yamlWEB
- https://github.com/symfony/symfonyPACKAGE
- https://github.com/symfony/symfony/releases/tag/v5.4.56WEB
- https://github.com/symfony/symfony/releases/tag/v6.4.50WEB
- https://github.com/symfony/symfony/releases/tag/v7.4.23WEB
- https://github.com/symfony/symfony/releases/tag/v8.1.11WEB
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- CNA (éditeur ou attributeur)
- Vecteur CVSS
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:N/SA:N(CVSS 4.0, CNA:Checkmarx)- Faiblesse
- CWE-348 · Autre (CWE-348)