CVE-2026-2575
Java vulnerability analysis and mitigation

Overview

CVE-2026-2575 is a Denial of Service (DoS) vulnerability in Keycloak caused by improper handling of highly compressed SAML data ("zip bomb" / data amplification). An unauthenticated remote attacker can send a highly compressed SAMLRequest via the SAML Redirect Binding; the server fails to enforce size limits during DEFLATE decompression, resulting in an OutOfMemoryError (OOM) and process termination. The vulnerability affects Red Hat build of Keycloak versions 26.4.x before 26.4.10. It was first disclosed on February 16, 2026, and carries a CVSS v3.1 base score of 5.3 (Medium) (Red Hat CVE, Red Hat Bugzilla).

Technical details

The root cause is classified as CWE-409 (Improper Handling of Highly Compressed Data / Data Amplification). When a SAML authentication request is submitted via the SAML Redirect Binding, Keycloak decompresses the DEFLATE-encoded SAMLRequest parameter without enforcing an upper bound on the decompressed output size. An attacker can craft a small, highly compressed payload that expands to an extremely large byte stream during decompression, exhausting the JVM heap and triggering an OutOfMemoryError that terminates the Keycloak process. No authentication or user interaction is required to trigger this condition (Red Hat CVE, Red Hat Bugzilla).

Impact

Successful exploitation results in a complete loss of availability for the Keycloak authentication service — the process crashes and becomes unavailable to all legitimate users until it is restarted. Because Keycloak serves as a central identity and SSO provider, its unavailability can cascade to all applications and services that depend on it for authentication, potentially causing a broad service outage. There is no impact on confidentiality or integrity; the attack is purely a DoS (Red Hat CVE, RHSA-2026:3947).

Exploitation steps

  1. Reconnaissance: Identify internet-facing Keycloak instances (versions 26.4.x before 26.4.10) with SAML Redirect Binding enabled, using tools such as Shodan or Censys to locate exposed SAML SSO endpoints (e.g., /realms/<realm>/protocol/saml).
  2. Craft compressed payload: Create a highly compressed DEFLATE payload (analogous to a "zip bomb") — a small input that decompresses to a very large byte sequence (e.g., many gigabytes of repeated data).
  3. Encode the payload: Base64-encode the DEFLATE-compressed data and URL-encode it to form a valid SAMLRequest query parameter value.
  4. Send the malicious request: Issue an HTTP GET or POST request to the Keycloak SAML Redirect Binding endpoint with the crafted SAMLRequest parameter: GET /realms/<realm>/protocol/saml?SAMLRequest=<encoded_payload>.
  5. Trigger OOM: The Keycloak server decompresses the payload without size limits, exhausting JVM heap memory, causing an OutOfMemoryError and process termination, rendering the authentication service unavailable (Red Hat CVE, Red Hat Bugzilla).

Indicators of compromise

  • Logs: Java OutOfMemoryError stack traces in Keycloak server logs (e.g., keycloak.log or server.log) referencing SAML decompression or DEFLATE processing; sudden JVM heap exhaustion events logged by the application server.
  • Network: Repeated HTTP requests to /realms/<realm>/protocol/saml with unusually large or anomalous SAMLRequest query parameter values from a single or small set of source IPs; requests with a small HTTP body/query string that trigger disproportionate server-side resource consumption.
  • Process: Unexpected Keycloak process termination or restart events; monitoring alerts for JVM heap usage spiking to 100% followed by process crash.
  • Application: Sudden unavailability of Keycloak SSO endpoints; downstream applications reporting authentication failures coinciding with Keycloak process restarts (Red Hat CVE).

Mitigation and workarounds

Upgrade Red Hat build of Keycloak to version 26.4.10 or later, which enforces size limits during DEFLATE decompression of SAMLRequest data. Red Hat has released two security advisories addressing this issue: RHSA-2026:3947 (standalone packages) and RHSA-2026:3948 (OpenShift container images) (RHSA-2026:3947, RHSA-2026:3948). As a temporary workaround prior to patching, consider implementing network-level controls (e.g., WAF rules or reverse proxy configuration) to limit the size of incoming SAML requests or rate-limit SAML authentication requests from untrusted sources. Back up all configuration and data before applying updates.

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