Interpretation Conflict Affecting symfony/routing package, versions <5.4.56>=6.0.0, <6.4.50>=7.0.0, <7.4.23>=8.0.0, <8.1.11


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.47% (43rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-SYMFONYROUTING-23188902
  • published1 Dec 2026
  • disclosed4 Nov 2026
  • creditVincent Cassiau

Introduced: 4 Nov 2026

NewCVE-2026-118516  (opens in a new tab)
CWE-436  (opens in a new tab)

How to fix?

Upgrade symfony/routing to version 5.4.56, 6.4.50, 7.4.23, 8.1.11 or higher.

Overview

Affected versions of this package are vulnerable to Interpretation Conflict via CompiledUrlMatcherDumper in the Routing component, where host placeholders in compiled URL matchers can match the / character and consume the beginning of the request path. When a route defines a host with placeholders (e.g., app.{domain}), CompiledUrlMatcher matches the concatenated string $host.'.'.$pathinfo against the host and path regular expressions in sequence, allowing a host placeholder to absorb the leading portion of the path. Path-based authorization rules such as access_control entries and firewall patterns are evaluated against the actual request path, so they do not apply to the matched route, and an unauthenticated request can reach a controller that should be protected.

Note: Applications are only affected if they have routes with host placeholders that are protected by path-based access rules. With the default host placeholder requirement, the Host header must be the route host without its last labels (e.g., app), which framework.trusted_hosts can block, but a web server forwarding the raw Host header may not. With a requirement that accepts / (such as .+), a real hostname works and trusted_hosts does not help. The fix is in the route cache dumper, so the application cache must be cleared after upgrading.

CVSS Base Scores

version 4.0
version 3.1