Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2024-45410 EUVD-2024-2723GHSA-62c8-mh53-4cqvGO-2024-3135

HTTP client can remove the X-Forwarded headers in Traefik

Published Sep 19, 2024 · Updated Sep 20, 2024 · Assigned by GitHub_M

Description

Traefik is a golang, Cloud Native Application Proxy. When a HTTP request is processed by Traefik, certain HTTP headers such as X-Forwarded-Host or X-Forwarded-Port are added by Traefik before the request is routed to the application. For a HTTP client, it should not be possible to remove or modify these headers. Since the application trusts the value of these headers, security implications might arise, if they can be modified. For HTTP/1.1, however, it was found that some of theses custom headers can indeed be removed and in certain cases manipulated. The attack relies on the HTTP/1.1 behavior, that headers can be defined as hop-by-hop via the HTTP Connection header. This issue has been addressed in release versions 2.11.9 and 3.1.3. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected products

VendorProductAffectedFixed
traefik traefik < 2.11.9, >= 3.0.0, < 3.1.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed traefik 3.1.4-1.1 openSUSE-SU-2024:14365-1
openSUSE Tumbleweed traefik2 2.11.10-1.1 openSUSE-SU-2024:14367-1
ReleasePackageFixed inAdvisory
Alpine v3.24 traefik 3.1.3-r0 —
Alpine v3.23 traefik 3.1.3-r0 —
Alpine v3.22 traefik 3.1.3-r0 —
Alpine v3.21 traefik 3.1.3-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/traefik/traefik < 2.11.9 2.11.9 GHSA-62c8-mh53-4cqv
Go github.com/traefik/traefik all versions — GO-2024-3135
Go github.com/traefik/traefik/v2 < 2.11.9 2.11.9 GHSA-62c8-mh53-4cqv
Go github.com/traefik/traefik/v3 >= 3.0.0-beta3, < 3.1.3 3.1.3 GHSA-62c8-mh53-4cqv

Advisories 2

References