CVE-2020-1714: Improper Input Validation in Keycloak

org.keycloak:keycloak-core Updated 02 Oct 2025

Summary

09/02/2022
Yes i
High
8.8

CVE-2020-1714: Improper Input Validation in Keycloak. Affects org.keycloak:keycloak-core versions < 11.0.0. Fixed in 11.0.0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Keycloak is an open-source identity and access management solution that provides single sign-on, social login, and user federation capabilities. It is widely used to secure web applications and services. The Keycloak parent package, specifically versions prior to 11.0.0, is affected by a vulnerability that allows an attacker to inject malicious serialized Java Objects. This vulnerability arises from the usage of ObjectInputStream without proper type checks. Exploiting this flaw can lead to remote code execution in a privileged context.

Vulnerability Detail

The vulnerability (CVE-2020-1714) in Keycloak arises due to the lack of input validation in the code base. By injecting malicious serialized Java Objects, an attacker can exploit this flaw to execute arbitrary code in a privileged context. This can result in severe consequences, including unauthorized access, data breaches, and complete compromise of the affected system. The vulnerability has a CVSS score of 8.8, indicating a high severity level.

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

11.0.0

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 workaround, if upgrading to the latest version is not immediately feasible, it is recommended to implement input validation and enforce strict deserialization policies. This can be achieved by implementing custom deserialization filters or using libraries that provide secure deserialization mechanisms. By validating and sanitizing user input, the risk of deserialization attacks can be mitigated.

Conclusion

The vulnerability (CVE-2020-1714) in Keycloak allows an attacker to inject malicious serialized Java Objects, potentially leading to remote code execution. To mitigate this vulnerability, it is crucial to upgrade the Keycloak parent package to version 11.0.0 or later. Implementing input validation and enforcing strict deserialization policies can serve as temporary workarounds. For further support and assistance in vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

Keycloak is an open-source identity and access management solution that provides single sign-on, social login, and user federation capabilities. It is widely used to secure web applications and services.

Exploiting this vulnerability can lead to remote code execution in a privileged context. This can result in unauthorized access, data breaches, and complete compromise of the affected system.

The CVSS score of this vulnerability is 8.8, indicating a high severity level.

To fix this vulnerability, it is recommended to upgrade the Keycloak parent package to version 11.0.0 or later. This version includes the necessary fixes and improvements to prevent the injection of malicious serialized Java Objects.

As a workaround, if upgrading to the latest version is not immediately feasible, it is recommended to implement input validation and enforce strict deserialization policies. This can be achieved by implementing custom deserialization filters or using libraries that provide secure deserialization mechanisms.

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

11.0.0

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