CVE-2023-47106
mediumpriority · track · 26EPSS 0.006 · 50 %ileEUUSEPSS · scored 2026-10-27
Traefik is an open source HTTP reverse proxy and load balancer. When a request is sent to Traefik with a URL fragment, Traefik automatically URL encodes and forwards the fragment to the backend server. This violates RFC 7230 because in the origin-form the URL should only contain the absolute path and the query. When this is combined with another frontend proxy like Nginx, it can be used to bypass frontend proxy URI-based access control restrictions. This vulnerability has been addressed in versions 2.10.6 and 3.0.0-beta5. Users are advised to upgrade. There are no known workarounds for this vulnerability.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (7)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-fvhj-4qfh-q2hmTraefik incorrectly processes fragment in the URL, leads to Authorization Bypass2023-12-05ghsa · osvUS
### Summary When a request is sent to Traefik with a URL fragment, Traefik automatically URL encodes and forwards the fragment to the backend server. This violates the RFC because in the origin-form the URL should only contain the absolute path and the query. When this is combined with another frontend proxy like Nginx, it can be used to bypass frontend proxy URI-based access control restrictions. ### Details For example, we have this Nginx configuration: ``` location /admin { deny all; return 403; } ``` This can be bypassed when the attacker is requesting to /#/../admin This won’t be vulnerable if the backend server follows the RFC and ignores any characters after the fragment. However, if Nginx is chained with another reverse proxy which automatically URL encode the character # (Traefik) the URL will become /%23/../admin And allow the attacker to completely bypass the Access Restriction from the Nginx Front-End proxy. Here is a diagram to summarize the attack:  ### PoC  This is the POC docker I've set up. It contains Nginx, Traefik proxies and a backend server running PHP. https://drive.google.com/file/d/1vLnA0g7N7ZKhLNmHmuJ4JJjV_J2akNMt/view?usp=sharing ### Impact This allows the attacker to completely bypass the Access Restriction from Front-End proxy.
- GO-2023-2376Traefik incorrectly processes fragment in the URL, leads to Authorization Bypass in github.com/traefik/traefik2024-08-21vendor · osvUS
Traefik incorrectly processes fragment in the URL, leads to Authorization Bypass in github.com/traefik/traefik
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- https://datatracker.ietf.org/doc/html/rfc7230#section-5.3.1cnnvd
- https://github.com/traefik/traefik/releases/tag/v2.10.6cnnvd
- https://github.com/traefik/traefik/releases/tag/v3.0.0-beta5cnnvd
- https://github.com/traefik/traefik/security/advisories/GHSA-fvhj-4qfh-q2hmcnnvd
- https://datatracker.ietf.org/doc/html/rfc7230#section-5.3.1enisa_euvd
- https://github.com/traefik/traefik/releases/tag/v2.10.6enisa_euvd
- https://github.com/traefik/traefik/releases/tag/v3.0.0-beta5enisa_euvd
- https://github.com/traefik/traefik/security/advisories/GHSA-fvhj-4qfh-q2hmenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan