CVEBrief

Home / prometheus / client_golang / CVE-2022-21698

CVE-2022-21698: is it exploited, and which versions of prometheus client_golang are affected and fixed?

CVE-2022-21698 is a denial of service (uncontrolled resource consumption) vulnerability in prometheus client_golang. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: github.com/prometheus/client_golang before 1.11.1 (GitHub advisory GHSA-cg3q-j54f-5p7p). Fixed in 1.11.1 (GitHub advisory GHSA-cg3q-j54f-5p7p). Severity: High (7.5, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:51 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 14:08 UTC
Affected
github.com/prometheus/client_golang before 1.11.1
GitHub advisory GHSA-cg3q-j54f-5p7p
Fixed in
1.11.1
GitHub advisory GHSA-cg3q-j54f-5p7p
Severity
High 7.5
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
5.99% in 30 days
higher than 93% of CVEs; FIRST, December 2, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2022-21698?

Uncontrolled Resource Consumption in promhttp

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.

From the CVE record by GitHub_M, last updated April 23, 2025, 19:05 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
prometheusclient_golang< 1.11.1

As the CVE record by GitHub_M states it, last updated April 23, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
Gogithub.com/prometheus/client_golang< 1.11.11.11.1GHSA-cg3q-j54f-5p7p

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 25, 2022. Summary: Uncontrolled Resource Consumption in promhttp.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
prometheusclient golangbefore 1.11.1application
fedoraprojectfedora34operating system
fedoraprojectfedora35operating system
fedoraprojectfedora36operating system
fedoraprojectextra packages for enterprise linux7.0application
fedoraprojectextra packages for enterprise linux8.0application
rdo projectrdoall versionsapplication
fedoraprojectfedora37operating system

NVD analysis (status Modified), last modified June 17, 2026, 04:26 UTC.

How severe is CVE-2022-21698?

ScoreVersionVectorSource
High 7.5CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HGitHub_M
High 7.5CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD
Medium 5.0CVSS 2.0AV:N/AC:L/Au:N/C:N/I:N/A:PNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2022-21698 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, April 23, 2025)
EPSS
5.99% probability of exploitation activity in the next 30 days, percentile 93.5 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
November 16, 2021
Published
February 15, 2022, 00:00 UTC
CVE record updated
April 23, 2025, 19:05 UTC by GitHub_M
NVD
Modified, last modified June 17, 2026, 04:26 UTC
Last checked
CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:51 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

Questions about CVE-2022-21698

Is CVE-2022-21698 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 5.99% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of prometheus client_golang are affected by CVE-2022-21698?

github.com/prometheus/client_golang before 1.11.1, per the GitHub advisory GHSA-cg3q-j54f-5p7p. The tables above give every range the sources list.

Which version fixes CVE-2022-21698?

1.11.1, per the GitHub advisory GHSA-cg3q-j54f-5p7p. Check the vendor's advisory before you rely on it.

How severe is CVE-2022-21698?

High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2022-21698?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.