CVEfocus › CVE database › CVE-2021-29622

CVE-2021-29622Arbitrary redirects under /new endpoint

CVSS 6.5 MediumEPSS 19.6% (higher than 98% of CVEs)Published 2021-05-19Updated 2024-08-03Assigner: GitHub_M

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.

CWE-601

What to do

Likely to be exploited: EPSS gives a 20% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

11Fixed
1Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10prometheusNot affected
vulnerable_code_not_present
Ubuntu 20.04prometheusNot affected
vulnerable_code_not_present
Ubuntu 18.04prometheusNot affected
vulnerable_code_not_present
Ubuntu 16.04prometheusFix pendingUBUNTU-CVE-2021-29622
Alpine Linux 3.24prometheusFixed2.27.1-r0ALPINE-CVE-2021-29622
Alpine Linux 3.23prometheusFixed2.27.1-r0ALPINE-CVE-2021-29622
Alpine Linux 3.22prometheusFixed2.27.1-r0ALPINE-CVE-2021-29622
Alpine Linux 3.21prometheusFixed2.27.1-r0ALPINE-CVE-2021-29622
Alpine Linux 3.20prometheusFixed2.27.1-r0ALPINE-CVE-2021-29622
Alpine Linux 3.19prometheusFixed2.27.1-r0ALPINE-CVE-2021-29622
Alpine Linux 3.18prometheusFixed2.27.1-r0ALPINE-CVE-2021-29622
Alpine Linux 3.17prometheusFixed2.27.1-r0ALPINE-CVE-2021-29622
Alpine Linux 3.16prometheusFixed2.27.1-r0ALPINE-CVE-2021-29622
Alpine Linux 3.15prometheusFixed2.27.1-r0ALPINE-CVE-2021-29622
Alpine Linux 3.14prometheusFixed2.27.1-r0ALPINE-CVE-2021-29622

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.