Skip to content
Fencer Intel
medium 6.5

CVE-2021-29622 json

Arbitrary redirects under /new endpoint

published 5y ago modified 2mo ago also BIT-prometheus-2021-29622 , EUVD-2022-1218 , GHSA-vx57-7f4q-fpc7

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
19.6%
EPSS 19.6% chance of exploitation in 30 days, percentile 97%
public exploits
0
none known, plus a Nuclei check

Summary

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.

Patch / fix

  • bitnami prometheus 2.26.1, 2.27.1
  • prometheus prometheus 2.26.1
  • rhnlib Manager Client Tools 15 4.2.4-3.28.1
  • ansible Manager Client Tools 15 2.9.21-1.5.1
  • mgr-cfg Manager Client Tools 15 4.2.3-1.18.1
  • mgr-osad Manager Client Tools 15 4.2.6-1.30.1
  • mgr-push Manager Client Tools 15 4.2.3-1.12.1
  • spacecmd Manager Client Tools 15 4.2.11-3.62.1
  • spacewalk-koan Manager Client Tools 15 4.2.4-3.21.1
  • dracut-saltboot Manager Client Tools 15 0.1.1627546504.96a0b3e-1.27.1

suse advisories SUSE-SU-2021:2675-1SUSE-SU-2021:2673-1SUSE-SU-2021:2664-1

  • golang-github-prometheus-prometheus openSUSE Tumbleweed 2.27.1-4.2
  • ansible openSUSE Leap 15.2 2.9.21-lp152.2.7.1
  • dracut-saltboot openSUSE Leap 15.2 0.1.1627546504.96a0b3e-lp152.2.26.1
  • golang-github-prometheus-prometheus openSUSE Leap 15.2 2.27.1-lp152.3.13.1
  • rhnlib openSUSE Leap 15.3 4.2.4-3.28.1
  • ansible openSUSE Leap 15.3 2.9.21-1.5.1
  • mgr-cfg openSUSE Leap 15.3 4.2.3-1.18.1
  • mgr-osad openSUSE Leap 15.3 4.2.6-1.30.1

opensuse advisories openSUSE-SU-2024:10814-1openSUSE-SU-2021:1162-1openSUSE-SU-2021:2675-1openSUSE-SU-2021:2664-1

  • prometheus Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 2.27.1-r0

alpine advisories ALPINE-CVE-2021-29622

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • prometheus CBL-Mariner 2.0 2.36.0-2

azure linux advisories AZL-6804

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

  • prometheus Arch Linux 2.27.1-1

arch linux advisories AVG-1971

Is CVE-2021-29622 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-29622 updated cvss 6.1

prometheus: open redirect under the /new endpoint

  • Red Hat OpenShift Container Platform 4.8 openshift4/ose-prometheus v4.8.0-202106291913.p0.git.f3beb88.assembly.stream
    fixed: vendor fix RHSA-2021:2438
  • Red Hat OpenShift Service Mesh 2.0 servicemesh-prometheus Red Hat OpenShift Container Platform 3.11 prometheus, golang-github-prometheus-prometheus Red Hat OpenShift Container Platform 4.8 openshift4/ose-cli v4.8.0-202106291725.p0.git.1077b05.assembly.stream, openshift4/ose-pod v4.8.0-202107161820.p0.git.051ac4f.assembly.stream, openshift4/ose-etcd v4.8.0-202106152230.p0.git.aefa6bf.assembly.stream, openshift4/ose-tests v4.8.0-202107131424.p0.git.0d958c3.assembly.stream, openshift4/ose-console v4.8.0-202107010336.p0.git.188a490.assembly.stream, openshift4/ose-coredns v4.8.0-202106291913.p0.git.642b46e.assembly.stream, +135 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

19.56% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

CVSS scores

assigned by version score vector
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
NVD 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD 2.0 5.8 AV:N/AC:M/Au:N/C:P/I:P/A:N
OSV 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
bitnami prometheus
>=2.23.0, <2.26.1
>=2.27.0, <2.27.1
2.26.1
2.27.1

Affected products

  • prometheus prometheus

Classification

Weakness
  • CWE-601 URL Redirection to Untrusted Site

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.