Skip to main content

CVE-2025-32431 — Vulnerability in traefik/traefik/v3 — CVE Details

HIGH

Traefik has a possible vulnerability with its path matchers

Published April 21, 2025Updated November 27, 2025Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.21%). Schedule for your next planned update.

Does your project use an affected github.com/traefik/traefik/v3 version?

Paste your go.sum to check it for CVE-2025-32431 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

Impact

There is a potential vulnerability in Traefik managing the requests using a PathPrefix, Path or PathRegex matcher.

When Traefik is configured to route the requests to a backend using a matcher based on the path, if the URL contains a /../ in its path, it’s possible to target a backend, exposed using another router, by-passing the middlewares chain.

Example

apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
  name: my-service
spec:
  routes:
    - match: PathPrefix(‘/service’)
      kind: Rule
      services:
        - name: service-a
          port: 8080
      middlewares:
        - name: my-middleware-a
    - match: PathPrefix(‘/service/sub-path’)
      kind: Rule
      services:
        - name: service-a
          port: 8080

In such a case, the request http://mydomain.example.com/service/sub-path/../other-path will reach the backend my-service-a without operating the middleware my-middleware-a unless the computed path is http://mydomain.example.com/service/other-path and should be computes by the first router (operating my-middleware-a).

Patches

Workaround

Add a PathRegexp rule to the matcher to prevent matching a route with a /../ in the path.

Example:

match: PathPrefix(`/service`) && !PathRegexp(`(?:(/\.\./)+.*)`)

For more information

If you have any questions or comments about this advisory, please open an issue.

Advisory Timeline

  • First published April 21, 2025 (584 days ago).
  • Last revised November 27, 2025 — 220 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/traefik/traefik/v3 to 3.4.0-rc2 or later
go get github.com/traefik/traefik/v3@v3.4.0-rc2
Go
Update github.com/traefik/traefik/v3 to 3.3.6 or later
go get github.com/traefik/traefik/v3@v3.3.6
Go
Update github.com/traefik/traefik/v2 to 2.11.23 or later
go get github.com/traefik/traefik/v2@v2.11.23

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: Go (3).

PackageFixed In
github.com/traefik/traefik/v3 Go · Affected: 3.4.0-rc13.4.0-rc2
github.com/traefik/traefik Go · Affected: All versionsRange-based data available
github.com/traefik/traefik/v3 Go · Affected: All versions3.3.6
github.com/traefik/traefik/v2 Go · Affected: All versions2.11.23

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P

Frequently Asked Questions

What is CVE-2025-32431?
Traefik has a possible vulnerability with its path matchers. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2025-32431?
CVE-2025-32431 affects github.com/traefik/traefik/v3, github.com/traefik/traefik and github.com/traefik/traefik/v2. It has a 1.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-32431 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
1.21%
EPSS percentile: 68.2

This is an above-median EPSS score — 68.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-6p68-w45g-48j7
GO-2025-3634

Related CVEs

  • CVE-2026-65600
    CRITICAL

    Traefik: Authentication Bypass via Path Traversal in ReplacePathRegex Middleware

  • CVE-2026-71324
    HIGH

    Traefik: Cross-user response poisoning via proxied CONNECT on Traefik's shared backend keep-alive pool

  • CVE-2026-39858
    HIGH

    Traefik: Pre-authentication decision bypass due to forwarded alias spoofing

  • CVE-2026-35051
    HIGH

    Traefik's ForwardAuth trustForwardHeader=false allows spoofed X-Forwarded-Prefix to bypass authentication

  • CVE-2026-40912
    HIGH

    Traefik has an StripPrefixRegex Middleware Authorization Bypass via Path/RawPath Desync

  • CVE-2026-53622
    HIGH

    Traefik: HTTP/3 mTLS bypass via exact SNI TLSOptions lookup for wildcard and mixed-case hosts

  • CVE-2026-32305
    HIGH

    Traefik has a Potential mTLS Bypass via Fragmented TLS ClientHello Causing Pre-SNI Sniff Fallback to Default Non-mTLS TLS Config

  • CVE-2026-44774
    MEDIUM

    Traefik: Gateway API TraefikService backend accepts rest@internal, allowing unauthorized exposure of the REST provider despite providers.rest.insecure=false

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum