Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-21698

CVE-2022-21698: Prometheus Client Golang DoS Vulnerability

CVE-2022-21698 is a denial of service vulnerability in Prometheus client_golang that enables unbounded cardinality and memory exhaustion via non-standard HTTP methods. This article covers technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-21698 Overview

CVE-2022-21698 is a Denial of Service vulnerability affecting the Prometheus client_golang instrumentation library for Go applications. The promhttp package in client_golang provides tooling around HTTP servers and clients, and in versions prior to 1.11.1, the HTTP server is susceptible to unbounded cardinality and potential memory exhaustion when handling requests with non-standard HTTP methods.

The vulnerability allows attackers to send HTTP requests with arbitrary method names, causing the instrumentation middleware to create new metric labels for each unique method. This leads to uncontrolled growth of in-memory time series data, eventually exhausting available memory and causing service disruption.

Critical Impact

Unauthenticated remote attackers can exhaust server memory by sending requests with non-standard HTTP methods, leading to complete service denial for applications using Prometheus client_golang instrumentation.

Affected Products

  • Prometheus client_golang (versions prior to 1.11.1)
  • Fedora 34, 35, 36, and 37
  • Fedora Extra Packages for Enterprise Linux 7.0 and 8.0
  • RDO Project RDO

Discovery Timeline

  • February 15, 2022 - CVE-2022-21698 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-21698

Vulnerability Analysis

The Prometheus client_golang library provides promhttp.InstrumentHandler* middleware functions that instrument HTTP handlers with metrics. These middleware functions track various HTTP metrics, including request counts categorized by HTTP method using a method label. The vulnerability arises because the library does not validate or sanitize the HTTP method value before using it as a metric label.

When an application uses any of the promhttp.InstrumentHandler* middleware (except RequestsInFlight) and passes a metric with the method label name, each unique HTTP method value creates a new time series in memory. The HTTP/1.1 specification allows arbitrary method names, and Go's http.Request struct exposes whatever method string is provided in the request.

An attacker can exploit this by sending requests with randomized or incrementing method names, causing the Prometheus metrics registry to allocate memory for each unique method value encountered. Since there is no upper bound on the cardinality of the method label, memory consumption grows unbounded until the application crashes or becomes unresponsive.

Root Cause

The root cause is the lack of input validation on HTTP method values used as metric labels. The promhttp middleware directly uses the http.Request.Method field as a label value without checking if it matches a known, valid HTTP method (GET, POST, PUT, DELETE, etc.). This design assumes that incoming requests will use standard methods, which is not enforced by the HTTP protocol itself.

Additionally, Go's HTTP server accepts requests with any method string, passing them through to handlers without validation. Combined with the Prometheus client's unbounded label cardinality, this creates a resource exhaustion condition.

Attack Vector

The attack can be executed remotely over the network without authentication. An attacker sends HTTP requests to an instrumented endpoint using random or sequential method names instead of standard HTTP methods. Each unique method creates a new time series entry in the Prometheus metrics registry.

The attack is effective when the target application:

  1. Uses any promhttp.InstrumentHandler* middleware except RequestsInFlight
  2. Does not filter specific HTTP methods before the middleware
  3. Passes a metric with the method label to the middleware
  4. Has no firewall, load balancer, or proxy that filters non-standard HTTP methods

The attack payload consists of simple HTTP requests with custom method names, requiring minimal bandwidth to cause significant memory growth on the target server.

Detection Methods for CVE-2022-21698

Indicators of Compromise

  • Unusual HTTP requests with non-standard method names in access logs (e.g., AAAA, TEST123, random strings)
  • Rapidly increasing memory consumption on services using Prometheus instrumentation
  • Prometheus metric cardinality alerts showing unexpected growth in time series count
  • Application crashes with out-of-memory errors in Go services using client_golang

Detection Strategies

  • Monitor HTTP access logs for requests with methods other than GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, and TRACE
  • Implement cardinality monitoring for Prometheus metrics, alerting on sudden increases in unique label values
  • Deploy application performance monitoring to track memory usage trends and correlate with incoming request patterns
  • Use network intrusion detection rules to identify HTTP requests with anomalous method values

Monitoring Recommendations

  • Set up alerts for Prometheus go_memstats_alloc_bytes exceeding baseline thresholds
  • Monitor the prometheus_tsdb_head_series metric for unexpected cardinality growth
  • Implement log analysis to detect patterns of non-standard HTTP methods from single sources
  • Configure infrastructure monitoring to alert on rapid memory consumption changes in Go services

How to Mitigate CVE-2022-21698

Immediate Actions Required

  • Upgrade Prometheus client_golang to version 1.11.1 or later immediately
  • Audit application code for use of promhttp.InstrumentHandler* middleware with the method label
  • Configure reverse proxies or web application firewalls to allow only standard HTTP methods
  • Review Prometheus metrics for signs of cardinality explosion and clean up affected time series

Patch Information

Prometheus has released version 1.11.1 of client_golang which contains a fix for this vulnerability. The patch sanitizes HTTP method values, mapping non-standard methods to a known safe value to prevent unbounded cardinality. Details of the fix can be found in GitHub Pull Request #962 and GitHub Pull Request #987. The patched release is available at GitHub Release v1.11.1.

For full security advisory details, see the GitHub Security Advisory GHSA-cg3q-j54f-5p7p.

Workarounds

  • Remove the method label name from counters and gauges used with the InstrumentHandler* middleware
  • Turn off affected promhttp handlers if metrics collection can be temporarily disabled
  • Add custom middleware before the promhttp handler to sanitize request methods to a known set of valid values
  • Use a reverse proxy or web application firewall configured to allow only standard HTTP methods (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS)
bash
# Example nginx configuration to restrict HTTP methods
location / {
    # Only allow standard HTTP methods
    limit_except GET POST PUT DELETE PATCH HEAD OPTIONS {
        deny all;
    }
    
    proxy_pass http://backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPrometheus

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.28%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400

  • CWE-770
  • Technical References
  • GitHub Release v1.11.1

  • GitHub Security Advisory GHSA-cg3q-j54f-5p7p

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • GitHub Pull Request #962

  • GitHub Pull Request #987
  • Related CVEs
  • CVE-2026-40179: Prometheus Web UI XSS Vulnerability

  • CVE-2021-29622: Prometheus Open Redirect Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English