CVE-2026-54764 ForwardAuth middleware leaks X-Forwarded-Port spoofing via untrusted X-Forwarded-Proto when trustForwardHeader=false
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Red HatNetwork Appliances
Description
Traefik is an HTTP reverse proxy and load balancer. Prior to v2.11.51, v3.6.22, and v3.7.6, Traefik's ForwardAuth middleware, even when configured with trustForwardHeader: false, derives the X-Forwarded-Port header sent to the authentication service from the original incoming request instead of the sanitized forwarded request. As a result, an unauthenticated remote attacker can inject an X-Forwarded-Proto: https header over a plain HTTP connection and cause Traefik to forward X-Forwarded-Port: 443 to the authentication service, bypassing port-based authorization checks. This issue is fixed in versions v2.11.51, v3.6.22, and v3.7.6.
Upgrade path
3 packages: 1 fixed, 1 partially fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/devspaces/traefik-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| traefik(Go) | < 2.11.51; < 3.6.22; <= 1.7.34; <= 2.11.50 +4 more | 2.11.51, 3.6.22, 3.7.6 | Partially fixed |
| traefik | < 2.11.51; = < 2.11.51; = >= 3.0.0, < 3.6.22; = >= 3.7.0, < 3.7.6 +2 more | 2.11.51, 3.6.22, 3.7.6 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| traefik | = < 2.11.51 | No fix listed |
| traefik | = >= 3.0.0, < 3.6.22 | No fix listed |
| traefik | = >= 3.7.0, < 3.7.6 | No fix listed |
| traefik(Go) | < 2.11.51 | 2.11.51 |
| traefik(Go) | < 3.6.22 | 3.6.22 |
| traefik(Go) | >= 3.7.0, < 3.7.6 | 3.7.6 |
| traefik(Go) | <= 1.7.34 | No fix listed |
| traefik(Go) | All versions | No fix listed |
| redhat/devspaces/traefik-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| traefik(Go) | <= 2.11.50 | No fix listed |
| traefik(Go) | <= 3.6.21 | No fix listed |
| traefik(Go) | >= 3.7.0, <= 3.7.5 | No fix listed |
| traefik | < 2.11.51 | 2.11.51 |
| traefik | >= 3.0.0, < 3.6.22 | 3.6.22 |
| traefik | >= 3.7.0, < 3.7.6 | 3.7.6 |
References
- https://github.com/traefik/traefik/security/advisories/GHSA-3q9r-p662-5j8m patch vendor-advisory
- https://github.com/traefik/traefik/pull/13344 issue-tracking patch
- https://github.com/traefik/traefik/commit/7ae92d8c2c10ac04ef5a03df0ed5019ce0f44b2d patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com
- github.com
- github.com
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2497501 issue-tracking
- www.cve.org
- github.com