CVE-2021-29622 Arbitrary redirects under /new endpoint
MediumCVSS 6.1
EPSS 19.6%
- Published
- Updated
- Exploit status
- No public exploit known
Description
Prometheus is an open-source monitoring system and time series database. In 2.23.0, Prometheus changed its default UI to the New ui. To ensure a seamless transition, the URL's prefixed by /new redirect to /. Due to a bug in the code, it is possible for an attacker to craft an URL that can redirect to any other URL, in the /new endpoint. If a user visits a prometheus server with a specially crafted address, they can be redirected to an arbitrary URL. The issue was patched in the 2.26.1 and 2.27.1 releases. In 2.28.0, the /new endpoint will be removed completely. The workaround is to disable access to /new via a reverse proxy in front of Prometheus.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| prometheus(Go) | >= 2.23.0, < 2.26.1 | 2.26.1 |
| prometheus(Go) | >= 2.27.0, < 2.27.1 | 2.27.1 |
| prometheus(Go) | = 2.27.0 | No fix listed |
| prometheus(Go) | >= 0.0.0-20201116123734-de1c1243f4dd, < 0.0.0-20210518124745-db7f0bcec27b | 0.0.0-20210518124745-db7f0bcec27b |
| prometheus | >= 2.23.0, < 2.26.1 | 2.26.1 |
| prometheus | = 2.27.0 | No fix listed |
| prometheus | = 2.27.0-rc0 | No fix listed |
| alpine/prometheus(Alpine:v3.14) | >= 2.23.0, < 2.27.1-r0 | 2.27.1-r0 |
| alpine/prometheus(Alpine:v3.15) | >= 2.23.0, < 2.27.1-r0 | 2.27.1-r0 |
| alpine/prometheus(Alpine:v3.16) | >= 2.23.0, < 2.27.1-r0 | 2.27.1-r0 |
| alpine/prometheus(Alpine:v3.17) | >= 2.23.0, < 2.27.1-r0 | 2.27.1-r0 |
| alpine/prometheus(Alpine:v3.18) | >= 2.23.0, < 2.27.1-r0 | 2.27.1-r0 |
| alpine/prometheus(Alpine:v3.19) | >= 2.23.0, < 2.27.1-r0 | 2.27.1-r0 |
| alpine/prometheus(Alpine:v3.20) | >= 2.23.0, < 2.27.1-r0 | 2.27.1-r0 |
| alpine/prometheus(Alpine:v3.21) | >= 2.23.0, < 2.27.1-r0 | 2.27.1-r0 |
| alpine/prometheus(Alpine:v3.22) | >= 2.23.0, < 2.27.1-r0 | 2.27.1-r0 |
| alpine/prometheus(Alpine:v3.23) | >= 2.23.0, < 2.27.1-r0 | 2.27.1-r0 |
| alpine/prometheus(Alpine:v3.24) | >= 2.23.0, < 2.27.1-r0 | 2.27.1-r0 |
| prometheus | = >= 2.23.0, < 2.27.1 | No fix listed |
References
- github.com third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com third-party-advisory
- github.com third-party-advisory
- github.com
- security.alpinelinux.org vendor-advisory
- Debian Security Tracker CVE-2021-29622 vendor-advisory