CVE-2026-54764
Analyzed Analyzed - Analysis Complete

Forward Header Injection in Traefik Reverse Proxy

Vulnerability report for CVE-2026-54764, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-06

Last updated on: 2026-07-08

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-06
Last Modified
2026-07-08
Generated
2026-07-27
AI Q&A
2026-07-07
EPSS Evaluated
2026-07-25
NVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
traefik traefik From 3.7.0 (inc) to 3.7.6 (exc)
traefik traefik to 2.11.51 (exc)
traefik traefik From 3.0.0 (inc) to 3.6.22 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-345 The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Traefik's ForwardAuth middleware in versions prior to v2.11.51, v3.6.22, and v3.7.6. Even when configured with trustForwardHeader set to false, the middleware incorrectly derives the X-Forwarded-Port header from the original incoming request instead of the sanitized forwarded request.

An unauthenticated remote attacker can exploit this by injecting an X-Forwarded-Proto: https header over a plain HTTP connection. This causes Traefik to forward X-Forwarded-Port: 443 to the authentication service, effectively bypassing port-based authorization checks.

Detection Guidance

This vulnerability can be detected by monitoring HTTP requests to your Traefik instance for the presence of the header "X-Forwarded-Proto: https" sent over plain HTTP connections. An attacker exploits this by injecting this header to cause Traefik to forward "X-Forwarded-Port: 443" to the authentication service, bypassing port-based authorization checks.

To detect potential exploitation attempts, you can capture and inspect HTTP traffic to your Traefik server and look for requests that include the header "X-Forwarded-Proto: https" while the connection itself is not encrypted (plain HTTP).

  • Use tcpdump or tshark to capture HTTP traffic on the Traefik server port (usually 80):
  • tcpdump -A -s 0 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'
  • Use tshark to filter HTTP requests containing the header "X-Forwarded-Proto: https":
  • tshark -Y 'http.header contains "X-Forwarded-Proto: https"' -i <interface>
  • Alternatively, check Traefik access logs or authentication service logs for requests where "X-Forwarded-Port" is set to 443 but the connection is not HTTPS.

Note that the vulnerability is fixed in Traefik versions v2.11.51, v3.6.22, and v3.7.6, so upgrading to these or later versions is recommended to prevent exploitation.

Impact Analysis

The vulnerability allows an unauthenticated remote attacker to bypass port-based authorization checks by manipulating headers. This can lead to unauthorized access to services that rely on Traefik's ForwardAuth middleware for authentication.

Such unauthorized access could compromise the security of applications behind the proxy, potentially exposing sensitive data or allowing further exploitation within the network.

Compliance Impact

This vulnerability allows an unauthenticated remote attacker to bypass port-based authorization checks by injecting an X-Forwarded-Proto: https header over a plain HTTP connection. This can lead to privilege escalation in environments where authentication services rely on the X-Forwarded-Port header for security decisions.

Such unauthorized access and privilege escalation could potentially lead to unauthorized data access or exposure, which may impact compliance with standards and regulations like GDPR or HIPAA that require strict access controls and protection of sensitive data.

However, the provided information does not explicitly detail the direct impact on compliance frameworks or specific regulatory requirements.

Mitigation Strategies

To mitigate this vulnerability, upgrade Traefik to one of the fixed versions: v2.11.51, v3.6.22, or v3.7.6.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-54764. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart