CVE catalog

CVE-2021-29622

prometheus: CVE-2021-29622

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
19.56% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianprometheussid3.5.3+ds1-6not affected
Debianprometheusforky3.5.3+ds1-6not affected
Debianprometheustrixie2.53.3+ds1-2not affected
Debianprometheusbookworm2.42.0+ds-5+deb12u1not affected
Opensusegolang-github-prometheus-prometheusleap 15.32.27.1-3.8.1fixed
Susegolang-github-prometheus-prometheusenterprise storage 62.27.1-3.8.1fixed
Ubuntuprometheus16.040.14.0+ds-1vulnerable
Ubuntuprometheus16.040.16.2+ds-1vulnerable
Ubuntuprometheus16.040.16.2+ds-1ubuntu1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
DebianprometheussourcesidNot affectedunimportantNot reportedNot reported
DebianprometheussourceforkyNot affectedunimportantNot reportedNot reported
DebianprometheussourcetrixieNot affectedunimportantNot reportedNot reported
DebianprometheussourcebookwormNot affectedunimportantNot reportedNot reported
Opensusegolang-github-prometheus-prometheusrpmleap 15.32.27.1-3.8.1Not reportedOPENSUSE-SU-2021:2664-1Not reported
Susegolang-github-prometheus-prometheusrpmenterprise storage 62.27.1-3.8.1Not reportedSUSE-SU-2021:2664-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [prometheus]Not affected
    Details (2)
    • 2.42.0+ds-5+deb12u1 · amd64 · bookworm

      Not affected

      dsa · prometheus · debian · bookworm

    • 2.42.0+ds-5+deb12u1 · arm64 · bookworm

      Not affected

      dsa · prometheus · debian · bookworm

Observed:

References