CVE-2024-45410 HTTP client can remove the X-Forwarded headers in Traefik
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
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.
Upgrade path
6 packages: 5 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| traefik(Go) | < 2.11.9; >= 3.0.0-beta3, < 3.1.3; All versions | 2.11.9, 3.1.3 | Partially fixed |
| alpine/traefik(Alpine v3.21) | >= 3.0.0, < 3.1.3-r0 | 3.1.3-r0 | Fixed |
| alpine/traefik(Alpine v3.22) | >= 3.0.0, < 3.1.3-r0 | 3.1.3-r0 | Fixed |
| alpine/traefik(Alpine v3.23) | >= 3.0.0, < 3.1.3-r0 | 3.1.3-r0 | Fixed |
| alpine/traefik(Alpine v3.24) | >= 3.0.0, < 3.1.3-r0 | 3.1.3-r0 | Fixed |
| traefik | < 2.11.9; = < 2.11.9; = >= 3.0.0, < 3.1.3; >= 3.0.0, < 3.1.3 | 2.11.9, 3.1.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| traefik(Go) | >= 3.0.0-beta3, < 3.1.3 | 3.1.3 |
| traefik(Go) | < 2.11.9 | 2.11.9 |
| traefik(Go) | All versions | No fix listed |
| traefik | = < 2.11.9 | No fix listed |
| traefik | = >= 3.0.0, < 3.1.3 | No fix listed |
| traefik | < 2.11.9 | 2.11.9 |
| traefik | >= 3.0.0, < 3.1.3 | 3.1.3 |
| alpine/traefik(Alpine:v3.21) | >= 3.0.0, < 3.1.3-r0 | 3.1.3-r0 |
| alpine/traefik(Alpine:v3.22) | >= 3.0.0, < 3.1.3-r0 | 3.1.3-r0 |
| alpine/traefik(Alpine:v3.23) | >= 3.0.0, < 3.1.3-r0 | 3.1.3-r0 |
| alpine/traefik(Alpine:v3.24) | >= 3.0.0, < 3.1.3-r0 | 3.1.3-r0 |
References
- https://github.com/traefik/traefik/security/advisories/GHSA-62c8-mh53-4cqv vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- https://github.com/traefik/traefik/releases/tag/v2.11.9 release-notes
- https://github.com/traefik/traefik/releases/tag/v3.1.3 release-notes
- github.com
- security.alpinelinux.org vendor-advisory