# CVE-2026-40912: Traefik: StripPrefixRegex auth bypass via Path/RawPath desync

- Severity: High 7.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.80%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-24T16:37:53.000Z
- Modified: 2026-11-23T20:30:09.061Z
- Also known as: GHSA-6jwx-7vp4-9847, GO-2026-5180
- Weaknesses: CWE-22, CWE-706
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- traefik traefik: < 2.11.43; >= 3.0.0-beta1, < 3.6.14; >= 3.7.0-ea.1, < 3.7.0-rc.2; before 2.11.43; from 3.0.0 before 3.6.14; 3.7.0
- devspaces/traefik-rhel9: no versions given (not affected: from 1779786779 before *)
- github.com/traefik/traefik/v3 (Go): from 3.7.0-ea.1 before 3.7.0-rc.2; from 3.0.0-beta1 before 3.6.14; before 3.6.14
- github.com/traefik/traefik/v2 (Go): before 2.11.43
- github.com/traefik/traefik (Go): up to 1.7.34; all versions

## Every score

- GitHub_M: CVSS:4.0 7.8 High `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`
- redhat-SADP: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`

## References

- <https://github.com/traefik/traefik/security/advisories/GHSA-6jwx-7vp4-9847> (exploit, advisory, patch, vendor-advisory, web)
- <https://github.com/traefik/traefik/releases/tag/v2.11.43> (product, release-notes, web)
- <https://github.com/traefik/traefik/releases/tag/v3.6.14> (product, release-notes, web)
- <https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.2> (product, release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-40912> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2464229> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40912.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:21772> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40912> (advisory)
- <https://github.com/traefik/traefik> (package)

## Sources

- CVE List: [CVE-2026-40912](https://www.cve.org/CVERecord?id=CVE-2026-40912), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-6jwx-7vp4-9847](https://github.com/advisories/GHSA-6jwx-7vp4-9847), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5180](https://pkg.go.dev/vuln/GO-2026-5180), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-40912](https://nvd.nist.gov/vuln/detail/CVE-2026-40912), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-40912 · Whole record: https://cve.day/CVE-2026-40912.json · Rebuilt by cve.day 2026-11-25T22:59:20.306Z
