symfony/routing · Symfony: Host Placeholders Can Match the Start of the Path in Compiled URL Matchers, Bypassing Path-Based Access
Affects symfony/routingSource GCVE Database
Not known to be exploited · CVSS 6.3 Medium : upgrade to 5.4.56 when convenient.
Data as of 1 Dec 2026, 23:47 UTC
Thin evidence
One scorer or none| CNA (Checkmarx) | CVSS 4.0 | 6.3 |
|---|
- Patch
- Available – fixed in 5.4.56, 6.4.50, 7.4.23 +1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 4 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistsymfony/routing | Affected
| Fixed in
|
| Packagistsymfony/routing | Affected
| Fixed in
|
| Packagistsymfony/routing | Affected
| Fixed in
|
| Packagistsymfony/routing | Affected
| Fixed in
|
| Packagistsymfony/symfony | Affected
| Fixed in
|
| Packagistsymfony/symfony | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Symfony routing component to version 5.4.56, 6.4.50, 7.4.23, 8.1.11 or later. After upgrading, clear the application route cache to ensure the patched compiled routes are used. This will prevent host placeholders from matching parts of the path and bypassing access controls. No other mitigation is required if the patch is applied and cache cleared.
Description
A vulnerability in Symfony's routing component allows host placeholders in compiled URL matchers to match the start of the path, bypassing path-based access controls such as access_control rules and firewall patterns. This occurs because the compiled matcher concatenates host and path strings and matches them together, allowing host placeholders to consume part of the path. The issue affects applications with routes that have host placeholders protected by path-based rules, potentially allowing unauthorized access to protected routes. The vulnerability is fixed in Symfony versions 5.4.56, 6.4.50, 7.4.23, and 8.1.11 by changing the compiled regexp to separate host and path matching properly. Applications must clear their route cache after upgrading to apply the fix.
References
- github.com/symfony/symfony/security/advisories/GHSA-xqw3-x93m-887x (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-118516 (opens in a new tab)
- github.com/symfony/symfony/commit/067cde51e29f6d605de4de53322a02c6e23b5416 (opens in a new tab)
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/routing/CVE-2026-118516.yaml (opens in a new tab)
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-118516.yaml (opens in a new tab)
- github.com/symfony/symfony (opens in a new tab)
- github.com/symfony/symfony/releases/tag/v5.4.56 (opens in a new tab)
- github.com/symfony/symfony/releases/tag/v6.4.50 (opens in a new tab)
- github.com/symfony/symfony/releases/tag/v7.4.23 (opens in a new tab)
- github.com/symfony/symfony/releases/tag/v8.1.11 (opens in a new tab)
- symfony.com/cve-2026-118516 (opens in a new tab)