Skip to content
OpenAdvisories

Description

In Traefik before versions 1.7.26, 2.2.8, and 2.3.0-rc3, there exists a potential open redirect vulnerability in Traefik's handling of the "X-Forwarded-Prefix" header. The Traefik API dashboard component doesn't validate that the value of the header "X-Forwarded-Prefix" is a site relative path and will redirect to any header provided URI. Successful exploitation of an open redirect can be used to entice victims to disclose sensitive information. Active Exploitation of this issue is unlikely as it would require active header injection, however the Traefik team addressed this issue nonetheless to prevent abuse in e.g. cache poisoning scenarios.

Affected products

VendorProductAffectedFixed
containous traefik < 1.7.26, >= 2.0.0, < 2.2.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Alpine v3.24 traefik 2.2.8-r0 —
Alpine v3.23 traefik 2.2.8-r0 —
Alpine v3.22 traefik 2.2.8-r0 —
Alpine v3.21 traefik 2.2.8-r0 —
Alpine v3.20 traefik 2.2.8-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 traefik 2.2.8-r0 —
Alpine v3.18 traefik 2.2.8-r0 —
Alpine v3.17 traefik 2.2.8-r0 —
Alpine v3.16 traefik 2.2.8-r0 —

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/containous/traefik >= 1.5.0-rc5, < 1.7.26 1.7.26 GHSA-6qq8-5wq3-86rp
Go github.com/containous/traefik/api >= 1.5.0-rc5, < 1.7.26 1.7.26 GHSA-6qq8-5wq3-86rp
Go github.com/containous/traefik/v2 < 2.2.8 2.2.8 GHSA-6qq8-5wq3-86rp
Go github.com/containous/traefik/v2 >= 2.3.0-rc1, < 2.3.0-rc3 2.3.0-rc3 GHSA-6qq8-5wq3-86rp
Go github.com/containous/traefik/v2/pkg/api < 2.2.8 2.2.8 GHSA-6qq8-5wq3-86rp
Go github.com/containous/traefik/v2/pkg/api >= 2.3.0-rc1, < 2.3.0-rc3 2.3.0-rc3 GHSA-6qq8-5wq3-86rp
Go github.com/traefik/traefik >= 1.5.0-rc5, < 1.7.26 1.7.26 GHSA-6qq8-5wq3-86rp
Go github.com/traefik/traefik/api >= 1.5.0-rc5, < 1.7.26 1.7.26 GHSA-6qq8-5wq3-86rp
Go github.com/traefik/traefik/v2 < 2.3.0-rc6 2.3.0-rc6 GHSA-6qq8-5wq3-86rp
Go github.com/traefik/traefik/v2 >= 2.3.0-rc1, < 2.3.0-rc6 2.3.0-rc6 GHSA-6qq8-5wq3-86rp
Go github.com/traefik/traefik/v2/pkg/api < 2.3.0-rc6 2.3.0-rc6 GHSA-6qq8-5wq3-86rp
Go github.com/traefik/traefik/v2/pkg/api >= 2.3.0-rc1, < 2.3.0-rc6 2.3.0-rc6 GHSA-6qq8-5wq3-86rp

References