CVE-2020-10770 Keycloak vulnerable to Server-Side Request Forgery

Medium 5.3 Published Updated

Attackers can force Keycloak to request unverified URLs via the request_uri parameter, enabling Server-Side Request Forgery attacks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-10770?

CVE-2020-10770 is a medium-severity server-side request forgery vulnerability in Redhat Keycloak, published on 15 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A flaw was found in Keycloak before 13.0.0, where it is possible to force the server to call out an unverified URL using the OIDC parameter request_uri. This flaw allows an attacker to use this parameter to execute a Server-side request forgery (SSRF) attack.

Weakness: CWE-918

Which versions are affected by CVE-2020-10770?

2 open source packages ship an affected version, including org.keycloak:keycloak-core. It affects 1 product.

PackageAffectedFixed in
org.keycloak:keycloak-core MavenAll versions13.0.0
org.keycloak:keycloak-core MavenAll versions13.0.0
Linux distribution packages (6)
rh-sso7-keycloak Red Hat:red_hat_single_sign_on:7::el6All versions0:9.0.11-1.redhat_00001.1.el6sso
rh-sso7-keycloak-server Red Hat:red_hat_single_sign_on:7::el6All versions0:9.0.11-1.redhat_00001.1.el6sso
rh-sso7-keycloak Red Hat:red_hat_single_sign_on:7::el7All versions0:9.0.11-1.redhat_00001.1.el7sso
rh-sso7-keycloak-server Red Hat:red_hat_single_sign_on:7::el7All versions0:9.0.11-1.redhat_00001.1.el7sso
rh-sso7-keycloak Red Hat:red_hat_single_sign_on:7::el8All versions0:9.0.11-1.redhat_00001.1.el8sso
rh-sso7-keycloak-server Red Hat:red_hat_single_sign_on:7::el8All versions0:9.0.11-1.redhat_00001.1.el8sso

Products include Redhat Keycloak.

How do I fix CVE-2020-10770?

Upgrade org.keycloak:keycloak-core to 13.0.0 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2020-10770 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-10770 exists.

Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 2 proofs of concept on GitHub.

All Redhat Keycloak vulnerabilities

Sources

Also known as GHSA-jh7q-5mwf-qvhw, RHSA-2021:0318, RHSA-2021:0319, RHSA-2021:0320.

Is CVE-2020-10770 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free