CVE-2024-10039: Keycloak mTLS Authentication Bypass via Reverse Proxy TLS Termination

org.keycloak:keycloak-core Updated 02 Oct 2025

Summary

25/11/2024
Yes i
High
7.1

CVE-2024-10039: Keycloak mTLS Authentication Bypass via Reverse Proxy TLS Termination. Affects org.keycloak:keycloak-core versions < 26.0.6. Fixed in 26.0.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Keycloak is an open-source identity and access management solution that allows users to secure applications and services with little to no code. It provides features such as single sign-on (SSO), user federation, identity brokering, and social login. Keycloak is widely used for managing user identities and access in modern applications. However, certain deployment configurations, particularly those involving reverse proxies, can expose Keycloak to vulnerabilities, such as the one described here.

Vulnerability Detail

A vulnerability exists in Keycloak when deployed with a reverse proxy that does not use pass-through termination of TLS while mTLS is enabled. This flaw allows an attacker on the local network to potentially authenticate as any user or client that relies on mTLS for authentication. The lack of proper TLS termination can lead to unauthorized access and compromise the integrity of the authentication process, making it a significant security risk.

How To Fix

Latest published version: 26.8.1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

26.0.6

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, if you cannot update Keycloak immediately, consider configuring your reverse proxy to use pass-through termination of TLS. This configuration ensures that the TLS connection is maintained all the way to the Keycloak server, preventing the vulnerability from being exploited.

Conclusion

The CVE-2024-10039 vulnerability in Keycloak poses a significant risk for deployments using reverse proxies without proper TLS termination. It is crucial to update to the patched version 26.0.6 or later to mitigate this risk. Additionally, implementing workarounds such as pass-through TLS termination can provide temporary relief until the update is applied.

See every vulnerability recorded for org.keycloak:keycloak-core →

Share this vulnerability

FAQ

mTLS, or mutual TLS, is a security protocol that requires both the client and server to authenticate each other during the TLS handshake, providing an additional layer of security.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Failing to address this vulnerability could allow unauthorized users to gain access to sensitive resources, potentially leading to data breaches and loss of user trust.

Yes, tools like Vulert can monitor your project's pom.xml file for open-source vulnerabilities in real-time, alerting you to any issues.

The CVSS score for this vulnerability is 7.1, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for org.keycloak:keycloak-core.

How To Fix

Latest published version: 26.8.1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

26.0.6

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback