Unbounded DEFLATE Inflation in SAML 2.0 Service Provider

HIGH | JUNE 09, 2026 | CVE-2026-40988

Description

An application using spring-security-saml2-service-provider and the REDIRECT binding for SAML 2.0 Login or Logout may be vulnerable to a denial of service by way of an unbounded writer that inflates the compressed SAML payload into memory.

Affected Spring Products and Versions

Spring Security:

  • 7.0.0 - 7.0.5
  • 6.5.0 - 6.5.10
  • 6.4.0 - 6.4.16
  • 6.3.0 - 6.3.16
  • 5.8.0 - 5.8.25
  • 5.7.23 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
7.0.6OSS
7.0.5.1Enterprise Support Only
6.5.11OSS
6.5.10.2Enterprise Support Only
6.4.17Enterprise Support Only
6.3.17Enterprise Support Only
5.8.26Enterprise Support Only
5.7.24Enterprise Support Only

Note that for SAML Login, it is also recommended to disallow SAML Responses in GET requests by using OpenSaml5AuthenticationTokenConverter#setShouldConvertGetRequests(false).

History

  • 2026-06-09: 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