{"id":"CVE-2024-52003","aliases":["GHSA-h924-8g65-j9wg","GO-2024-3299"],"summary":"X-Forwarded-Prefix Header still allows for Open Redirect in traefik","published_at":"2024-11-29T08:18:40Z","modified_at":"2026-09-10T03:50:21.594811Z","products":[{"slug":"traefik","name":"Traefik","category":"proxy"}],"rating":{"severity":"medium","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"vendor_ratings":[{"source":"SUSE","rating":"moderate"},{"source":"GitHub","rating":"low"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.004230000078678131,"percentile":0.375,"date":"2026-11-20T00:00:00Z"},"priority":8.3,"record_count":8,"vendors":["SUSE","GitHub","Go"],"details":"Traefik (pronounced traffic) is an HTTP reverse proxy and load balancer. There is a vulnerability in Traefik that allows the client to provide the X-Forwarded-Prefix header from an untrusted source. This issue has been addressed in versions 2.11.14 and 3.2.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.","affected_stack":[{"ecosystem":"Go","package":"github.com/traefik/traefik","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"v1.7.34"}]}],"provider":"github-repo-advisories","source":"GHSA-h924-8g65-j9wg","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik","purl":"pkg:golang/github.com/traefik/traefik","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"provider":"osv","source":"GO-2024-3299","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v2","purl":"pkg:golang/github.com/traefik/traefik/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.11.14"}]}],"fixed":["2.11.14"],"provider":"osv","source":"GHSA-h924-8g65-j9wg","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"v2.11.14"}]}],"fixed":["v2.11.14"],"provider":"github-repo-advisories","source":"GHSA-h924-8g65-j9wg","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v2","purl":"pkg:golang/github.com/traefik/traefik/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.11.14"}]}],"fixed":["2.11.14"],"provider":"osv","source":"GO-2024-3299","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"v3.2.1"}]}],"fixed":["v3.2.1"],"provider":"github-repo-advisories","source":"GHSA-h924-8g65-j9wg","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","purl":"pkg:golang/github.com/traefik/traefik/v3","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.2.1"}]}],"fixed":["3.2.1"],"provider":"osv","source":"GHSA-h924-8g65-j9wg","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","purl":"pkg:golang/github.com/traefik/traefik/v3","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.2.1"}]}],"fixed":["3.2.1"],"provider":"osv","source":"GO-2024-3299","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"traefik/traefik","versions":["< 2.11.14",">= 3.0.0, < 3.2.1"],"provider":"cvelistv5","source":"CVE-2024-52003","relation":"self"},{"ecosystem":"NVD","package":"traefik:traefik","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.11.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.2.1"}]}],"fixed":["2.11.14","3.2.1"],"provider":"nvd","source":"CVE-2024-52003","relation":"self"},{"ecosystem":"openSUSE:Tumbleweed","package":"govulncheck-vulndb","purl":"pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweed","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.20241209T183251-1.1"}]}],"fixed":["0.0.20241209T183251-1.1"],"provider":"osv","source":"openSUSE-SU-2024:14567-1","relation":"upstream"}],"product_status":[{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 16.0","cpe":"cpe:/o:suse:sles:16:16.0:server","status":"fixed","packages":["govulncheck-vulndb"],"package_count":1,"fixed":["govulncheck-vulndb-0.0.20250814T182633-160000.1.2"],"advisories":[],"provider":"csaf-suse","source":"CVE-2024-52003"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 16.1","cpe":"cpe:/o:suse:sles:16:16.1:server","status":"fixed","packages":["govulncheck-vulndb"],"package_count":1,"fixed":["govulncheck-vulndb-0.0.20260916T180043-160100.1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2024-52003"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP applications 16.0","cpe":"cpe:/o:suse:sles:16:16.0:server-sap","status":"fixed","packages":["govulncheck-vulndb"],"package_count":1,"fixed":["govulncheck-vulndb-0.0.20250814T182633-160000.1.2"],"advisories":[],"provider":"csaf-suse","source":"CVE-2024-52003"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP applications 16.1","cpe":"cpe:/o:suse:sles:16:16.1:server-sap","status":"fixed","packages":["govulncheck-vulndb"],"package_count":1,"fixed":["govulncheck-vulndb-0.0.20260916T180043-160100.1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2024-52003"},{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["govulncheck-vulndb"],"package_count":1,"fixed":["govulncheck-vulndb-0.0.20241209T183251-1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2024-52003"}],"records":[{"provider":"csaf-suse","source_id":"openSUSE-SU-2024:14567-1","relation":"upstream","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/EK3MV2UFLDNRIXIWLVT5CJNSLB2MKFBU/","license":"TLP:CLEAR, mirroring permitted","published_at":"2024-12-11T00:00:00Z","modified_at":"2024-12-11T00:00:00Z","summary":"govulncheck-vulndb-0.0.20241209T183251-1.1 on GA media","details":"govulncheck-vulndb-0.0.20241209T183251-1.1 on GA media\n\nThese are all security issues fixed in the govulncheck-vulndb-0.0.20241209T183251-1.1 package on the GA media of openSUSE Tumbleweed.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"openSUSE-SU-2024:14567-1"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"openSUSE-SU-2024:14567-1"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","source":"openSUSE-SU-2024:14567-1"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","source":"openSUSE-SU-2024:14567-1"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"openSUSE-SU-2024:14567-1"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"openSUSE-SU-2024:14567-1"},{"type":"SUSE","score":"moderate","source":"openSUSE-SU-2024:14567-1"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2024/opensuse-su-2024_14567-1.json"},{"type":"WEB","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/EK3MV2UFLDNRIXIWLVT5CJNSLB2MKFBU/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-10220/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-36620/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-36621/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-36623/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-37820/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-43784/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-45719/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-50948/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-52003/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-52529/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-52801/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-53259/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-53264/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-53858/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-53862/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-54131/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-54132/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-6156/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-6219/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-6538/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-8676/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-10220"},{"type":"WEB","url":"https://bugzilla.suse.com/1233583"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-36620"},{"type":"WEB","url":"https://bugzilla.suse.com/1234127"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-36621"},{"type":"WEB","url":"https://bugzilla.suse.com/1234131"}]},{"provider":"osv","source_id":"openSUSE-SU-2024:14567-1","relation":"upstream","url":"https://osv.dev/vulnerability/openSUSE-SU-2024:14567-1","published_at":"2024-12-11T00:00:00Z","modified_at":"2026-02-04T02:48:53.761072Z","summary":"govulncheck-vulndb-0.0.20241209T183251-1.1 on GA media","details":"These are all security issues fixed in the govulncheck-vulndb-0.0.20241209T183251-1.1 package on the GA media of openSUSE Tumbleweed.","severity":[],"affected":[{"ecosystem":"openSUSE:Tumbleweed","package":"govulncheck-vulndb","purl":"pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweed","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.20241209T183251-1.1"}]}],"fixed":["0.0.20241209T183251-1.1"],"provider":"osv","source":"openSUSE-SU-2024:14567-1","relation":"upstream"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/EK3MV2UFLDNRIXIWLVT5CJNSLB2MKFBU/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-10220"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-36620"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-36621"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-36623"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-37820"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-43784"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-45719"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-50948"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-52003"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-52529"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-52801"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-53259"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-53264"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-53858"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-53862"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-54131"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-54132"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-6156"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-6219"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-6538"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-8676"}]},{"provider":"cvelistv5","source_id":"CVE-2024-52003","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-52003","license":"CC-BY-4.0","published_at":"2024-11-29T18:15:34.123Z","modified_at":"2024-12-02T11:19:36.74Z","summary":"X-Forwarded-Prefix Header still allows for Open Redirect in traefik","details":"Traefik (pronounced traffic) is an HTTP reverse proxy and load balancer. There is a vulnerability in Traefik that allows the client to provide the X-Forwarded-Prefix header from an untrusted source. This issue has been addressed in versions 2.11.14 and 3.2.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","source":"CVE-2024-52003"}],"affected":[{"ecosystem":"CVE","package":"traefik/traefik","versions":["< 2.11.14",">= 3.0.0, < 3.2.1"],"provider":"cvelistv5","source":"CVE-2024-52003","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/traefik/traefik/security/advisories/GHSA-h924-8g65-j9wg"},{"type":"WEB","url":"https://github.com/traefik/traefik/pull/11253"},{"type":"WEB","url":"https://github.com/traefik/traefik/releases/tag/v2.11.14"},{"type":"WEB","url":"https://github.com/traefik/traefik/releases/tag/v3.2.1"}]},{"provider":"csaf-suse","source_id":"CVE-2024-52003","relation":"self","url":"https://www.suse.com/security/cve/CVE-2024-52003/","license":"TLP:CLEAR, mirroring permitted","published_at":"2024-12-12T06:58:54Z","modified_at":"2025-11-03T01:12:12Z","summary":"SUSE CVE CVE-2024-52003","details":"SUSE CVE-2024-52003\n\nTraefik (pronounced traffic) is an HTTP reverse proxy and load balancer. There is a vulnerability in Traefik that allows the client to provide the X-Forwarded-Prefix header from an untrusted source. This issue has been addressed in versions 2.11.14 and 3.2.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"CVE-2024-52003"},{"type":"SUSE","score":"moderate","source":"CVE-2024-52003"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 16.0","cpe":"cpe:/o:suse:sles:16:16.0:server","status":"fixed","packages":["govulncheck-vulndb"],"package_count":1,"fixed":["govulncheck-vulndb-0.0.20250814T182633-160000.1.2"],"advisories":[],"provider":"csaf-suse","source":"CVE-2024-52003"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 16.1","cpe":"cpe:/o:suse:sles:16:16.1:server","status":"fixed","packages":["govulncheck-vulndb"],"package_count":1,"fixed":["govulncheck-vulndb-0.0.20260916T180043-160100.1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2024-52003"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP applications 16.0","cpe":"cpe:/o:suse:sles:16:16.0:server-sap","status":"fixed","packages":["govulncheck-vulndb"],"package_count":1,"fixed":["govulncheck-vulndb-0.0.20250814T182633-160000.1.2"],"advisories":[],"provider":"csaf-suse","source":"CVE-2024-52003"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP applications 16.1","cpe":"cpe:/o:suse:sles:16:16.1:server-sap","status":"fixed","packages":["govulncheck-vulndb"],"package_count":1,"fixed":["govulncheck-vulndb-0.0.20260916T180043-160100.1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2024-52003"},{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["govulncheck-vulndb"],"package_count":1,"fixed":["govulncheck-vulndb-0.0.20241209T183251-1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2024-52003"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-52003"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/EK3MV2UFLDNRIXIWLVT5CJNSLB2MKFBU/"}]},{"provider":"github-repo-advisories","source_id":"GHSA-h924-8g65-j9wg","relation":"self","url":"https://github.com/traefik/traefik/security/advisories/GHSA-h924-8g65-j9wg","license":"GitHub Terms of Service","published_at":"2024-11-29T08:18:40Z","modified_at":"2024-11-29T08:18:40Z","summary":"X-Forwarded-Prefix Header allows for Open Redirect","details":"### Impact\r\n\r\nThere is a vulnerability in Traefik that allows the client to provide the `X-Forwarded-Prefix` header from an untrusted source.\r\n\r\n### Patches\r\n\r\n- https://github.com/traefik/traefik/releases/tag/v2.11.14\r\n- https://github.com/traefik/traefik/releases/tag/v3.2.1\r\n\r\n### Workarounds\r\n\r\nNo workaround.\r\n\r\n### For more information\r\n\r\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).\r\n\r\n<details>\r\n<summary>Original Description</summary>\r\n### Summary\r\nThe 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.\r\n\r\n\r\n\r\n### Details\r\nThe 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:\r\n```go\r\nhttp.Redirect(resp, req, safePrefix(req)+\"/dashboard/\", http.StatusFound)\r\n```\r\n\r\n```go\r\nfunc safePrefix(req *http.Request) string {\r\n\tprefix := req.Header.Get(\"X-Forwarded-Prefix\")\r\n\tif prefix == \"\" {\r\n\t\treturn \"\"\r\n\t}\r\n\r\n\tparse, err := url.Parse(prefix)\r\n\tif err != nil {\r\n\t\treturn \"\"\r\n\t}\r\n\r\n\treturn parse.Path\r\n}\r\n```\r\n\r\n### PoC\r\nAn attacker can bypass this by sending the following payload:\r\n\r\n```bash\r\ncurl -v 'http://traefik.localhost' -H 'X-Forwarded-Prefix: %0d//a.com'\r\n[...]\r\n> HTTP/1.1 302 Found\r\n> Location: //a.com/dashboard/\r\n```\r\n\r\nor similar:\r\n\r\n```bash\r\ncurl -v 'http://traefik.localhost' -H 'X-Forwarded-Prefix: %2f%2fa.com'\r\n[...]\r\n> HTTP/1.1 302 Found\r\n> Location: //a.com/dashboard/\r\n```\r\n\r\n### Impact\r\nSimilar to the previously reported bug. In cache poisoning scenarios this may be exploitable.\r\n</details>","severity":[{"type":"GitHub","score":"low","source":"GHSA-h924-8g65-j9wg"}],"affected":[{"ecosystem":"Go","package":"github.com/traefik/traefik","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"v1.7.34"}]}],"provider":"github-repo-advisories","source":"GHSA-h924-8g65-j9wg","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"v2.11.14"}]}],"fixed":["v2.11.14"],"provider":"github-repo-advisories","source":"GHSA-h924-8g65-j9wg","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"v3.2.1"}]}],"fixed":["v3.2.1"],"provider":"github-repo-advisories","source":"GHSA-h924-8g65-j9wg","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/traefik/traefik/security/advisories/GHSA-h924-8g65-j9wg"}]},{"provider":"nvd","source_id":"CVE-2024-52003","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52003","severity":[],"affected":[{"ecosystem":"NVD","package":"traefik:traefik","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.11.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.2.1"}]}],"fixed":["2.11.14","3.2.1"],"provider":"nvd","source":"CVE-2024-52003","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-h924-8g65-j9wg","relation":"self","url":"https://osv.dev/vulnerability/GHSA-h924-8g65-j9wg","license":"CC-BY-4.0","published_at":"2024-12-02T17:12:38Z","modified_at":"2026-09-10T03:50:21.594811Z","summary":"Traefik's X-Forwarded-Prefix Header still allows for Open Redirect","details":"### Impact\n\nThere is a vulnerability in Traefik that allows the client to provide the `X-Forwarded-Prefix` header from an untrusted source.\n\n### Patches\n\n- https://github.com/traefik/traefik/releases/tag/v2.11.14\n- https://github.com/traefik/traefik/releases/tag/v3.2.1\n\n### Workarounds\n\nNo workaround.\n\n### For more information\n\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).\n\n<details>\n<summary>Original Description</summary>\n### Summary\nThe 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.\n\n\n\n### Details\nThe 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:\n```go\nhttp.Redirect(resp, req, safePrefix(req)+\"/dashboard/\", http.StatusFound)\n```\n\n```go\nfunc safePrefix(req *http.Request) string {\n\tprefix := req.Header.Get(\"X-Forwarded-Prefix\")\n\tif prefix == \"\" {\n\t\treturn \"\"\n\t}\n\n\tparse, err := url.Parse(prefix)\n\tif err != nil {\n\t\treturn \"\"\n\t}\n\n\treturn parse.Path\n}\n```\n\n### PoC\nAn attacker can bypass this by sending the following payload:\n\n```bash\ncurl -v 'http://traefik.localhost' -H 'X-Forwarded-Prefix: %0d//a.com'\n[...]\n> HTTP/1.1 302 Found\n> Location: //a.com/dashboard/\n```\n\nor similar:\n\n```bash\ncurl -v 'http://traefik.localhost' -H 'X-Forwarded-Prefix: %2f%2fa.com'\n[...]\n> HTTP/1.1 302 Found\n> Location: //a.com/dashboard/\n```\n\n### Impact\nSimilar to the previously reported bug. In cache poisoning scenarios this may be exploitable.\n</details>","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","source":"GHSA-h924-8g65-j9wg"}],"affected":[{"ecosystem":"Go","package":"github.com/traefik/traefik/v2","purl":"pkg:golang/github.com/traefik/traefik/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.11.14"}]}],"fixed":["2.11.14"],"provider":"osv","source":"GHSA-h924-8g65-j9wg","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","purl":"pkg:golang/github.com/traefik/traefik/v3","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.2.1"}]}],"fixed":["3.2.1"],"provider":"osv","source":"GHSA-h924-8g65-j9wg","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/traefik/traefik/security/advisories/GHSA-h924-8g65-j9wg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52003"},{"type":"WEB","url":"https://github.com/traefik/traefik/pull/11253"},{"type":"PACKAGE","url":"https://github.com/traefik/traefik"},{"type":"WEB","url":"https://github.com/traefik/traefik/releases/tag/v2.11.14"},{"type":"WEB","url":"https://github.com/traefik/traefik/releases/tag/v3.2.1"}]},{"provider":"osv","source_id":"GO-2024-3299","relation":"self","url":"https://osv.dev/vulnerability/GO-2024-3299","license":"CC-BY-4.0","published_at":"2024-12-02T20:06:38Z","modified_at":"2026-02-04T03:37:53.775633Z","summary":"Traefik's X-Forwarded-Prefix Header still allows for Open Redirect in github.com/traefik/traefik","details":"Traefik's X-Forwarded-Prefix Header still allows for Open Redirect in github.com/traefik/traefik","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/traefik/traefik","purl":"pkg:golang/github.com/traefik/traefik","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"provider":"osv","source":"GO-2024-3299","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v2","purl":"pkg:golang/github.com/traefik/traefik/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.11.14"}]}],"fixed":["2.11.14"],"provider":"osv","source":"GO-2024-3299","relation":"self"},{"ecosystem":"Go","package":"github.com/traefik/traefik/v3","purl":"pkg:golang/github.com/traefik/traefik/v3","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.2.1"}]}],"fixed":["3.2.1"],"provider":"osv","source":"GO-2024-3299","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/traefik/traefik/security/advisories/GHSA-h924-8g65-j9wg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52003"},{"type":"FIX","url":"https://github.com/traefik/traefik/pull/11253"},{"type":"WEB","url":"https://github.com/traefik/traefik/releases/tag/v2.11.14"},{"type":"WEB","url":"https://github.com/traefik/traefik/releases/tag/v3.2.1"}]}],"references":[{"type":"WEB","url":"https://github.com/traefik/traefik/security/advisories/GHSA-h924-8g65-j9wg"},{"type":"WEB","url":"https://github.com/traefik/traefik/pull/11253"},{"type":"WEB","url":"https://github.com/traefik/traefik/releases/tag/v2.11.14"},{"type":"WEB","url":"https://github.com/traefik/traefik/releases/tag/v3.2.1"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-52003"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/EK3MV2UFLDNRIXIWLVT5CJNSLB2MKFBU/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52003"},{"type":"PACKAGE","url":"https://github.com/traefik/traefik"}],"sources":[{"provider":"csaf-suse","source_id":"openSUSE-SU-2024:14567-1","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/EK3MV2UFLDNRIXIWLVT5CJNSLB2MKFBU/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2024-12-11T00:00:00Z","relation":"upstream"},{"provider":"osv","source_id":"openSUSE-SU-2024:14567-1","url":"https://osv.dev/vulnerability/openSUSE-SU-2024:14567-1","modified_at":"2026-02-04T02:48:53.761072Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2024-52003","url":"https://www.cve.org/CVERecord?id=CVE-2024-52003","license":"CC-BY-4.0","modified_at":"2024-12-02T11:19:36.74Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2024-52003","url":"https://www.suse.com/security/cve/CVE-2024-52003/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-11-03T01:12:12Z","relation":"self"},{"provider":"github-repo-advisories","source_id":"GHSA-h924-8g65-j9wg","url":"https://github.com/traefik/traefik/security/advisories/GHSA-h924-8g65-j9wg","license":"GitHub Terms of Service","modified_at":"2024-11-29T08:18:40Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2024-52003","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52003","relation":"self"},{"provider":"osv","source_id":"GHSA-h924-8g65-j9wg","url":"https://osv.dev/vulnerability/GHSA-h924-8g65-j9wg","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:21.594811Z","relation":"self"},{"provider":"osv","source_id":"GO-2024-3299","url":"https://osv.dev/vulnerability/GO-2024-3299","license":"CC-BY-4.0","modified_at":"2026-02-04T03:37:53.775633Z","relation":"self"}]}
