# CVE-2026-118516: Symfony: Host Placeholders Can Match the Start of the Path in Compiled URL Matchers, Bypassing Path-Based Access Control

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.49% (percentile 35, 2026-11-28)
- **CWE:** CWE-436, CWE-863
- **Published:** 2026-11-04T12:33:08.482Z
- **Modified:** 2026-11-09T22:18:28.437Z

## Who should check

- Anyone running sensiolabs symfony \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11

## 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.

## Affected and fixed versions

- sensiolabs symfony: \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11 (cvelist)

## Mitigation

- Upgrade symfony to 8.1.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-118516. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-118516.md
Affected: sensiolabs symfony < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11
Fixed in: sensiolabs symfony 5.4.56, sensiolabs symfony 6.4.50, sensiolabs symfony 7.4.23, sensiolabs symfony 8.1.11

Steps:
1. Search this machine and project for sensiolabs symfony: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-118516 being exploited?

There is no confirmed exploitation: CVE-2026-118516 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-118516?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-118516?

sensiolabs symfony \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11.

### Is there a fix for CVE-2026-118516?

Yes. Fixed in sensiolabs symfony 5.4.56, sensiolabs symfony 6.4.50, sensiolabs symfony 7.4.23, sensiolabs symfony 8.1.11. Upgrade symfony to 8.1.11 or later.

### How do I check if I'm affected by CVE-2026-118516?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/symfony/symfony/security/advisories/GHSA-xqw3-x93m-887x>
- patch: <https://github.com/symfony/symfony/commit/067cde51e29f6d605de4de53322a02c6e23b5416>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-118516>

HTML: <https://flawdb.com/CVE-2026-118516> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-118516>
