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-2024-40898

CVE-2024-40898: Apache HTTP Server SSRF Vulnerability

CVE-2024-40898 is an SSRF vulnerability in Apache HTTP Server on Windows that can leak NTLM hashes to malicious servers. This article covers the technical details, affected versions, security impact, and mitigation.

Published: January 28, 2026

CVE-2024-40898 Overview

CVE-2024-40898 is a Server-Side Request Forgery (SSRF) vulnerability affecting Apache HTTP Server on Windows systems when mod_rewrite is configured in server or vhost context. This vulnerability allows attackers to potentially leak NTLM hashes to a malicious server through crafted requests, enabling credential theft and potential lateral movement within an organization's network.

Critical Impact

Attackers can exploit this SSRF vulnerability to capture NTLM authentication hashes from Windows servers running Apache HTTP Server, potentially leading to credential theft, pass-the-hash attacks, and unauthorized access to network resources.

Affected Products

  • Apache HTTP Server (versions prior to 2.4.62)
  • Microsoft Windows (all versions running vulnerable Apache HTTP Server)
  • Systems with mod_rewrite enabled in server/vhost context

Discovery Timeline

  • 2024-07-18 - CVE-2024-40898 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-40898

Vulnerability Analysis

This vulnerability exploits the interaction between Apache HTTP Server's mod_rewrite module and Windows NTLM authentication mechanisms. When mod_rewrite is configured in a server or virtual host context on Windows systems, specially crafted requests can trigger outbound connections to attacker-controlled servers. During these connections, Windows may automatically attempt NTLM authentication, inadvertently transmitting credential hashes to the malicious endpoint.

The attack is particularly dangerous because it combines web server misconfiguration with Windows' default authentication behavior. The SSRF component allows attackers to redirect internal server requests, while Windows' NTLM auto-authentication means credentials can be leaked without explicit user interaction.

Root Cause

The root cause lies in improper validation of URL destinations within mod_rewrite rules when operating in server/vhost context. The module fails to adequately restrict outbound requests to trusted destinations, allowing attackers to craft requests that force the server to connect to arbitrary external hosts. On Windows systems, this becomes a credential exposure issue because the operating system may automatically attempt NTLM authentication when connecting to SMB or WebDAV resources.

Attack Vector

The attack leverages network-accessible Apache HTTP Server instances with mod_rewrite enabled. An attacker sends malicious requests designed to trigger rewrite rules that result in outbound connections to attacker-controlled infrastructure. The attack requires no authentication and exploits the server's default behavior when processing URL rewrites.

The exploitation flow involves:

  1. Attacker identifies a Windows-based Apache HTTP Server with mod_rewrite enabled
  2. Crafted HTTP requests are sent to trigger SSRF through rewrite rules
  3. The server initiates connections to attacker-specified destinations
  4. Windows automatically attempts NTLM authentication to the malicious server
  5. NTLM hashes are captured and can be cracked offline or used in relay attacks

Detection Methods for CVE-2024-40898

Indicators of Compromise

  • Unusual outbound connections from Apache HTTP Server processes to external IP addresses
  • Unexpected SMB or WebDAV traffic originating from web server hosts
  • NTLM authentication attempts to untrusted external servers
  • Anomalous mod_rewrite activity in Apache access and error logs

Detection Strategies

  • Monitor network traffic for outbound connections from web servers to non-standard destinations
  • Analyze Apache access logs for suspicious URL patterns that may trigger SSRF
  • Implement network segmentation monitoring to detect web servers initiating unexpected outbound connections
  • Deploy endpoint detection rules to identify NTLM authentication attempts to external hosts

Monitoring Recommendations

  • Configure SIEM alerts for outbound SMB/WebDAV connections from web server hosts
  • Enable verbose logging for mod_rewrite to capture rule processing details
  • Monitor Windows Security Event logs for NTLM authentication events (Event ID 4624, 4625)
  • Implement network-level detection for NTLM traffic leaving trusted network boundaries

How to Mitigate CVE-2024-40898

Immediate Actions Required

  • Upgrade Apache HTTP Server to version 2.4.62 or later immediately
  • Review and audit all mod_rewrite configurations in server and vhost contexts
  • Implement outbound firewall rules to restrict web server egress traffic
  • Consider disabling NTLM authentication where possible or implement Extended Protection for Authentication

Patch Information

Apache has released version 2.4.62 which addresses this vulnerability. Users should upgrade immediately by downloading the latest version from the Apache HTTP Server Vulnerabilities page. The patch implements proper validation of rewrite destinations to prevent SSRF attacks.

Additional security advisories have been issued by NetApp Security Advisory NTAP-20240808-0006 for affected products in their portfolio.

Workarounds

  • Restrict outbound network access from web servers using host-based firewalls
  • Block SMB (TCP 445) and WebDAV traffic from web server hosts at the network perimeter
  • Implement URL validation in mod_rewrite rules to allow only trusted destinations
  • Consider using mod_security or similar WAF solutions to filter malicious requests
bash
# Configuration example
# Block outbound SMB traffic from Apache server (Windows Firewall)
netsh advfirewall firewall add rule name="Block Outbound SMB" dir=out action=block protocol=tcp remoteport=445

# Restrict mod_rewrite to internal hosts only (Apache configuration)
# Add to httpd.conf or virtual host configuration
RewriteCond %{HTTP_HOST} !^(trusted-host1\.example\.com|trusted-host2\.example\.com)$ [NC]
RewriteRule .* - [F,L]

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechApache

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.47%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • Openwall OSS Security Mailing List

  • NetApp Security Advisory NTAP-20240808-0006
  • Vendor Resources
  • Apache HTTP Server Vulnerabilities
  • 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
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