[Forgot Password]
Login  Register Subscribe

30480

 
 

423868

 
 

253164

 
 

909

 
 

197077

 
 

282

Paid content will be excluded from the download.


Download | Alert*
CVE
view JSON

CVE-2022-21698Date: (C)2022-02-16   (M)2024-02-28


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 Score and Metrics +CVSS Score and Metrics -

CVSS V3 Severity:CVSS V2 Severity:
CVSS Score : 7.5CVSS Score : 5.0
Exploit Score: 3.9Exploit Score: 10.0
Impact Score: 3.6Impact Score: 2.9
 
CVSS V3 Metrics:CVSS V2 Metrics:
Attack Vector: NETWORKAccess Vector: NETWORK
Attack Complexity: LOWAccess Complexity: LOW
Privileges Required: NONEAuthentication: NONE
User Interaction: NONEConfidentiality: NONE
Scope: UNCHANGEDIntegrity: NONE
Confidentiality: NONEAvailability: PARTIAL
Integrity: NONE 
Availability: HIGH 
  
Reference:
FEDORA-2022-13ad572b5a
FEDORA-2022-2067702f06
FEDORA-2022-396c568c5e
FEDORA-2022-5e637f6cc6
FEDORA-2022-5f253807ce
FEDORA-2022-6043a7b938
FEDORA-2022-6c4cb64314
FEDORA-2022-739c7a0058
FEDORA-2022-741325e9a0
FEDORA-2022-83405f9d5b
FEDORA-2022-92ef43c439
FEDORA-2022-9dd03cab55
FEDORA-2022-a7d438b30b
FEDORA-2022-c5383675d9
FEDORA-2022-c87047f163
FEDORA-2022-e244ad73d6
FEDORA-2022-eda0e65b01
FEDORA-2022-fae3ecee19
https://github.com/prometheus/client_golang/pull/962
https://github.com/prometheus/client_golang/pull/987
https://github.com/prometheus/client_golang/releases/tag/v1.11.1
https://github.com/prometheus/client_golang/security/advisories/GHSA-cg3q-j54f-5p7p

CWE    1
CWE-770
OVAL    642
oval:org.secpod.oval:def:3301145
oval:org.secpod.oval:def:3301014
oval:org.secpod.oval:def:506908
oval:org.secpod.oval:def:3300855
...

© SecPod Technologies