CVE-2026-40988

Unbounded DEFLATE Inflation in SAML 2.0 Service Provider

Published Jun 9, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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 versions:
Spring Security 5.7.0 through 5.7.23; 5.8.0 through 5.8.25; 6.3.0 through 6.3.16; 6.4.0 through 6.4.16; 6.5.0 through 6.5.10; 7.0.0 through 7.0.5.

Analysis

AI-generated

Technical impact

The vulnerability arises in applications that use the spring-security-saml2-service-provider component with the REDIRECT binding for SAML 2.0 Login or Logout. A crafted compressed SAML payload can be inflated into memory without bounds, exhausting server resources and causing the application to become unresponsive. This is a classic denial of service flaw classified as CWE-400 and does not provide the attacker with direct data exfiltration or code execution capabilities.

Affected Systems

Products affected are Spring Security versions 5.7.0 through 5.7.23, 5.8.0 through 5.8.25, 6.3.0 through 6.3.16, 6.4.0 through 6.4.16, 6.5.0 through 6.5.10, and 7.0.0 through 7.0.5. Only the spring-security-saml2-service-provider module within the Spring Framework is affected; no other vendors or products are listed.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity, while the EPSS score is not available and KEV has not listed this vulnerability. The likely attack vector is remote, via an attacker-specified SAML assertion transmitted over HTTP to the application’s SAML endpoint. An attacker can trigger the inflation by sending a specially compressed payload, leading to excessive memory consumption and service disruption. The lack of an EPSS rating does not diminish the risk, as memory exhaustion attacks can be simple to construct and do not require special privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Spring Security to the latest release that contains the DEFLATE inflation fix (versions 5.7.24+, 5.8.26+, 6.3.17+, 6.4.17+, 6.5.11+, 7.0.6+).
  • Configure the application to enforce a strict maximum size for SAML requests received via the REDIRECT binding, rejecting any payload that exceeds a safe threshold.
  • If a patch is not immediately available, restrict access to the SAML endpoints to trusted IP ranges or require authentication prior to processing SAML assertions.

Generated by OpenCVE AI on June 10, 2026 at 01:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-m69x-pw9p-7j3q Spring Security SAML2 Service Provider: Unbounded writer inflates the compressed SAML payload into memory (DoS)
References
History
Type Values Removed Values Added
First Time appeared Vmware
Vmware spring Security
CPEs cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*
Vendors & Products Vmware
Vmware spring Security
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Spring
Spring spring Security
Vendors & Products Spring
Spring spring Security
Type Values Removed Values Added
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 versions: Spring Security 5.7.0 through 5.7.23; 5.8.0 through 5.8.25; 6.3.0 through 6.3.16; 6.4.0 through 6.4.16; 6.5.0 through 6.5.10; 7.0.0 through 7.0.5.
Title Unbounded DEFLATE Inflation in SAML 2.0 Service Provider
Weaknesses CWE-400
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 27, 2026, 9:22 PM
Reserved
Apr 16, 2026, 2:19 AM
Status
Analyzed
Published
Jun 10, 2026, 12:16 AM
Modified
Jul 23, 2026, 9:10 AM