Bug 2508307 (CVE-2026-18212) - CVE-2026-18212 keycloak-services: keycloak-services: SAML Redirect DEFLATE helpers leak native zlib state
Summary: CVE-2026-18212 keycloak-services: keycloak-services: SAML Redirect DEFLATE he...
Keywords:
Status: NEW
Alias: CVE-2026-18212
Deadline: 2026-10-26
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-29 08:31 UTC by OSIDB Bzimport
Modified: 2026-09-16 13:22 UTC (History)
29 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-29 08:31:48 UTC
A memory leak flaw was found in Keycloaks SAML Redirect Binding. The implementation uses custom Deflater and Inflater instances to handle DEFLATE compression and decompression for SAML artifacts. These Java classes allocate native memory via zlib that is not managed by the standard Java heap. The code fails to call the end method on these instances, which is required to explicitly release the native resources.
An unauthenticated remote attacker can trigger this leak by sending specially crafted, malformed SAML Redirect requests to the Keycloak SAML endpoint. Because the native memory is not reclaimed by the Java garbage collector, repeated requests will cause the process resident set size (RSS) to grow until the operating system terminates the process due to memory exhaustion. Successful exploitation results in a complete denial of service for the Keycloak instance.


Note You need to log in before you can comment on or make changes to this bug.