CVE-2022-21698 Uncontrolled Resource Consumption in promhttp
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianNetwork Appliances
Description
client_golang is the instrumentation library for Go applications in Prometheus, and the promhttp package in client_golang provides tooling around HTTP servers and clients. In client_golang prior to version 1.11.1, HTTP server is susceptible to a Denial of Service through unbounded cardinality, and potential memory exhaustion, when handling requests with non-standard HTTP methods. In order to be affected, an instrumented software must use any of promhttp.InstrumentHandler* middleware except RequestsInFlight; not filter any specific methods (e.g GET) before middleware; pass metric with method label name to our middleware; and not have any firewall/LB/proxy that filters away requests with unknown method. client_golang version 1.11.1 contains a patch for this issue. Several workarounds are available, including removing the method label name from counter/gauge used in the InstrumentHandler; turning off affected promhttp handlers; adding custom middleware before promhttp handler that will sanitize the request method given by Go http.Request; and using a reverse proxy or web application firewall, configured to only allow a limited set of methods.
Upgrade path
16 packages: 6 fixed, 8 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| rdo project rdo | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu 18.04) | = 0.8.0-1; = 0.8.0-2; All versions | No fix listed | No fix yet |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu 20.04) | = 0.9.2-0ubuntu3; All versions | No fix listed | No fix yet |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu 22.04) | = 1.9.0-2; = 1.11.0-3; All versions | No fix listed | No fix yet |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu 24.04) | = 1.16.0-4; = 1.17.0-2; = 1.18.0-2; = 1.18.0-3 +1 more | No fix listed | No fix yet |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu 25.10) | = 1.21.1-1; All versions | No fix listed | No fix yet |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu 26.04) | = 1.21.1-1; = 1.23.2-1ubuntu1; All versions | No fix listed | No fix yet |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu 26.10) | = 1.23.2-1ubuntu1; = 1.23.2-3; = 1.23.2-4; All versions | No fix listed | No fix yet |
| alpine/buildah(Alpine v3.15) | < 1.23.4-r0 | 1.23.4-r0 | Fixed |
| debian/golang-github-prometheus-client-golang(Debian 12) | < 1.11.1-1 | 1.11.1-1 | Fixed |
| debian/golang-github-prometheus-client-golang(Debian 13) | < 1.11.1-1 | 1.11.1-1 | Fixed |
| debian/golang-github-prometheus-client-golang(Debian 14) | < 1.11.1-1 | 1.11.1-1 | Fixed |
| prometheus github.com/prometheus/client_golang | < 1.11.1; = < 1.11.1 | 1.11.1 | Fixed |
| prometheus github.com/prometheus/client_golang(Go) | < 1.11.1 | 1.11.1 | Fixed |
| fedoraproject extra packages for enterprise linux | = 7.0; = 8.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 34; = 35; = 36; = 37 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| prometheus github.com/prometheus/client_golang(Go) | < 1.11.1 | 1.11.1 |
| prometheus github.com/prometheus/client_golang | = < 1.11.1 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:22.04) | All versions | No fix listed |
| prometheus github.com/prometheus/client_golang | < 1.11.1 | 1.11.1 |
| fedoraproject fedora | = 34 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| fedoraproject fedora | = 36 | No fix listed |
| fedoraproject fedora | = 37 | No fix listed |
| fedoraproject extra packages for enterprise linux | = 7.0 | No fix listed |
| fedoraproject extra packages for enterprise linux | = 8.0 | No fix listed |
| rdo project rdo | All versions | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.10) | All versions | No fix listed |
| debian/golang-github-prometheus-client-golang(Debian:12) | < 1.11.1-1 | 1.11.1-1 |
| debian/golang-github-prometheus-client-golang(Debian:14) | < 1.11.1-1 | 1.11.1-1 |
| debian/golang-github-prometheus-client-golang(Debian:13) | < 1.11.1-1 | 1.11.1-1 |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:18.04) | = 0.8.0-1 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:18.04) | = 0.8.0-2 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:20.04) | = 0.9.2-0ubuntu3 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:22.04) | = 1.9.0-2 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:22.04) | = 1.11.0-3 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:24.04) | = 1.16.0-4 | No fix listed |
Show 11 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:24.04) | = 1.17.0-2 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:24.04) | = 1.18.0-2 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:24.04) | = 1.18.0-3 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:25.10) | = 1.21.1-1 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.10) | = 1.23.2-1ubuntu1 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.10) | = 1.23.2-3 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.10) | = 1.23.2-4 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.04) | = 1.21.1-1 | No fix listed |
| ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.04) | = 1.23.2-1ubuntu1 | No fix listed |
| alpine/buildah(Alpine:v3.15) | < 1.23.4-r0 | 1.23.4-r0 |
References
- github.com issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking release-notes third-party-advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- pkg.go.dev
- github.com
- github.com product
- Debian Security Tracker CVE-2022-21698 vendor-advisory
- FEDORA-2022-5f253807ce vendor-advisory
- FEDORA-2022-6c4cb64314 vendor-advisory
- FEDORA-2022-eda0e65b01 vendor-advisory
- FEDORA-2022-6043a7b938 vendor-advisory
- FEDORA-2022-e244ad73d6 vendor-advisory
- FEDORA-2022-a7d438b30b vendor-advisory
- FEDORA-2022-83405f9d5b vendor-advisory
- FEDORA-2022-9dd03cab55 vendor-advisory
- FEDORA-2022-c87047f163 vendor-advisory
- FEDORA-2022-2067702f06 vendor-advisory
- FEDORA-2022-c5383675d9 vendor-advisory
- FEDORA-2022-5e637f6cc6 vendor-advisory
- FEDORA-2022-396c568c5e vendor-advisory
- FEDORA-2022-92ef43c439 vendor-advisory
- FEDORA-2022-fae3ecee19 vendor-advisory
- FEDORA-2022-739c7a0058 vendor-advisory
- FEDORA-2022-13ad572b5a vendor-advisory
- FEDORA-2022-741325e9a0 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking