CVE-2025-59775
Apache HTTP Server vulnerability analysis and mitigation

Overview

CVE-2025-59775 is a Server-Side Request Forgery (SSRF) vulnerability in Apache HTTP Server on Windows that allows unauthenticated remote attackers to leak NTLM hashes to an attacker-controlled server. The vulnerability affects Apache HTTP Server versions 2.4.0 through 2.4.65 and is only exploitable when both AllowEncodedSlashes On and MergeSlashes Off directives are configured. It was reported on 2025-09-10 by Orange Tsai (@orange_8361) from DEVCORE, fixed on 2025-12-01, and publicly disclosed on 2025-12-04/05. It carries a CVSS v3.1 base score of 7.5 (High) (oss-security, Apache Advisory).

Technical details

The vulnerability is classified as CWE-918 (Server-Side Request Forgery) and stems from improper handling of encoded URL paths on Windows when AllowEncodedSlashes On and MergeSlashes Off are both enabled. Under these conditions, an attacker can craft malicious HTTP requests containing UNC-style paths (e.g., \\attacker-server\share) that cause the Apache HTTP Server process to initiate an outbound SMB/NTLM authentication attempt to an attacker-controlled host, leaking the server's NTLM credentials in the process. The attack requires no authentication and no user interaction, but does require the specific non-default Apache configuration combination to be present (oss-security, Apache Advisory).

Impact

Successful exploitation results in the disclosure of NTLM hashes from the Windows account running the Apache HTTP Server process to an attacker-controlled server. These captured NTLM hashes can subsequently be cracked offline to recover plaintext credentials or used directly in NTLM relay attacks, potentially enabling lateral movement within the network. The confidentiality impact is rated High, with no direct integrity or availability impact from the vulnerability itself (oss-security, Feedly).

Exploitation steps

  1. Reconnaissance: Identify Windows-based Apache HTTP Server deployments (versions 2.4.0–2.4.65) using tools like Shodan or Censys, or through direct banner grabbing. Confirm the server is running on Windows.
  2. Configuration verification: Probe the target to determine whether AllowEncodedSlashes On and MergeSlashes Off are active, which may be inferred from how the server handles encoded slash characters in URLs.
  3. Craft malicious SSRF request: Construct an HTTP request containing a URL-encoded UNC path (e.g., %5C%5Cattacker-ip%5Cshare) that, when decoded by Apache under the vulnerable configuration, causes the server to initiate an outbound SMB connection to an attacker-controlled host.
  4. Capture NTLM hash: Set up an SMB listener (e.g., using Responder or Impacket's ntlmrelayx) on the attacker-controlled server to capture the NTLM authentication attempt from the Apache server process.
  5. Post-exploitation: Crack the captured NTLM hash offline (e.g., using Hashcat or John the Ripper) or relay it for lateral movement within the target network (oss-security).

Indicators of compromise

  • Network: Unexpected outbound SMB (TCP port 445) or NetBIOS (TCP/UDP port 139) connections originating from the Apache HTTP Server host to external or unknown IP addresses; NTLM authentication attempts to external hosts.
  • Logs: Apache access logs showing requests with URL-encoded backslash sequences (e.g., %5C%5C, %2F%2F) or UNC-style path patterns in request URIs; Windows Security Event Log entries (Event ID 4624/4625) showing NTLM authentication attempts to external hosts from the Apache service account.
  • Network: Traffic captures showing SMB NTLM NEGOTIATE or CHALLENGE/RESPONSE packets destined for non-internal IP addresses originating from the web server.
  • Process: The Apache httpd.exe process initiating unexpected network connections to external SMB endpoints.

Mitigation and workarounds

Upgrade Apache HTTP Server to version 2.4.66 or later, which contains the official fix for this vulnerability (Apache Advisory). As a configuration-based workaround, review and disable the AllowEncodedSlashes On and MergeSlashes Off directives if they are not required by the application, as the vulnerability only exists when both are enabled simultaneously. Additionally, restrict outbound SMB traffic (TCP port 445) from the Apache server host using host-based or network firewalls to prevent NTLM hash leakage even if exploitation is attempted. Apple has also released patches addressing this CVE in macOS Sequoia 15.7.5, macOS Sonoma 14.8.5, and macOS Tahoe 26.4 (Apple macOS Sequoia, Apple macOS Sonoma, Apple macOS Tahoe).

Community reactions

The vulnerability was disclosed via the oss-security mailing list by Apache committer Eric Covener, crediting Orange Tsai of DEVCORE as the finder. Security news outlets such as SecurityOnline.info covered the disclosure in the context of the broader Apache HTTP Server 2.4.66 release, which also addressed other vulnerabilities. The community noted that the attack surface is limited by the non-default configuration requirement, moderating the overall severity assessment (oss-security, SecurityOnline).

Additional resources


SourceThis report was generated using AI

Related Apache HTTP Server vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-44631CRITICAL9.8
  • Apache HTTP Server logoApache HTTP Server
  • apache2-tls13-prefork
NoYesJun 08, 2026
CVE-2026-49975HIGH7.5
  • NGINX logoNGINX
  • mod_proxy_html
NoYesJun 08, 2026
CVE-2026-48913HIGH7.3
  • Apache HTTP Server logoApache HTTP Server
  • mod_http2-debugsource
NoYesJun 08, 2026
CVE-2026-44186HIGH7.3
  • Apache HTTP Server logoApache HTTP Server
  • apache2-prefork
NoYesJun 08, 2026
CVE-2026-44185HIGH7.3
  • Apache HTTP Server logoApache HTTP Server
  • httpd
NoYesJun 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management