CVE-2025-66675
Java vulnerability analysis and mitigation

Overview

CVE-2025-66675 is a Denial of Service vulnerability in Apache Struts caused by a file leak in multipart request processing that leads to disk exhaustion. It affects Apache Struts versions 2.0.0 through 2.3.37 (EOL), 2.5.0 through 2.5.33 (EOL), 6.0.0 through 6.7.4, and 7.0.0 through 7.0.3. The vulnerability was disclosed on December 10, 2025, and is closely related to CVE-2025-64775 — this CVE specifically addresses the missing affected version 6.7.4 from that earlier advisory. It carries a CVSS v3.1 base score of 8.2 (High) (GitHub Advisory, Apache S2-068).

Technical details

The root cause is classified as CWE-459 (Incomplete Cleanup): when file upload support is enabled, temporary files created during multipart request processing are not properly cleaned up after use, causing them to accumulate on disk (Apache S2-068, GitHub Advisory). An unauthenticated remote attacker can exploit this by repeatedly sending crafted multipart HTTP requests, causing the server's disk to fill up and rendering the application unavailable. No authentication or user interaction is required, and attack complexity is low. The vulnerability was reported by Nicolas Fournier and is tracked under the Apache security bulletin S2-068 (Apache S2-068).

Impact

Successful exploitation allows an unauthenticated remote attacker to exhaust the disk space of the host running Apache Struts, causing a complete Denial of Service for the affected application. There is also a low confidentiality impact, as the file leak may expose temporary file contents to unauthorized parties. Availability impact is rated High, meaning the application can be rendered entirely unavailable, potentially affecting dependent services and causing significant operational downtime (GitHub Advisory, Apache S2-068).

Exploitation steps

  1. Reconnaissance: Identify internet-facing Apache Struts applications running affected versions (2.0.0–6.7.4 or 7.0.0–7.0.3) using tools like Shodan, Censys, or web application fingerprinting techniques.
  2. Confirm file upload support: Verify that the target application has file upload functionality enabled (the default in most Struts deployments), which is required for the vulnerability to be triggered.
  3. Craft multipart requests: Construct HTTP POST requests with multipart/form-data content type, including file upload payloads targeting any Struts action that processes file uploads.
  4. Send repeated requests: Automate the sending of large volumes of these crafted multipart requests to the target server, causing temporary files to be created on disk without being cleaned up.
  5. Achieve disk exhaustion: As temporary files accumulate, the server's disk fills up, causing the Struts application and potentially the entire host to become unavailable (DoS) (Apache S2-068, Indusface Blog).

Indicators of compromise

  • File System: Rapid accumulation of temporary files in the system's or application's configured temp directory (e.g., /tmp, java.io.tmpdir) with names consistent with Struts multipart upload artifacts; disk usage growing abnormally fast on the partition hosting the temp directory.
  • Logs: High volume of multipart POST requests in web server or application access logs from one or multiple source IPs; repeated requests to file-upload-enabled Struts action endpoints; disk-full or I/O error messages in application logs.
  • Network: Unusual spikes in inbound HTTP POST traffic, particularly with Content-Type: multipart/form-data headers; sustained high-bandwidth requests from external IPs targeting upload endpoints.
  • System: Disk utilization alerts on the server; application errors or crashes due to inability to write to disk; Java process generating large numbers of temporary files without corresponding cleanup (Apache S2-068, Indusface Blog).

Mitigation and workarounds

The recommended remediation is to upgrade Apache Struts to version 6.8.0 (for the 6.x branch) or 7.1.1 (for the 7.x branch), both of which fix the incomplete cleanup issue (Apache S2-068, GitHub Advisory). For organizations unable to patch immediately, the Apache advisory recommends configuring a dedicated temporary folder with limited disk size for uploaded files, so that exhaustion does not affect system-critical partitions. Alternatively, disabling file upload support in the framework entirely is an effective workaround if the feature is not required. Network-level rate limiting on multipart upload endpoints can also reduce exposure while patching is underway (Apache S2-068).

Community reactions

The vulnerability received coverage from security news outlets including SecurityOnline.info and Indusface, which published technical blog posts highlighting the risk of server crashes via disk exhaustion (Indusface Blog). The Apache Struts team rated the security impact as "Important" and published the S2-068 bulletin with clear remediation guidance (Apache S2-068). Social media discussion was noted on Bluesky, and the vulnerability was picked up by multiple vulnerability tracking platforms shortly after disclosure. Red Hat also acknowledged the CVE in their security advisory database (Red Hat CVE).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-p279-2cqp-84jgCRITICAL9.6
  • Java logoJava
  • org.openidentityplatform.opendj:opendj-server-legacy
NoYesJul 24, 2026
GHSA-fp43-vj7g-pg92HIGH7.5
  • Java logoJava
  • org.omnifaces:omnifaces
NoYesJul 24, 2026
GHSA-7ppr-r889-mcf2HIGH7.5
  • Java logoJava
  • org.http4s:http4s-blaze-server_2.12
NoYesJul 24, 2026
GHSA-mhvj-jhpq-885vHIGH7.4
  • Java logoJava
  • org.http4s:http4s-blaze-server_2.13
NoYesJul 24, 2026
GHSA-46q4-43ph-c6frHIGH7.4
  • Java logoJava
  • org.http4s:blaze-http_2.12
NoYesJul 24, 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