Vulnerability · Published Sep 19, 2024 · Assigned by GitHub_M

CVE-2024-45410HTTP client can remove the X-Forwarded headers in Traefik

Critical 9.8

In plain English

A critical-severity insufficient verification of data authenticity in traefik from traefik. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.5%top 25.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.21traefik3.1.3-r0ALPINE-CVE-2024-45410
Alpine:v3.22traefik3.1.3-r0ALPINE-CVE-2024-45410
Alpine:v3.23traefik3.1.3-r0ALPINE-CVE-2024-45410
Alpine:v3.24traefik3.1.3-r0ALPINE-CVE-2024-45410
Gogithub.com/traefik/traefik2.11.9GHSA-62c8-mh53-4cqv
Gogithub.com/traefik/traefikno fix listedGO-2024-3135
Gogithub.com/traefik/traefik/v22.11.9GHSA-62c8-mh53-4cqv
Gogithub.com/traefik/traefik/v22.11.9GO-2024-3135
Gogithub.com/traefik/traefik/v33.1.3GO-2024-3135
Gogithub.com/traefik/traefik/v33.1.3GHSA-62c8-mh53-4cqv

Affected products (as reported)

VendorProductVersions
traefik traefik < 2.11.9>= 3.0.0, < 3.1.3

Weakness: CWE-345, CWE-348 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References