Cloudanix VulnDB

CVE-2024-38472

High · 7.5

CVSS

7.5

EPSS

69.5%

Published

Jul 1, 2024

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Attend

A vulnerable Windows web server can be tricked into contacting another system and exposing login-related information that could help an attacker move deeper into the network.

Weaponized Chainable
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Moderate
Impact
Data Exposure
Component
Network Service
Class
SSRF
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

CVE-2024-38472 is a server-side request forgery issue in Apache HTTP Server on Windows involving UNC path handling. A remote attacker can craft a request that causes httpd to treat attacker-controlled input as a Windows UNC path and initiate an outbound network connection, commonly SMB/WebDAV, from the web server to an attacker-controlled or internal host. In Windows environments this can expose NTLM challenge-response material from the account context used by the web service and may also allow internal network probing or NTLM relay opportunities where other controls are weak.

Why it matters to the business

Successful exploitation can turn a public web server into a bridge to internal network services or a source of Windows authentication material. The most serious business risk is credential exposure or relay that could support broader compromise of Windows infrastructure. The issue is not currently listed in CISA KEV and is not marked as ransomware-associated, but the exploit maturity is weaponized and the EPSS score is high at 0.6795, so internet-facing Apache httpd deployments on Windows should be treated as urgent remediation targets.

How an attack unfolds

An attacker identifies an Apache HTTP Server instance running on Windows and sends a specially crafted HTTP request containing path syntax that can be interpreted as a UNC network location. If the server is vulnerable and the request reaches affected request-processing logic, Apache/Windows attempts to resolve or access the UNC target. When the target is attacker-controlled, the server may initiate outbound SMB or WebDAV authentication, exposing NetNTLM challenge-response data associated with the httpd service account or machine context. The attacker can then attempt offline cracking where feasible, use the material in relay attacks if NTLM relay protections are absent, or use the behavior to map which outbound network paths and internal services the web server can reach.

How to fix it

Upgrade Apache HTTP Server to a fixed build. For source/GIT deployments, apply or verify commit 15e7241fa52e86096ee061e1b7fca0cd8d6f53ee. For packaged deployments, install a vendor release that includes the fix, such as Apache httpd 2.4.60 or later where applicable. Review any configuration that intentionally relies on UNC paths and explicitly allow only required UNC paths using the fixed-version controls, such as UNCList where supported. As compensating controls, block outbound SMB from web servers to the internet, restrict outbound SMB and WebDAV to approved internal destinations only, disable or reduce NTLM exposure where possible, enforce SMB signing/EPA where applicable, and run Apache with the least-privileged Windows service account possible.

How to confirm the fix worked

Confirm the running Apache version or source build includes the fixed commit, for example with httpd -v, package manager metadata, or source control verification. Review Apache configuration for UNC path usage, rewrite rules, aliases, proxying, and filesystem mappings that could process user-controlled path input. In a controlled staging environment, send benign UNC-style and encoded-backslash requests and verify they are rejected or do not produce outbound SMB/WebDAV/DNS callbacks. Validate network egress controls by confirming the web server cannot initiate unapproved outbound connections to TCP/445, TCP/139, or WebDAV endpoints. Confirm any legitimate UNC usage is explicitly allowlisted and documented.

Typical attack path

  1. Find an internet-facing Apache HTTP Server deployment likely running on Windows.
  2. Send crafted HTTP requests containing encoded or literal UNC-style path components.
  3. Observe whether the server initiates outbound SMB/WebDAV/DNS traffic to attacker-controlled infrastructure.
  4. Capture NTLM challenge-response material or use callbacks to confirm SSRF reachability.
  5. Attempt NTLM relay, credential cracking, or internal network enumeration depending on the captured data and target controls.
  6. Use any recovered or relayed access to expand compromise within the Windows environment.

How to detect it

Look for exploitation by correlating Apache access logs with outbound network activity from the web server. Relevant log sources include Apache access/error logs, Windows Security logs, Windows SMBClient logs, firewall/proxy/DNS logs, EDR network telemetry, and packet captures. Search for HTTP request paths containing literal backslashes, double backslashes, encoded backslashes, or UNC-like path syntax, especially followed within seconds by outbound DNS, SMB, or WebDAV connections from the Apache host. Investigate any httpd.exe outbound connections to unknown external IPs on TCP/445, TCP/139, TCP/80, or TCP/443 that coincide with unusual request paths. On Windows, review NTLM authentication events and SMB client events indicating attempts to authenticate from the web server to unexpected hosts. If attacker-controlled SMB capture occurred, treat the relevant service or machine account authentication material as potentially exposed and look for subsequent NTLM relay, abnormal logons, or lateral movement.

  • %5c%5c
  • %5C%5C
  • \\
  • httpd.exe -> TCP/445
  • httpd.exe -> TCP/139
  • httpd.exe outbound SMB
  • httpd.exe outbound WebDAV
  • EventCode=4624 LogonType=3 AuthenticationPackageName=NTLM
  • EventCode=4776
  • Microsoft-Windows-SMBClient
  • TCP/445 outbound from Apache server
  • TCP/139 outbound from Apache server

What your security team should do

  • Prioritize patching Windows-based Apache HTTP Server instances, especially internet-facing systems, because exploit maturity is weaponized and EPSS is high.
  • Apply the fixed Apache httpd source commit 15e7241fa52e86096ee061e1b7fca0cd8d6f53ee or upgrade to a vendor release containing the fix.
  • Immediately restrict outbound SMB and WebDAV traffic from web servers to only approved destinations; block outbound TCP/445 and TCP/139 to the internet.
  • Hunt for evidence of outbound SMB/WebDAV or DNS callbacks from Apache/httpd hosts following suspicious HTTP requests containing UNC-style paths or encoded backslashes.
  • Review Windows NTLM hardening posture, including SMB signing, NTLM restrictions, Extended Protection for Authentication where applicable, and service-account privilege minimization.
  • Audit Apache rewrite, alias, proxy, and filesystem mapping rules for unintended handling of user-controlled paths.
  • If suspicious NTLM exposure is found, rotate affected service account credentials and investigate for NTLM relay or lateral movement.

The record

SSRF in Apache HTTP Server on Windows allows to potentially leak NTLM hashes to a malicious server via SSRF and malicious requests or content Users are recommended to upgrade to version 2.4.60 which fixes this issue.  Note: Existing configurations that access UNC paths will have to configure new directive "UNCList" to allow access during request processing.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.17 apache2 0 2.4.60-r0
Alpine:v3.18 apache2 0 2.4.60-r0
Alpine:v3.19 apache2 0 2.4.60-r0
Alpine:v3.20 apache2 0 2.4.60-r0
Alpine:v3.21 apache2 0 2.4.60-r0
Alpine:v3.22 apache2 0 2.4.60-r0
Bitnami apache 2.4.0 2.4.60
Debian:11 apache2 0 2.4.60-1
Debian:12 apache2 0 2.4.60-1
Debian:13 apache2 0 2.4.60-1
openSUSE:Tumbleweed apache2 0 2.4.61-1.1

Related vulnerabilities