The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2021-31618

CVE-2021-31618: Apache HTTP Server DoS Vulnerability

CVE-2021-31618 is a denial of service flaw in Apache HTTP Server's HTTP/2 protocol handler that causes NULL pointer dereference crashes. This article covers the technical details, affected versions, and mitigation strategies.

Published: February 25, 2026

CVE-2021-31618 Overview

CVE-2021-31618 is a NULL pointer dereference vulnerability in the Apache HTTP Server's mod_http2 module that can be exploited to cause a denial of service (DoS) condition. The vulnerability exists in the HTTP/2 protocol handler, which checks received request headers against size limitations configured for the server. When a header violation occurs, the server sends an HTTP response to the client indicating why the request was rejected. However, if the offending header is the very first one received or appears in a footer, the rejection response is not fully initialized, leading to a NULL pointer dereference on uninitialized memory that reliably crashes the child process.

Since triggering HTTP/2 requests that exploit this vulnerability are easy to craft and submit, attackers can reliably crash Apache HTTP Server child processes, resulting in service disruption.

Critical Impact

Remote attackers can cause denial of service by sending specially crafted HTTP/2 requests with oversized headers, crashing Apache HTTP Server child processes without requiring authentication.

Affected Products

  • Apache HTTP Server version 2.4.47 (never publicly released) and mod_http2 1.15.17
  • Fedora 33 and Fedora 34
  • Debian Linux 9.0 and 10.0
  • Oracle Enterprise Manager Ops Center 12.4.0.0
  • Oracle Instantis EnterpriseTrack 17.1, 17.2, and 17.3
  • Oracle ZFS Storage Appliance Kit 8.8

Discovery Timeline

  • 2021-06-15 - CVE-2021-31618 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-31618

Vulnerability Analysis

This vulnerability (CWE-476: NULL Pointer Dereference) resides in the mod_http2 module of Apache HTTP Server. The HTTP/2 protocol handler validates incoming request headers against configured size limitations that are shared with the HTTP/1 protocol. When a header exceeds these limits, the server generates an error response to reject the request.

The critical flaw occurs during the initialization of this rejection response. Specifically, if the oversized header is either the very first header received in the request or appears within a trailer (footer) section of the HTTP/2 frame, the error response structure is not properly initialized before being accessed. This results in dereferencing a NULL pointer, which causes the Apache child process to crash immediately.

The attack is particularly dangerous because HTTP/2 connections are multiplexed, meaning a single malicious request can disrupt the child process handling multiple legitimate client connections. While the parent Apache process typically respawns child processes, sustained attacks can effectively deny service to legitimate users.

Root Cause

The root cause stems from improper initialization of the HTTP/2 rejection response structure within the mod_http2 module. The code path that handles header size violations fails to fully initialize the response object under two specific conditions:

  1. When the first header received in a request exceeds the configured LimitRequestFieldSize or LimitRequestFields directives
  2. When an oversized header appears in HTTP/2 trailers (HEADERS frame with END_STREAM flag)

In both cases, certain fields in the response structure remain NULL when the code attempts to dereference them to send the error response, causing the crash.

Attack Vector

The attack can be executed remotely over the network without any authentication or special privileges. An attacker simply needs to:

  1. Establish an HTTP/2 connection to the target Apache server
  2. Send a request with a header that exceeds the server's configured header size limits
  3. Ensure the oversized header is either the first header in the request or placed in the trailer section

The vulnerability is exploited by sending malformed HTTP/2 requests with oversized headers in specific positions within the frame structure. When the server attempts to process and reject these requests, the uninitialized response object causes a NULL pointer dereference.

An attacker can repeatedly send such requests to continuously crash Apache child processes, resulting in sustained denial of service. The attack requires minimal bandwidth and can be automated trivially.

Detection Methods for CVE-2021-31618

Indicators of Compromise

  • Repeated Apache child process crashes in server logs with segmentation fault signals
  • Unusual spikes in HTTP/2 connections followed by immediate disconnections
  • Error log entries indicating header size limit violations paired with process crashes
  • Core dump files showing NULL pointer dereference in mod_http2 code paths

Detection Strategies

  • Monitor Apache error logs for patterns of child process termination signals (SIGSEGV) correlated with HTTP/2 connections
  • Implement network-level monitoring to detect anomalous HTTP/2 frame patterns with oversized headers
  • Deploy intrusion detection signatures that identify HTTP/2 requests with headers exceeding typical size thresholds
  • Use web application firewalls (WAF) configured to inspect and block malformed HTTP/2 frames

Monitoring Recommendations

  • Configure centralized log aggregation to correlate Apache crash events with incoming connection metadata
  • Set up alerting thresholds for Apache child process restart rates exceeding normal operational baselines
  • Monitor HTTP/2 connection metrics including frame sizes, header counts, and trailer usage patterns
  • Implement real-time dashboards tracking Apache process health and connection anomalies

How to Mitigate CVE-2021-31618

Immediate Actions Required

  • Update Apache HTTP Server and mod_http2 to patched versions immediately
  • If HTTP/2 is not required, disable it by removing Protocols h2 h2c http/1.1 directives from configuration
  • Review and enforce conservative header size limits using LimitRequestFieldSize and LimitRequestFields directives
  • Deploy a reverse proxy or WAF that can filter malformed HTTP/2 requests before they reach the Apache server

Patch Information

Apache has addressed this vulnerability in versions following mod_http2 1.15.17. Administrators should upgrade to the latest stable release of Apache HTTP Server, which includes the patched mod_http2 module. For systems where immediate upgrades are not possible, distribution-specific patches are available from vendors including Debian Security Advisory DSA-4937, Fedora Package Updates, and Oracle CPU October 2021. Reference the Apache Security Vulnerabilities page for official guidance.

Workarounds

  • Disable HTTP/2 support temporarily by modifying the Protocols directive to only allow HTTP/1.1
  • Implement rate limiting on incoming connections to reduce the impact of sustained DoS attacks
  • Configure a reverse proxy (such as nginx or HAProxy) in front of Apache to handle HTTP/2 termination
  • Use network-level filtering to block clients sending anomalous HTTP/2 traffic patterns
bash
# Disable HTTP/2 in Apache configuration as a temporary workaround
# In httpd.conf or relevant virtual host configuration:

# Comment out or remove HTTP/2 protocol support
# Before (vulnerable):
# Protocols h2 h2c http/1.1

# After (mitigated):
Protocols http/1.1

# Apply changes
sudo systemctl restart httpd

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechApache Http Server

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability18.52%

  • 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-476
  • Technical References
  • Openwall OSS Security Mailing List

  • Openwall OSS Security Mailing List

  • Apache CVS Thread Discussion

  • Apache CVS Thread Discussion

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • OSS-Sec Mailing List Discussion

  • Gentoo GLSA 2021-07-38

  • NetApp Security Advisory NTAP-20210727-0008

  • Debian Security DSA-4937
  • Vendor Resources
  • Apache Security Vulnerabilities

  • Oracle CPU October 2021 Alert
  • Related CVEs
  • CVE-2021-36160: Apache HTTP Server DoS Vulnerability

  • CVE-2022-22719: Apache HTTP Server DoS Vulnerability

  • CVE-2020-9490: Apache HTTP Server DoS Vulnerability

  • CVE-2023-38709: Apache HTTP Server XSS 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