CVE-2026-40912
published high CVSS 4.0 · 7.8Traefik: StripPrefixRegex auth bypass via Path/RawPath desync
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| traefik | — | traefik< 2.11.43 · >= 3.0.0-beta1, < 3.6.14 · >= 3.7.0-ea.1, < 3.7.0-rc.2 | Affected | Not stated | GitHub_M |
| Red Hat | — | devspaces/traefik-rhel9Red Hat OpenShift Dev Spaces 3.28 · 1779786779 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| SUSE / openSUSE | openSUSE-Tumbleweed | traefikaarch64 | Advisory build | 3.6.15-1.1 | OPENSUSE-SU-2026:10697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | traefikppc64le | Advisory build | 3.6.15-1.1 | OPENSUSE-SU-2026:10697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | traefiks390x | Advisory build | 3.6.15-1.1 | OPENSUSE-SU-2026:10697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | traefikx86_64 | Advisory build | 3.6.15-1.1 | OPENSUSE-SU-2026:10697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | traefik2aarch64 | Advisory build | 2.11.44-1.1 | OPENSUSE-SU-2026:10698-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | traefik2ppc64le | Advisory build | 2.11.44-1.1 | OPENSUSE-SU-2026:10698-1 |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | traefik2s390x | Advisory build | 2.11.44-1.1 | OPENSUSE-SU-2026:10698-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | traefik2x86_64 | Advisory build | 2.11.44-1.1 | OPENSUSE-SU-2026:10698-1 |
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.
A flaw was found in Traefik, an HTTP reverse proxy and load balancer. This authentication bypass vulnerability allows an unauthenticated attacker to access protected content. The flaw occurs when the StripPrefixRegex middleware is used with authentication mechanisms such as ForwardAuth, BasicAuth, or DigestAuth. By crafting a specific URL with dot-segments, an attacker can bypass authentication checks and gain unauthorized access to sensitive resources.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.6 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| traefik | traefik | < 2.11.43 (affected)>= 3.0.0-beta1, < 3.6.14 (affected)>= 3.7.0-ea.1, < 3.7.0-rc.2 (affected) | GitHub_M · cna |
| Red Hat | Red Hat OpenShift Dev Spaces 3.28 | 1779786779 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-706 CWE-706: Use of Incorrectly-Resolved Name or Reference
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
8- https://access.redhat.com/errata/RHSA-2026:21772
- https://access.redhat.com/security/cve/CVE-2026-40912
- RHBZ#2464229 https://bugzilla.redhat.com/show_bug.cgi?id=2464229
- https://github.com/traefik/traefik/releases/tag/v2.11.43
- https://github.com/traefik/traefik/releases/tag/v3.6.14
- https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.2
- https://github.com/traefik/traefik/security/advisories/GHSA-6jwx-7vp4-9847
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40912.json
Provider assertions
3GitHub_M · cna
Traefik: StripPrefixRegex auth bypass via Path/RawPath desync
redhat-SADP · adp
github.com/traefik/traefik: Traefik: Authentication bypass via crafted URL dot-segments in StripPrefixRegex middleware
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d5429b4e30211a43121064b250827e3afb50ff2d995074442c3dd2a9590bd707
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record