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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | traefik | 3.1.3-r0 | ALPINE-CVE-2024-45410 |
| Alpine:v3.22 | traefik | 3.1.3-r0 | ALPINE-CVE-2024-45410 |
| Alpine:v3.23 | traefik | 3.1.3-r0 | ALPINE-CVE-2024-45410 |
| Alpine:v3.24 | traefik | 3.1.3-r0 | ALPINE-CVE-2024-45410 |
| Go | github.com/traefik/traefik | 2.11.9 | GHSA-62c8-mh53-4cqv |
| Go | github.com/traefik/traefik | no fix listed | GO-2024-3135 |
| Go | github.com/traefik/traefik/v2 | 2.11.9 | GHSA-62c8-mh53-4cqv |
| Go | github.com/traefik/traefik/v2 | 2.11.9 | GO-2024-3135 |
| Go | github.com/traefik/traefik/v3 | 3.1.3 | GO-2024-3135 |
| Go | github.com/traefik/traefik/v3 | 3.1.3 | GHSA-62c8-mh53-4cqv |
Affected products (as reported)
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
- https://github.com/traefik/traefik/security/advisories/GHSA-62c8-mh53-4cqv x_refsource_CONFIRM
- https://github.com/traefik/traefik/releases/tag/v2.11.9 x_refsource_MISC
- https://github.com/traefik/traefik/releases/tag/v3.1.3 x_refsource_MISC