🛡️ CVE-2024-52003 — traefik

🟡 CVSS 6.1 — Medium ✅ No Known Exploit NVD
6.1
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Traefik's X-Forwarded-Prefix Header still allows for Open Redirect

Impact

There is a vulnerability in Traefik that allows the client to provide the X-Forwarded-Prefix header from an untrusted source.

Patches

  • https://github.com/traefik/traefik/releases/tag/v2.11.14
  • https://github.com/traefik/traefik/releases/tag/v3.2.1

Workarounds

No workaround.

For more information

If you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).

<details>

<summary>Original Description</summary>

Summary

The previously reported open redirect ([GHSA-6qq8-5wq3-86rp](https://github.com/traefik/traefik/security/advisories/GHSA-6qq8-5wq3-86rp)) is not fixed correctly. The safePrefix function can be tricked to return an absolute URL.

Details

The Traefik API [dashboard component](https://github.com/traefik/traefik/blob/master/pkg/api/dashboard/dashboard.go) tries to validate that the value of the header X-Forwarded-Prefix is a site relative path:

```go

http.Redirect(resp, req, safePrefix(req)+"/dashboard/", http.StatusFound)

```

```go

func safePrefix(req *http.Request) string {

prefix := req.Header.Get("X-Forwarded-Prefix")

if prefix == "" {

return ""

}

parse, err := url.Parse(prefix)

if err != nil {

return ""

}

return parse.Path

}

```

PoC

An attacker can bypass this by sending the following payload:

```bash

curl -v 'http://traefik.localhost' -H 'X-Forwarded-Prefix: %0d//a.com'

[...]

> HTTP/1.1 302 Found

> Location: //a.com/dashboard/

```

or similar:

```bash

curl -v 'http://traefik.localhost' -H 'X-Forwarded-Prefix: %2f%2fa.com'

[...]

> HTTP/1.1 302 Found

> Location: //a.com/dashboard/

```

Impact

Similar to the previously reported bug. In cache poisoning scenarios this may be exploitable.

</details>

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.

Affected software

CVE-2024-52003 is recorded against 4 packages.

  • github.com/traefik/traefik
  • github.com/traefik/traefik/v2
  • github.com/traefik/traefik/v3
  • traefik (from 3.0.0 up to 3.2.1)

Timeline and source

Published on 2 December 2024 and last revised on 4 February 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com (Advisory)
nvd.nist.gov (Advisory)
github.com (Fix)
github.com (Web)
github.com (Web)

Details

Severity Medium
CVSS Score 6.1
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2024-12-02
Updated 2026-08-12
Modified 2026-02-04

Affected Packages

Software From version Fixed in
github.com/traefik/traefik
github.com/traefik/traefik/v2
github.com/traefik/traefik/v3
traefik 3.0.0 3.2.1

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in traefik

CVE-2024-52003 is rated CVSS 6.1 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.