Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-118516
Published:November 04, 2026
Updated:November 21, 2026
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.
Affected Packages
https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v8.0.0-BETA1 <v8.1.11
Fix Suggestion:
Update to version v8.1.11
https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v7.0.0-BETA1 <v7.4.23
Fix Suggestion:
Update to version v7.4.23
https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v6.0.0-BETA1 <v6.4.50
Fix Suggestion:
Update to version v6.4.50
https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v4.1.0-BETA1 <v5.4.56 || >=v5.0.0-BETA1 <v5.4.56
Fix Suggestion:
Update to version v5.4.56
symfony/routing (PHP):
Affected version(s) >=v8.0.0-BETA1 <v8.1.11
Fix Suggestion:
Update to version v8.1.11
symfony/symfony (PHP):
Affected version(s) >=v6.0.0-BETA1 <v6.4.50
Fix Suggestion:
Update to version v6.4.50
symfony/routing (PHP):
Affected version(s) >=v5.0.0-BETA1 <v5.4.56 || >=v4.1.0-BETA1 <v5.4.56
Fix Suggestion:
Update to version v5.4.56
symfony/routing (PHP):
Affected version(s) >=v6.0.0-BETA1 <v6.4.50
Fix Suggestion:
Update to version v6.4.50
symfony/symfony (PHP):
Affected version(s) >=v4.1.0-BETA1 <v5.4.56 || >=v5.0.0-BETA1 <v5.4.56
Fix Suggestion:
Update to version v5.4.56
symfony/symfony (PHP):
Affected version(s) >=v7.0.0-BETA1 <v7.4.23
Fix Suggestion:
Update to version v7.4.23
symfony/symfony (PHP):
Affected version(s) >=v8.0.0-BETA1 <v8.1.11
Fix Suggestion:
Update to version v8.1.11
symfony/routing (PHP):
Affected version(s) >=v7.0.0-BETA1 <v7.4.23
Fix Suggestion:
Update to version v7.4.23
Do you need more information?
Contact Us
CVSS v4
Base Score:
6.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Incorrect Authorization
Interpretation Conflict
EPSS
Base Score:
0.45