cve.bz

CVE-2026-40912 traefik traefik: Path traversal

7.8 highExploit referenceEPSS 0.8%Fix available

High (7.8) in traefik traefik. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/traefik/traefik/v3 3.6.14, 3.7.0-rc.2.

On this page
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.

Severity

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

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
EPSS
0.8% (unchanged from 0.8% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-05-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-706 Use of Incorrectly-Resolved Name or Reference
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40912 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40912?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40912?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40912 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
traefik:traefikbefore 2.11.43
traefik:traefikfrom 3.0.0 before 3.6.14
traefik:traefik3.7.0:ea1
traefik:traefik3.7.0:ea2
traefik:traefik3.7.0:ea3
traefik:traefik3.7.0:rc1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6jwx-7vp4-9847Gogithub.com/traefik/traefik/v3>=3.7.0-ea.1 <3.7.0-rc.23.7.0-rc.2
GHSA-6jwx-7vp4-9847Gogithub.com/traefik/traefik/v3>=3.0.0-beta1 <3.6.143.6.14
GHSA-6jwx-7vp4-9847Gogithub.com/traefik/traefik/v2<2.11.432.11.43
GHSA-6jwx-7vp4-9847Gogithub.com/traefik/traefik<=1.7.34no fix published
GO-2026-5180Gogithub.com/traefik/traefikall versionsno fix published
GO-2026-5180Gogithub.com/traefik/traefik/v2<2.11.432.11.43
GO-2026-5180Gogithub.com/traefik/traefik/v3>=3.0.0-beta1 <3.6.14
>=3.7.0-ea.1 <3.7.0-rc.2
3.6.14, 3.7.0-rc.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedtraefik3.6.15-1.1openSUSE-SU-2026:10697-1
openSUSETumbleweedtraefik22.11.44-1.1openSUSE-SU-2026:10698-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat OpenShift Dev Spaces 3.28devspaces/traefik-rhel9:1779786779Fixed 2026-05-28RHSA-2026:21772

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40912.

Attack patterns (CAPEC)

  • CAPEC-48 Passing Local Filenames to Functions That Expect a URL Likelihood: High · Severity: High
  • CAPEC-159 Redirect Access to Libraries Likelihood: High · Severity: Very High
  • CAPEC-177 Create files with the same name as files protected with a higher classification Severity: Very High
  • CAPEC-641 DLL Side-Loading Likelihood: Low · Severity: High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON