{"id":"CVE-2026-40912","published":"2026-04-30T20:38:21Z","modified":"2026-07-15T01:00:23Z","title":"Traefik: StripPrefixRegex auth bypass via Path/RawPath desync","vendor":"traefik","product":"traefik","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00767,"percentile":0.56419,"provenance":"source"},"cwes":[{"id":"CWE-706","name":"Use of Incorrectly-Resolved Name or Reference"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/traefik/traefik/security/advisories/GHSA-6jwx-7vp4-9847","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/traefik/traefik/releases/tag/v2.11.43","tags":["x_refsource_MISC"]},{"url":"https://github.com/traefik/traefik/releases/tag/v3.6.14","tags":["x_refsource_MISC"]},{"url":"https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.2","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-40912","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2464229","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40912.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21772","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":11.28},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"traefik","affectedVersions":[{"vendor":"traefik","product":"traefik","versions":["< 2.11.43",">= 3.0.0-beta1, < 3.6.14",">= 3.7.0-ea.1, < 3.7.0-rc.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-01T14:53:15.470528Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","vulnerableRanges":[">=3.7.0-ea.1, <3.7.0-rc.2",">=3.0.0-beta1, <3.6.14"],"patched":["3.7.0-rc.2","3.6.14"],"from":["GHSA-6jwx-7vp4-9847","GO-2026-5180"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v2","vulnerableRanges":["<2.11.43"],"patched":["2.11.43"],"from":["GHSA-6jwx-7vp4-9847","GO-2026-5180"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/traefik/traefik","vulnerableRanges":["<=1.7.34","all versions"],"patched":[],"from":["GHSA-6jwx-7vp4-9847","GO-2026-5180"],"provenance":"source"}],"summary":{"text":"A flaw in Traefik's StripPrefixRegex middleware, when combined with ForwardAuth, BasicAuth, or DigestAuth, causes it to slice the percent-encoded raw path using a length computed from the decoded path, so a dot in the stripped prefix can leave a dot-segment path that the auth check fails to match. An unauthenticated remote attacker can exploit this to reach protected content on any backend that normalizes dot-segments per RFC 3986, with no credentials or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:25Z"},"euvd":{"id":"EUVD-2026-26428","exploited":false,"provenance":"source"}}