Home/CVE/client_golang is the instrumentation library for Go applications in Prometheus, and the promhttp package in client_golan
CVE

CVE-2022-21698

client_golang is the instrumentation library for Go applications in Prometheus, and the promhttp package in client_golan

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.

HIGH · CVSS 7.5 EPSS 0.00376
Schedule remediation
  • SSVC automatable: yes - attacks can be scripted at scale
  • CVSS base score ≥ 7.0
Sigma rules0 YARA rules0

Affected Products & Versions

4

Affected Packages

8
Language-ecosystem packages (from OSV) tied to this CVE, with the version that fixes it - the dependency-level detail NVD doesn’t carry.
Go github.com/prometheus/client_golang HIGH fixed in 1.11.1
Go go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace fixed in 0.44.0
Go go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp fixed in 0.39.0

Scoring & Timeline

7.5
HIGH · CVSS v3.1 · security-advisories@github.com
View on NVD
Attack Vector
Network Adjacent Local Physical
Attack Complexity
Low High
Privileges Required
None Low High
User Interaction
None Required
Scope
Unchanged Changed
Confidentiality
None Low High
Integrity
None Low High
Availability
None Low High
Published to NVD15 Feb 2022 · 04:15 PM
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SSVC triage · cisa-vulnrichment
Exploitation
none
Automatable
yes
Technical impact
partial
SSVC asks the questions that actually drive patch urgency: is it being exploited, can attacks be automated, and how total is the impact.

Vendor Advisories

30
suse-csafopenSUSE-SU-2026:10634-1
suse-csafopenSUSE-SU-2026:10644-1
rhsaRHSA-2026:0722Moderate
rhsaRHSA-2025:22684Moderate
rhsaRHSA-2025:23528Important
🔗

References & Sources

22
Source URLs (vendor pages, mailing lists, write-ups). Exploit/PoC links are in their own section above to avoid duplication.
Intelligence Graph · click any node to traverse
CVETechnique ActorTool Family
drag to reposition · click any node to traverse · button top-right enlarges
External lookups - second-class, for what we don’t hold ourselves
Vulnerabilities
CISA KEV catalog
CWE weaknesses
CAPEC attack patterns
Package vulnerabilities
Threat intelligence
Threat actors
Tools & malware
ATT&CK techniques
IOCs
Detection & defense
Sigma rules
YARA rules
Atomic Red Team tests
D3FEND countermeasures
Compliance
NIST 800-53
ISO 27001:2022
SOC 2 TSC
PCI-DSS v4.0
CIS Controls v8.1
About
All capabilities
Live statistics
Data sources
Privacy policy
Terms of service
threatengine.sh  ·  Open-source threat intelligence platform  ·  100+ authoritative sources  ·  Every fact traces to its origin