CVE-2026-133743Inline Fragments Let Untrusted Forwarded Headers Change the URLs of asset() and…
The fix for CVE-2026-123339 (GHSA-wg5q-m2ww-f3c9) restores the router context of the main request after an inline fragment, but the cause of that issue is still there. A page can render an inline fragment with render() in Twig, or with an ESI tag when no gateway cache is used. While the fragment runs, SubRequestHandler adds 127.0.0.1 to the trusted proxies of every request. Code that reads the main request during that time trusts its X-Forwarded-* and Forwarded headers if the main request came from 127.0.0.1. Symfony itself reads the main request there: - asset() takes the base path and the scheme of the main request. With X-Forwarded-Prefix: //evil.example, asset('build/app.js') returns //evil.example/build/app.js, a script loaded from another host. Request::getBasePath() keeps its first result, so when it's first computed inside the fragment, the later asset() calls of the page return such URLs too. - absolute_url() in Twig, through UrlHelper, takes the host and the scheme of the main request from X-Forwarded-Host and X-Forwarded-Proto. When a shared cache stores the page, every visitor gets these URLs. With asset(), the page then runs scripts from a host chosen by the attacker. This affects applications reached over HTTP from 127.0.0.1 when that address isn't a trusted proxy. That's the case behind a TLS terminator, a reverse proxy or an HTTP cache running on the same host. When framework.trusted_proxies is not configured, which is the default, every forwarded header is trusted during that window, X-Forwarded-Prefix included. Configuring framework.trusted_hosts doesn't help with asset(), since the prefix is not a host. Applications that get requests directly through php-fpm or mod_php are not affected, and neither are those behind a proxy on another host. REMOTE_ADDR is not 127.0.0.1 there. SubRequestHandler doesn't change the trusted proxies of every request anymore. Only the requests it builds, and the requests copied from them, trust 127.0.0.1. While a fragment renders, the main request keeps ignoring the forwarded headers sent by the client. symfony/http-kernel now requires the version of symfony/http-foundation that contains this fix.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | symfony | Fix pending | UBUNTU-CVE-2026-133743 | |
| Ubuntu 26.04 | symfony | Under investigation | UBUNTU-CVE-2026-133743 | |
| Ubuntu 24.04 | symfony | Fix pending | UBUNTU-CVE-2026-133743 | |
| Ubuntu 22.04 | symfony | Fix pending | UBUNTU-CVE-2026-133743 | |
| Ubuntu 20.04 | symfony | Fix pending | UBUNTU-CVE-2026-133743 | |
| Ubuntu 18.04 | symfony | Fix pending | UBUNTU-CVE-2026-133743 | |
| Ubuntu 16.04 | symfony | Fix pending | UBUNTU-CVE-2026-133743 |
What the vendor says
As published in the CVE record by Symfony, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- symfony/http-kernel: affected: before 5.4.57, 6.0.0 to before 6.4.51, 7.0.0 to before 7.4.24, 8.0.0 to before 8.1.12; fixed in
5.4.57,6.4.51,7.4.24,8.1.12 - symfony/symfony: affected: before 5.4.57, 6.0.0 to before 6.4.51, 7.0.0 to before 7.4.24, 8.0.0 to before 8.1.12; fixed in
5.4.57,6.4.51,7.4.24,8.1.12
Vendor advisories:
- https://symfony.com/cve-2026-133743 (vendor-advisory)
- https://github.com/symfony/symfony/security/advisories/GHSA-8cww-v5fg-2mf9 (vendor-advisory)
- https://github.com/symfony/symfony/commit/2bba2bdaf3d33b897c74a81eb96b28d7b0076ee4 (patch)
References
- https://symfony.com/cve-2026-133743
- https://github.com/symfony/symfony/security/advisories/GHSA-8cww-v5fg-2mf9
- https://github.com/symfony/symfony/commit/2bba2bdaf3d33b897c74a81eb96b28d7b0076ee4
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.