cve.bz

CVE-2021-29622 prometheus prometheus: Open Redirect

6.1 mediumEPSS 20%

Medium (6.1) in prometheus prometheus. EPSS 20% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
20% (unchanged from 20% a week ago; 20% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-601 URL Redirection to Untrusted Site (Open Redirect)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-29622 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-29622?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-29622?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-29622 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
prometheus:prometheusfrom 2.23.0 before 2.26.1
prometheus:prometheus2.27.0
prometheus:prometheus2.27.0:rc0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTSprometheusno fix listedUBUNTU-CVE-2021-29622
SUSEEnterprise Storage 6golang-github-prometheus-prometheus2.27.1-3.8.1SUSE-SU-2021:2664-1
SUSEManager Client Tools 12golang-github-prometheus-prometheus2.27.1-1.29.2SUSE-SU-2021:2673-1
SUSEManager Client Tools 12grafana7.5.7-1.21.2SUSE-SU-2021:2673-1
SUSEManager Client Tools 12mgr-cfg4.2.3-1.18.2SUSE-SU-2021:2673-1
SUSEManager Client Tools 12mgr-custom-info4.2.2-1.12.2SUSE-SU-2021:2673-1
SUSEManager Client Tools 12mgr-osad4.2.6-1.30.2SUSE-SU-2021:2673-1
SUSEManager Client Tools 12mgr-push4.2.3-1.12.2SUSE-SU-2021:2673-1
SUSEManager Client Tools 12mgr-virtualization4.2.2-1.20.2SUSE-SU-2021:2673-1
SUSEManager Client Tools 12rhnlib4.2.4-21.34.2SUSE-SU-2021:2673-1
SUSEManager Client Tools 12spacecmd4.2.11-38.85.2SUSE-SU-2021:2673-1
SUSEManager Client Tools 12spacewalk-client-tools4.2.12-52.53.2SUSE-SU-2021:2673-1
SUSEManager Client Tools 12spacewalk-koan4.2.4-24.24.2SUSE-SU-2021:2673-1
18 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2ansible2.9.21-lp152.2.7.1openSUSE-SU-2021:1162-1
openSUSELeap 15.2dracut-saltboot0.1.1627546504.96a0b3e-lp152.2.26.1openSUSE-SU-2021:1162-1
openSUSELeap 15.2golang-github-prometheus-prometheus2.27.1-lp152.3.13.1openSUSE-SU-2021:1162-1
openSUSELeap 15.3ansible2.9.21-1.5.1openSUSE-SU-2021:2675-1
openSUSELeap 15.3dracut-saltboot0.1.1627546504.96a0b3e-1.27.1openSUSE-SU-2021:2675-1
openSUSELeap 15.3golang-github-prometheus-prometheus2.27.1-3.8.1openSUSE-SU-2021:2664-1
openSUSELeap 15.3mgr-cfg4.2.3-1.18.1openSUSE-SU-2021:2675-1
openSUSELeap 15.3mgr-custom-info4.2.2-1.12.1openSUSE-SU-2021:2675-1
openSUSELeap 15.3mgr-osad4.2.6-1.30.1openSUSE-SU-2021:2675-1
openSUSELeap 15.3mgr-push4.2.3-1.12.1openSUSE-SU-2021:2675-1
openSUSELeap 15.3mgr-virtualization4.2.2-1.20.1openSUSE-SU-2021:2675-1
openSUSELeap 15.3rhnlib4.2.4-3.28.1openSUSE-SU-2021:2675-1
7 more for openSUSE in the JSON and on openSUSE's page.
Alpinev3.14, v3.15, v3.16 and 8 moreprometheus2.27.1-r0ALPINE-CVE-2021-29622
Azure Linux2prometheus2.36.0-2AZL-6804

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

OpenShift Container Platform 3.11 and OpenShift Service Mesh uses Prometheus before 2.23.0 (when `/new` endpoint was introduced), hence are not affected by this flaw.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.8openshift4/ose-prometheus:v4.8.0-202106291913.p0.git.f3beb88.assembly.streamFixed 2021-07-27RHSA-2021:2438
OpenShift Service Mesh 2.0servicemesh-prometheusNot affected
Red Hat OpenShift Container Platform 3.11golang-github-prometheus-prometheusNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-29622.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-178 Cross-Site Flashing Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON