CVE-2026-40912 Traefik: StripPrefixRegex auth bypass via Path/RawPath desync
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Red HatNetwork Appliances
Description
Traefik is an HTTP reverse proxy and load balancer. Prior to versions 2.11.43, 3.6.14, and 3.7.0-rc.2, there is a high severity authentication bypass vulnerability in Traefik's StripPrefixRegex middleware when used in combination with ForwardAuth, BasicAuth, or DigestAuth. The middleware matches the regex against the decoded URL path but uses the resulting byte length to slice the percent-encoded raw path. When a dot (or multiple dots) appears in the prefix portion of the URL, the raw path after stripping becomes a dot-segment (e.g. /./admin/secret). ForwardAuth receives this dot-segment path in X-Forwarded-Uri, which does not match the protected path patterns and therefore allows the request through. The backend then normalizes the dot-segment to the real path per RFC 3986 and serves the protected content An unauthenticated attacker can exploit this against any backend that performs dot-segment normalization. This issue has been patched in versions 2.11.43, 3.6.14, and 3.7.0-rc.2.
Upgrade path
4 packages: 2 fixed, 1 partially fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/devspaces/traefik-rhel9:1779786779(Red Hat openshift_devspaces 3.28 el9) | All versions | No fix listed | No fix yet |
| traefik(Go) | < 2.11.43; <= 1.7.34; >= 3.0.0-beta1, < 3.6.14; >= 3.7.0-ea.1, < 3.7.0-rc.2 +1 more | 2.11.43, 3.6.14, 3.7.0-rc.2 | Partially fixed |
| redhat openshift devspaces | < 1779786779 | 1779786779 | Fixed |
| traefik | < 2.11.43; = 3.7.0-ea1; = 3.7.0-ea2; = 3.7.0-ea3 +5 more | 2.11.43, 3.6.14 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| traefik(Go) | >= 3.7.0-ea.1, < 3.7.0-rc.2 | 3.7.0-rc.2 |
| traefik(Go) | >= 3.0.0-beta1, < 3.6.14 | 3.6.14 |
| traefik(Go) | < 2.11.43 | 2.11.43 |
| traefik(Go) | <= 1.7.34 | No fix listed |
| traefik | = < 2.11.43 | No fix listed |
| traefik | = >= 3.0.0-beta1, < 3.6.14 | No fix listed |
| traefik | = >= 3.7.0-ea.1, < 3.7.0-rc.2 | No fix listed |
| redhat openshift devspaces | < 1779786779 | 1779786779 |
| redhat/devspaces/traefik-rhel9:1779786779(Red Hat:openshift_devspaces:3.28::el9) | All versions | No fix listed |
| traefik | < 2.11.43 | 2.11.43 |
| traefik | >= 3.0.0, < 3.6.14 | 3.6.14 |
| traefik | = 3.7.0-ea1 | No fix listed |
| traefik | = 3.7.0-ea2 | No fix listed |
| traefik | = 3.7.0-ea3 | No fix listed |
| traefik | = 3.7.0-rc1 | No fix listed |
| traefik(Go) | All versions | No fix listed |
References
- https://github.com/traefik/traefik/security/advisories/GHSA-6jwx-7vp4-9847 exploit patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- RHSA-2026:21772 patch vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2464229 issue-tracking
- github.com product
- https://github.com/traefik/traefik/releases/tag/v2.11.43 product release-notes
- https://github.com/traefik/traefik/releases/tag/v3.6.14 product release-notes
- https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.2 product release-notes
- security.access.redhat.com
- github.com
- www.cve.org