p PatchFirst

CVE-2021-29622

CVE-2021-29622 · Arbitrary redirects under /new endpoint

CVSS 6.5 · Medium · EPSS 19.6% · Public exploit · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

apk list -I -o prometheus

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • prometheus

    Versions
    • >= 2.23.0, < 2.27.1: Affected

    No fix published

  • prometheus Alpine 3.14

    Affected ranges
    • ECOSYSTEM: ≥ 2.23.0, < 2.27.1-r0

    Update to 2.27.1-r0

  • prometheus Alpine 3.15

    Affected ranges
    • ECOSYSTEM: ≥ 2.23.0, < 2.27.1-r0

    Update to 2.27.1-r0

  • prometheus Alpine 3.16

    Affected ranges
    • ECOSYSTEM: ≥ 2.23.0, < 2.27.1-r0

    Update to 2.27.1-r0

  • prometheus Alpine 3.17

    Affected ranges
    • ECOSYSTEM: ≥ 2.23.0, < 2.27.1-r0

    Update to 2.27.1-r0

  • prometheus Alpine 3.18

    Affected ranges
    • ECOSYSTEM: ≥ 2.23.0, < 2.27.1-r0

    Update to 2.27.1-r0

  • prometheus Alpine 3.19

    Affected ranges
    • ECOSYSTEM: ≥ 2.23.0, < 2.27.1-r0

    Update to 2.27.1-r0

  • prometheus Alpine 3.20

    Affected ranges
    • ECOSYSTEM: ≥ 2.23.0, < 2.27.1-r0

    Update to 2.27.1-r0

  • prometheus Alpine 3.21

    Affected ranges
    • ECOSYSTEM: ≥ 2.23.0, < 2.27.1-r0

    Update to 2.27.1-r0

  • prometheus Alpine 3.22

    Affected ranges
    • ECOSYSTEM: ≥ 2.23.0, < 2.27.1-r0

    Update to 2.27.1-r0

  • prometheus Alpine 3.23

    Affected ranges
    • ECOSYSTEM: ≥ 2.23.0, < 2.27.1-r0

    Update to 2.27.1-r0

  • prometheus Alpine 3.24

    Affected ranges
    • ECOSYSTEM: ≥ 2.23.0, < 2.27.1-r0

    Update to 2.27.1-r0

  • prometheus Ubuntu 16.04 LTS

    Versions
    • 0.14.0+ds-1
    • 0.16.2+ds-1
    • 0.16.2+ds-1ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →