CVE-2026-118516
Last modified
CVE-2026-118516 is a medium-severity vulnerability rated 6.3/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| sensiolabs | symfony | < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-118516?
How severe is CVE-2026-118516?
How do I fix CVE-2026-118516?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-118500The Cool FormKit Lite – Advanced Form Builder for Elementor …6.4
- CVE-2026-118504The web interface blocks issue and pull request changes on a…
- CVE-2026-118505Improper Restriction of Excessive Authentication Attempts vu…6.3
- CVE-2026-11851Improper Neutralization of Special Elements used in an SQL C…5.9
- CVE-2026-118510A type-handling flaw in the relationship query building of t…8.8
- CVE-2026-118513Authentication bypass by spoofing in X509Authenticator and X…7.7
- CVE-2026-118517The Symfony HtmlSanitizer component UrlSanitizer parses URLs…4.3
- CVE-2026-11852Debusine is an integrated solution to build, distribute and …6.5
- CVE-2026-118523The EventPrime WordPress plugin before 4.3.6.1 does not kee…5.3
- CVE-2026-118527Use of predictable filenames in Ivanti Connect Secure before…4.3
- CVE-2026-11853Debusine is an integrated solution to build, distribute and …6.5
- CVE-2026-118537A vulnerability was found in a2ui up to 0.10.4. This vulnera…4.3
Are you affected by CVE-2026-118516?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
