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-2022-31813

CVE-2022-31813: Apache HTTP Server Auth Bypass Flaw

CVE-2022-31813 is an authentication bypass vulnerability in Apache HTTP Server 2.4.53 and earlier that exploits X-Forwarded header handling. This article covers technical details, affected versions, and mitigations.

Published: February 18, 2026

CVE-2022-31813 Overview

Apache HTTP Server 2.4.53 and earlier versions contain a vulnerability where the server may not send X-Forwarded-* headers to the origin server when a client manipulates the Connection header using the hop-by-hop mechanism. This behavior can be exploited to bypass IP-based authentication controls on backend servers and applications, allowing attackers to circumvent security restrictions intended to limit access based on client IP addresses.

Critical Impact

Attackers can bypass IP-based authentication mechanisms on origin servers by manipulating hop-by-hop Connection headers, potentially gaining unauthorized access to protected resources and backend systems.

Affected Products

  • Apache HTTP Server versions up to and including 2.4.53
  • NetApp Clustered Data ONTAP
  • Fedora Linux 35 and 36

Discovery Timeline

  • June 9, 2022 - CVE-2022-31813 published to NVD
  • May 1, 2025 - Last updated in NVD database

Technical Details for CVE-2022-31813

Vulnerability Analysis

This vulnerability relates to improper handling of HTTP headers in Apache HTTP Server's proxy functionality. The issue is classified under CWE-348 (Use of Less Trusted Source) and CWE-345 (Insufficient Verification of Data Authenticity). When Apache HTTP Server acts as a reverse proxy, it typically forwards X-Forwarded-For, X-Forwarded-Host, and X-Forwarded-Server headers to backend servers. These headers communicate the original client's IP address and other connection details, which backend applications often use for IP-based access control decisions.

The vulnerability exists in how Apache processes the client-supplied Connection header. According to HTTP specifications, the Connection header can specify hop-by-hop headers that should not be forwarded to the next server in the chain. An attacker can craft requests that exploit this mechanism to prevent the X-Forwarded-* headers from being transmitted to the origin server.

Root Cause

The root cause lies in Apache HTTP Server's implementation of the hop-by-hop header mechanism. When processing incoming requests, the server honors the Connection header directives in a way that allows clients to influence which headers are forwarded to backend servers. This design flaw permits malicious actors to strip security-critical headers that backend systems rely upon for access control decisions.

Attack Vector

The attack is network-based and can be executed remotely without authentication or user interaction. An attacker sends a specially crafted HTTP request to an Apache reverse proxy with a Connection header that lists the X-Forwarded-* headers as hop-by-hop headers. When Apache processes this request, it strips these headers before forwarding the request to the backend server.

The backend server, lacking the X-Forwarded-For header, may fall back to using the connection's direct IP address for authentication purposes. Since the direct connection comes from the trusted Apache proxy server (typically on an internal network or allowlisted IP), the backend may grant access that would otherwise be denied to the attacker's actual IP address.

This technique is particularly effective against environments where backend applications use IP allowlisting or blocklisting based on the X-Forwarded-For header value.

Detection Methods for CVE-2022-31813

Indicators of Compromise

  • HTTP requests containing Connection headers that reference X-Forwarded-For, X-Forwarded-Host, or X-Forwarded-Server
  • Backend server logs showing requests without expected X-Forwarded-* headers from known proxy servers
  • Authentication logs indicating successful access from proxy IP addresses for resources typically restricted by client IP
  • Unusual patterns of administrative or privileged access originating from reverse proxy infrastructure

Detection Strategies

  • Implement log analysis rules to detect Connection headers containing X-Forwarded-* header names in incoming requests
  • Monitor backend application logs for discrepancies between expected and received client IP information
  • Deploy web application firewall (WAF) rules to block requests with suspicious Connection header values
  • Correlate proxy server logs with backend server logs to identify header stripping patterns

Monitoring Recommendations

  • Enable detailed request logging on Apache HTTP Server to capture full Connection header contents
  • Configure alerting for requests where Connection header values match patterns of known header names
  • Implement continuous monitoring of authentication events on backend servers for anomalous IP-based access patterns
  • Review access control bypass attempts in security information and event management (SIEM) systems

How to Mitigate CVE-2022-31813

Immediate Actions Required

  • Upgrade Apache HTTP Server to version 2.4.54 or later, which addresses this vulnerability
  • Review and audit IP-based authentication configurations on backend servers for potential exposure
  • Implement additional authentication mechanisms beyond IP-based restrictions
  • Configure web application firewalls to filter suspicious Connection header manipulation attempts

Patch Information

Apache has released a security update to address this vulnerability. Administrators should upgrade to Apache HTTP Server version 2.4.54 or later. The official security advisory and patch details are available through the Apache HTTP Server Vulnerability List. Additional vendor-specific advisories have been published by NetApp Security Advisory ntap-20220624-0005 and Gentoo GLSA 202208-20.

Workarounds

  • Implement backend authentication that does not solely rely on IP-based access controls
  • Configure backend servers to require authentication headers that cannot be stripped through Connection header manipulation
  • Use network-level controls and firewalls to restrict access to backend servers independently of application-layer headers
  • Consider implementing mutual TLS (mTLS) between proxy and backend servers for stronger authentication
bash
# Configuration example for additional access controls
# Add to Apache configuration to log Connection headers for analysis
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Connection}i\"" connection_log
CustomLog /var/log/apache2/connection.log connection_log

# Consider implementing rate limiting for suspicious request patterns
# and ensuring backend applications use multiple authentication factors

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechApache

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.04%

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

  • CWE-345
  • Technical References
  • Openwall OSS Security Mailing List

  • Fedora Package Announcement Note

  • Fedora Package Announcement Update

  • Gentoo GLSA 202208-20

  • NetApp Security Advisory ntap-20220624-0005
  • Vendor Resources
  • Apache HTTP Server Vulnerability List
  • Related CVEs
  • CVE-2026-3234: mod_proxy_cluster Auth Bypass Vulnerability

  • CVE-2025-40931: Apache::Session::Generate::MD5 Auth Bypass

  • CVE-2025-40932: Apache::SessionX Auth Bypass Vulnerability

  • CVE-2025-49812: Apache HTTP Server Auth Bypass Vulnerability
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