CVE-2026-2575 · redhat
Keycloak: keycloak: denial of service due to excessive samlrequest decompression
A flaw was found in Keycloak. An unauthenticated remote attacker can trigger an application level Denial of Service (DoS) by sending a highly compressed SAMLRequest through the SAML Redirect Binding. The server fails to enforce size limits during DEFLATE decompression, leading to an OutOfMemoryError (OOM) and subsequent process termination. This vulnerability allows an attacker to disrupt the availability of the service.
Published 2026-03-18, last changed 2026-11-25. Weakness: CWE-409.
How to fix
Upgrade to a fixed version: org.keycloak:keycloak-saml-adapter-core 26.5.4 (Maven); org.keycloak:keycloak-saml-core 26.5.4 (Maven); org.keycloak:keycloak-services 26.5.4 (Maven). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in keycloak/keycloak by 4f90ef67f6, 458d6ad623, faebdec8c6. Functions changed by the fix: handleSamlRequest, extractRedirectBindingResponse, parseRequestRedirectBinding, parseResponseRedirectBinding, DeflateUtil, decode, LimitedInflaterInputStream, checkMaxInflatingsize, read, markSupported, reset, mark. Regression tests: services/src/test/java/org/keycloak/test/broker/saml/SAMLParsingTest.java, docs/documentation/tests/pom.xml, quarkus/tests/integration/pom.xml, quarkus/tests/junit5/pom.xml. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2026-03-18 | Published |
| 2026-03-18 | Package advisory GHSA-xv6h-r36f-3gp5 |
| 2026-11-25 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.97% |
| 2026-12-04 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-xv6h-r36f-3gp5 | org.keycloak:keycloak-saml-adapter-core (Maven) | 26.5.4 |
| GHSA-xv6h-r36f-3gp5 | org.keycloak:keycloak-saml-core (Maven) | 26.5.4 |
| GHSA-xv6h-r36f-3gp5 | org.keycloak:keycloak-services (Maven) | 26.5.4 |
Also known as: GHSA-xv6h-r36f-3gp5
Credited: Red Hat would like to thank Sho Odagiri (GMO Cybersecurity by Ierae, Inc.) for reporting this issue. (other)
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2018-10894 | 2018-08-01 | 5.4 | same package: org.keycloak:keycloak-saml-adapter-core (Maven) |
| CVE-2026-7307 | 2026-05-19 | 7.5 | Keycloak: keycloak: denial of service via specially crafted saml input |
| CVE-2024-8698 | 2024-09-19 | 7.7 | Keycloak-saml-core: improper verification of saml responses leading to privilege escalation in keycloak |
| CVE-2021-3827 | 2022-08-23 | 6.8 | same package: org.keycloak:keycloak-saml-core (Maven) |
| CVE-2026-18963 | 2026-08-18 | 9.1 | Keycloak-services: keycloak-services: unauthenticated account takeover via reset-credentials flow bypass |
| CVE-2026-11800 | 2026-06-25 | 8.1 | Org.keycloak:keycloak-services: keycloak: authentication bypass via jwt algorithm confusion |
| CVE-2026-9800 | 2026-06-25 | 8.1 | Keycloak-policy-enforcer: keycloak policy enforcer: authorization bypass via incorrect uri comparison |
| CVE-2026-9799 | 2026-06-25 | 4.6 | Keycloak: keycloak: unauthorized access to resources via uma permission ticket bypass |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2026-2575, or call /api/v1/vulnerabilities/CVE-2026-2575. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.