CVE-2019-10170 Privilege Defined With Unsafe Actions in Keycloak

Medium 6.6 Published Updated

Authenticated realm administrators can inject malicious scripts via policy settings to execute arbitrary code on the Keycloak server.

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

What is CVE-2019-10170?

CVE-2019-10170 is a medium-severity code injection vulnerability in Redhat Keycloak, published on 8 May 2020. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A flaw was found in the Keycloak admin console, where the realm management interface permits a script to be set via the policy. This flaw allows an attacker with authenticated user and realm management permissions to configure a malicious script to trigger and execute arbitrary code with the permissions of the application user.

Weakness: CWE-267

Which versions are affected by CVE-2019-10170?

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

PackageAffectedFixed in
org.keycloak:keycloak-core MavenAll versions8.0.0
org.keycloak:keycloak-core MavenAll versions8.0.0

Products include Redhat Keycloak.

How do I fix CVE-2019-10170?

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

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2019-10170 being exploited?

There is no known exploitation of CVE-2019-10170 in the wild and no public exploit code.

All Redhat Keycloak vulnerabilities

Sources

Also known as GHSA-7m27-3587-83xf.

Is CVE-2019-10170 in your software?

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

Check your SBOMs for free