Skip to content

CVE-2026-54764 ForwardAuth middleware leaks X-Forwarded-Port spoofing via untrusted X-Forwarded-Proto when trustForwardHeader=false

MediumCVSS 6.9 EPSS 0.28%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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