High severity · published Feb 15, 2022
CVE-2022-21698
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
7.5
CVSS
6%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)6.0% · higher than 93% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CG
Client Golang · Prometheus
before 1.11.1 · source: NVD
EP
Extra Packages For Enterprise Linux · Fedoraproject
7.0; 8.0 · source: NVD
FE
Fedora · Fedoraproject
34; 35; 36; 35; 36; 37 · source: NVD
RD
Rdo · Rdo Project
All versions, or not specified · source: NVD
Affected product
EP
Extra Packages For Enterprise Linux
Fedoraproject
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-21698
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-21698
Patch
https://github.com/prometheus/client_golang/pull/962
Patch
https://github.com/prometheus/client_golang/pull/987
Release Notes
https://github.com/prometheus/client_golang/releases/tag/v1.11.1
Issue Tracking
https://github.com/prometheus/client_golang/security/advisories/GHSA-cg3q-j54f-5p7p
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2IK53GWZ475OQ6ENABKMJMTOBZG6LXUR/
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/
More from Extra Packages For Enterprise Linux
8.8
CVE-2022-2294
WebRTC Heap Buffer Overflow Vulnerability
9.8
CVE-2023-6395
The Mock software contains a vulnerability wherein an attacker could potentially exploit privilege escalation, enabling the execution of arbitrary code with root user privileges
9.8
CVE-2023-5550
In a shared hosting environment that has been misconfigured to allow access to other users' content, a Moodle user who also has direct access to the web server outside of the…
9.8
CVE-2023-34152
A vulnerability was found in ImageMagick
9.8
CVE-2022-4170
The rxvt-unicode package is vulnerable to a remote code execution, in the Perl background extension, when an attacker can control the data written to the user's terminal and…
