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-40438

CVE-2021-40438: Resf Rocky Linux SSRF Vulnerability

CVE-2021-40438 is a server-side request forgery vulnerability in Resf Rocky Linux allowing attackers to manipulate proxy requests to arbitrary origin servers. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2021-40438 Overview

CVE-2021-40438 is a critical Server-Side Request Forgery (SSRF) vulnerability in Apache HTTP Server's mod_proxy module. A crafted request URI-path can cause mod_proxy to forward the request to an origin server chosen by a remote attacker. This vulnerability affects Apache HTTP Server versions 2.4.48 and earlier, making it a significant threat to a vast number of web servers deployed worldwide.

This vulnerability allows unauthenticated remote attackers to manipulate proxy requests, potentially enabling them to access internal services, bypass access controls, exfiltrate sensitive data, or pivot to attack other systems within the network. Due to the widespread use of Apache HTTP Server as a reverse proxy, the attack surface is extensive.

Critical Impact

This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild. Attackers can leverage this SSRF to access internal services, cloud metadata endpoints, and sensitive resources that should not be externally accessible.

Affected Products

  • Apache HTTP Server 2.4.48 and earlier
  • Red Hat Enterprise Linux (versions 7.x and 8.x)
  • Red Hat JBoss Core Services 1.0
  • Debian Linux (versions 9.0, 10.0, 11.0)
  • Fedora 34 and 35
  • Oracle HTTP Server (12.2.1.3.0, 12.2.1.4.0)
  • NetApp Clustered Data ONTAP, StorageGRID, Cloud Backup
  • Siemens SINEMA Server, SINEC NMS, RUGGEDCOM NMS
  • Tenable.sc
  • F5 F5OS
  • Broadcom Brocade Fabric Operating System

Discovery Timeline

  • 2021-09-16 - CVE-2021-40438 published to NVD
  • 2025-10-27 - Last updated in NVD database

Technical Details for CVE-2021-40438

Vulnerability Analysis

This SSRF vulnerability resides within Apache HTTP Server's mod_proxy module, which is commonly used to configure the server as a reverse proxy. The flaw exists in how mod_proxy processes and validates request URI paths before forwarding them to backend servers.

When Apache HTTP Server is configured with mod_proxy enabled, an attacker can craft malicious HTTP requests with specially constructed URI paths that trick the proxy into forwarding requests to arbitrary destinations. This bypasses the intended proxy configuration, allowing the attacker to specify their own target server. The vulnerability is particularly dangerous because it requires no authentication and can be exploited remotely over the network, though it does require specific conditions to be met for successful exploitation.

The impact of successful exploitation includes the ability to access internal services not intended for external access, reach cloud provider metadata endpoints (such as AWS IMDSv1), scan internal networks, and potentially exfiltrate sensitive information from protected resources.

Root Cause

The root cause of CVE-2021-40438 is improper input validation in the mod_proxy module's URI parsing logic. The module fails to adequately sanitize and validate the request URI-path before using it to construct the forwarded proxy request. Specifically, the vulnerability stems from CWE-918 (Server-Side Request Forgery), where the application fails to properly verify that user-supplied input represents the intended destination for proxied requests.

The flawed logic allows attackers to inject characters or sequences in the URI that manipulate the proxy destination, causing mod_proxy to forward requests to attacker-controlled or otherwise unintended servers rather than the configured backend.

Attack Vector

The attack is conducted remotely over the network without requiring authentication. An attacker sends a specially crafted HTTP request to a vulnerable Apache HTTP Server instance that has mod_proxy enabled. The crafted URI-path contains malicious elements that exploit the parsing flaw, causing the server to forward the request to an arbitrary origin server specified by the attacker.

