[ CVE-2026-118516 · Published 4 Nov 2026 ]
Vulnerability in sensiolabs symfony
[ Description ]Official description
The Symfony Routing components CompiledUrlMatcher and UrlMatcher interpret the host and path information differently, allowing path-based authorization rules to be bypassed in Symfony 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. For routes that define a host, CompiledUrlMatcher matches the string $host.'.'.$pathinfo against the host regular expression followed by the path regular expression, while UrlMatcher matches the host and the path separately. A host placeholder can therefore match /, and consume the beginning of the path, so the request is routed to a controller, while UrlMatcher would find no route. Rules that look at the path, such as access_control entries and firewall patterns, are evaluated against the actual request path, so they do not apply while the controller of the route runs, potentially allowing an unauthenticated request to reach a protected controller. For example, with the route /admin/report/{id}, the host app.{domain} and the rule access_control: [{ path: ^/admin, roles: ROLE_ADMIN }], an anonymous request for /admin/report/1 is sent to the login page. A request with the Host header app and path /x./admin/report/1 instead reaches the controller, with domain="/x". With the required domain: .+, the real hostname works: app.example.com and /x./admin/report/1 match with domain="example.com./x". Applications are affected if they have routes with host placeholders protected by path-based rules. With the default requirement, the Host header must be the host of the route without its last labels, such as app: framework.trusted_hosts blocks that, while a web server that only serves known names may not, for instance, Nginx passing the raw Host header to FastCGI for a request line that carries an absolute URI. If the requirement accepts /, such as .+, a real hostname works, and trusted_hosts does not help.
[ Fixes ]Fixes and patches
- Security bulletin: Symfony GHSA-5mx8-mwrp-5693Vendor patch or bulletin · CERT-FR · github.com/symfony/symfony/security/advisories/GHSA-5mx8-mwrp-5693, cited by CERT-FR CERTFR-2026-AVI-1460
- Security bulletin: Symfony GHSA-8f57-m8wj-x65wVendor patch or bulletin · CERT-FR · github.com/symfony/symfony/security/advisories/GHSA-8f57-m8wj-x65w, cited by CERT-FR CERTFR-2026-AVI-1460
- Security bulletin: Symfony GHSA-cpww-5vpx-72x7Vendor patch or bulletin · CERT-FR · github.com/symfony/symfony/security/advisories/GHSA-cpww-5vpx-72x7, cited by CERT-FR CERTFR-2026-AVI-1460
- Security bulletin: Symfony GHSA-hwfg-qwvh-2wfxVendor patch or bulletin · CERT-FR · github.com/symfony/symfony/security/advisories/GHSA-hwfg-qwvh-2wfx, cited by CERT-FR CERTFR-2026-AVI-1460
- Security bulletin: Symfony GHSA-pxj9-jh84-vhm5Vendor patch or bulletin · CERT-FR · github.com/symfony/symfony/security/advisories/GHSA-pxj9-jh84-vhm5, cited by CERT-FR CERTFR-2026-AVI-1460
- Security bulletin: Symfony GHSA-c7hm-wqwp-f9v8Vendor patch or bulletin · CERT-FR · github.com/symfony/symfony/security/advisories/GHSA-c7hm-wqwp-f9v8, cited by CERT-FR CERTFR-2026-AVI-1460
- Security bulletin: Symfony GHSA-6prc-h956-hxjqVendor patch or bulletin · CERT-FR · github.com/symfony/symfony/security/advisories/GHSA-6prc-h956-hxjq, cited by CERT-FR CERTFR-2026-AVI-1460
- Security bulletin: Symfony GHSA-xqw3-x93m-887xVendor patch or bulletin · CERT-FR · github.com/symfony/symfony/security/advisories/GHSA-xqw3-x93m-887x, cited by CERT-FR CERTFR-2026-AVI-1460
- Security bulletin: Symfony GHSA-3h27-hjv7-fqjxVendor patch or bulletin · CERT-FR · github.com/symfony/symfony/security/advisories/GHSA-3h27-hjv7-fqjx, cited by CERT-FR CERTFR-2026-AVI-1460
[ Advisories ]Government CERT advisories
-
CERT-FRCERTFR-2026-AVI-1460
Multiple vulnerabilities in Symfony products Translated from French
Multiple vulnerabilities have been discovered in Symfony products. Some of them allow an attacker to cause remote denial of service, a breach of data confidentiality and a security policy bypass.