CVEfocus › CVE database › CVE-2026-118516

CVE-2026-118516Symfony: Host Placeholders Can Match the Start of the Path in Compiled URL Matchers,…

CVSS 6.3 MediumEPSS 0.5% (higher than 35% of CVEs)Published 2026-11-04Updated 2026-11-09Assigner: Checkmarx

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.

CWE-436CWE-863

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
7Fix pending
1Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10symfonyFix pendingUBUNTU-CVE-2026-118516
Ubuntu 26.04symfonyUnder investigationUBUNTU-CVE-2026-118516
Ubuntu 24.04symfonyFix pendingUBUNTU-CVE-2026-118516
Ubuntu 22.04symfonyFix pendingUBUNTU-CVE-2026-118516
Ubuntu 20.04symfonyFix pendingUBUNTU-CVE-2026-118516
Ubuntu 18.04symfonyFix pendingUBUNTU-CVE-2026-118516
Ubuntu 16.04symfonyFix pendingUBUNTU-CVE-2026-118516
Debian 14symfonyFixed7.4.23+dfsg-1DEBIAN-CVE-2026-118516
Debian 13symfonyFixed6.4.50+dfsg-0+deb13u1DEBIAN-CVE-2026-118516
Debian 12symfonyFix pendingDEBIAN-CVE-2026-118516

What the vendor says

As published in the CVE record by Checkmarx, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.