Incomplete cleanup in Keycloak - CVE-2026-13505

 

Incomplete cleanup in Keycloak - CVE-2026-13505

Published: November 19, 2026


Vulnerability identifier: #VU167856
CSH Severity: Low
CVSS v4: 5.7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-13505
CWE-ID: CWE-459
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to potentially contribute to memory exhaustion under sustained cryptographic load.

The vulnerability exists due to reliance on delayed object finalization in Bouncy Castle FIPS when disposing of objects that hold sensitive key material. A local user can contribute to a backlog of objects awaiting finalization when the workload allocates them faster than they can be cleared, keeping key material in memory and potentially exhausting the heap.

The advisory reports the problem on JVMs later than Java 11, not on Java 8 or Java 11.


Affected software

Keycloak

How to mitigate CVE-2026-13505

Install security update from vendor's website.

Keycloak - update to 26.7.5

External References

Related Security Bulletins