Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
8.1

Nextcloud Docker images allow unauthorized access via host trick

published 4 days ago
Summary

If your Nextcloud Docker containers use routes that include a host placeholder, an attacker can craft a request that bypasses the usual path‑based login checks and reach protected pages without authentication. This occurs because the routing component treats the host and path differently, letting the host part absorb part of the URL. Update Nextcloud to the latest patched version or apply the vendor’s security update to fix the routing behavior.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
Docker Hardened Images:Alpine:3.23 docker hardened images nextcloud-34 >= 34.0.4-r0
Docker Hardened Images:Alpine:3.24 docker hardened images nextcloud-34 >= 34.0.4-r0
Docker Hardened Images:Alpine:3.23 docker hardened images nextcloud-35 >= 35.0.1-r0
Docker Hardened Images:Alpine:3.24 docker hardened images nextcloud-35 >= 35.0.1-r0
Docker Hardened Images:Alpine:3.23 docker hardened images nextcloud >= 34.0.3-r0
Docker Hardened Images:Alpine:3.24 docker hardened images nextcloud >= 34.0.3-r0
Docker Hardened Images:Alpine:3.23 docker hardened images snipe-it-8 >= 8.8.0-r0
Docker Hardened Images:Alpine:3.24 docker hardened images snipe-it-8 >= 8.8.0-r0
Docker Hardened Images:Debian:13 docker hardened images nextcloud-34 >= 34.0.4-0
Docker Hardened Images:Debian:13 docker hardened images nextcloud-35 >= 35.0.1-0
Docker Hardened Images:Debian:13 docker hardened images nextcloud >= 34.0.3-0
Docker Hardened Images:Debian:13 docker hardened images snipe-it-8 >= 8.8.0-0
Original advisory text
The Symfony Routing components CompiledUrlMatcher and UrlMatcher interpret the host and path information differently…
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker partial control (estimated)
Severity
8.1 High
Timeline
Published1 Dec 2026
Updated1 Dec 2026
First seen1 Dec 2026
Sources
Track software like this
Free during beta