Spring Framework DoS with Multipart Temp Files in WebFlux

MEDIUM | APRIL 17, 2026 | CVE-2026-22740

Description

A WebFlux server application that processes multipart requests creates temp files for parts larger than 10 K. Under some circumstances, temp files may remain not deleted after the request is fully processed. This allows an attacker to consume available disk space.

Affected Spring Products and Versions

Spring Framework:

  • 7.0.0 - 7.0.6
  • 6.2.0 - 6.2.17
  • 6.1.0 - 6.1.26
  • 5.3.47 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
7.0.7OSS
6.2.18OSS
6.1.27Enterprise Support Only
5.3.48Enterprise Support Only

No further mitigation steps are necessary.

Credit

This vulnerability was discovered and reported independently by Xint Code and Yuki Matsuhashi.

History

  • 2026-04-17: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all