1. Accueil
  2. Vulnérabilités
  3. CVE-2022-21698

CVE-2022-21698

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

Publiée le 15 févr. 2022 · modifiée le 17 juin 2026 · Sources : NVD, EPSS (FIRST)

Moyen 56/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Fedoraproject (6 ligne(s))
Fedoraproject
ProduitVersionsCorrigé dansSource
Extra packages for enterprise linux 7.0 — NVD
Extra packages for enterprise linux 8.0 — NVD
Fedora 34 — NVD
Fedora 35 — NVD
Fedora 36 — NVD
Fedora 37 — NVD
Prometheus (1 ligne(s))
Prometheus
ProduitVersionsCorrigé dansSource
Client golang avant 1.11.1 (exclu) — NVD
Rdo project (1 ligne(s))
Rdo project
ProduitVersionsCorrigé dansSource
Rdo Versions non précisées — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
NVD
Score CVSS
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-770 · Autre (CWE-770)

Comment sont obtenues et calculées ces données