Attack scenarios include:

  • Cloud Metadata Access: Targeting cloud instance metadata services (e.g., http://169.254.169.254/) to retrieve credentials, tokens, and instance configuration
  • Internal Service Discovery: Scanning and accessing internal services, databases, and APIs that are not exposed to the internet
  • Network Pivoting: Using the compromised proxy as a pivot point to attack other systems within the internal network
  • Data Exfiltration: Retrieving sensitive information from internal resources through the proxied requests

The vulnerability can be triggered through standard HTTP requests, making it easily weaponizable. For detailed technical analysis and exploitation mechanics, refer to the Apache HTTPD Vulnerabilities Overview and the Cisco Security Advisory for Apache HTTPD.

Detection Methods for CVE-2021-40438

Indicators of Compromise

  • Unusual outbound connections from the Apache HTTP Server to internal IP ranges (e.g., 10.x.x.x, 172.16.x.x, 192.168.x.x) or cloud metadata endpoints (169.254.169.254)
  • HTTP access logs showing requests with malformed or suspicious URI paths containing unexpected characters or encoding
  • Proxy error logs indicating connections to unexpected backend destinations
  • Network traffic from the web server to internal services that should not receive external requests

Detection Strategies

  • Monitor Apache access logs for requests with unusually long or malformed URI paths, especially those containing encoded characters or internal IP addresses
  • Implement network-level monitoring to detect outbound connections from web servers to sensitive internal services or cloud metadata endpoints
  • Deploy intrusion detection system (IDS) rules to identify SSRF attack patterns targeting mod_proxy
  • Utilize SentinelOne's behavioral AI detection to identify anomalous proxy behavior and unauthorized network connections from web server processes

Monitoring Recommendations

  • Enable verbose logging for mod_proxy to capture detailed information about proxied requests and destinations
  • Configure network segmentation monitoring to alert on web server traffic to sensitive internal subnets
  • Implement application-layer firewall rules to inspect and block suspicious URI patterns in incoming requests
  • Regularly review Apache error logs for proxy-related errors that may indicate exploitation attempts

How to Mitigate CVE-2021-40438

Immediate Actions Required

  • Upgrade Apache HTTP Server to version 2.4.49 or later immediately, as this version contains the security fix for CVE-2021-40438
  • If immediate patching is not possible, consider temporarily disabling mod_proxy if it is not essential for operations
  • Implement network segmentation to limit the web server's ability to reach sensitive internal services
  • Apply vendor-specific patches from Red Hat, Debian, Oracle, and other affected distributions

Patch Information

Apache has addressed this vulnerability in Apache HTTP Server version 2.4.49 and later. Organizations should update to the latest available version to receive all security fixes. For detailed patch information, consult the Apache HTTPD Vulnerabilities Overview.

Multiple vendors have released security advisories and patches:

  • Oracle January 2022 CPU Security Alerts
  • Oracle April 2022 CPU Security Alerts
  • Debian Security Advisory DSA-4982
  • Siemens Security Advisory SSA-685781
  • NetApp Security Advisory NTAP-20211008-0004

Workarounds

  • Restrict mod_proxy to only forward requests to explicitly defined backend servers using the ProxyPass directive with specific target URLs
  • Implement strict URL validation at the application or WAF layer to reject requests with suspicious URI patterns
  • Use firewall rules to block outbound connections from the Apache server to unauthorized destinations, particularly internal IP ranges and cloud metadata endpoints
  • Consider deploying a web application firewall (WAF) with SSRF protection rules as an additional defense layer
bash
# Example Apache configuration to restrict proxy destinations
# Only allow proxying to specific trusted backends
<VirtualHost *:80>
    ServerName example.com
    
    # Disable general forward proxy functionality
    ProxyRequests Off
    
    # Only allow proxying to specific backend servers
    ProxyPass /api http://internal-api-server:8080/api
    ProxyPassReverse /api http://internal-api-server:8080/api
    
    # Deny access to proxy for all other requests
    <Proxy *>
        Require all denied
    </Proxy>
    
    # Allow only the defined proxy paths
    <Proxy http://internal-api-server:8080/*>
        Require all granted
    </Proxy>
</VirtualHost>

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechApache

  • SeverityCRITICAL

  • CVSS Score9.0

  • EPSS Probability94.43%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-918
  • Technical References
  • Siemens Security Advisory SSA-685781

  • Apache User Discussion Thread

  • Apache Bugs Discussion Thread

  • Apache User Discussion Thread

  • Apache User Discussion Thread

  • Apache User Discussion Thread

  • Apache User Discussion Thread

  • Apache User Discussion Thread

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202208-20

  • NetApp Security Advisory NTAP-20211008-0004

  • Cisco Security Advisory for Apache HTTPD

  • Debian Security Advisory DSA-4982

  • Tenable Security Notice TNS-2021-17

  • CISA Known Exploited Vulnerabilities Catalog
  • Vendor Resources
  • Apache HTTPD Vulnerabilities Overview

  • Oracle April 2022 CPU Security Alerts

  • Oracle January 2022 CPU Security Alerts
  • Related CVEs
  • CVE-2025-59775: Apache HTTP Server SSRF Vulnerability

  • CVE-2024-43394: Apache HTTP Server SSRF Vulnerability

  • CVE-2024-43204: Apache HTTP Server SSRF Vulnerability

  • CVE-2024-39573: Apache HTTP Server SSRF 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