CVE-2019-10169 Keycloak code execution via UMA policy abuse
An authenticated attacker with UMA permissions can inject malicious scripts into Keycloak policies to execute arbitrary code on the 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-10169?
CVE-2019-10169 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 Keycloak’s user-managed access interface, where it would permit a script to be set in the UMA policy. This flaw allows an authenticated attacker with UMA permissions to configure a malicious script to trigger and execute arbitrary code with the permissions of the user running application.
Weakness: CWE-267
Which versions are affected by CVE-2019-10169?
2 open source packages ship an affected version, including org.keycloak:keycloak-authz-client. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-authz-client Maven | All versions | 8.0.0 |
org.keycloak:keycloak-authz-client Maven | All versions | 8.0.0 |
Products include Redhat Keycloak.
How do I fix CVE-2019-10169?
Upgrade org.keycloak:keycloak-authz-client 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-10169 being exploited?
There is no known exploitation of CVE-2019-10169 in the wild and no public exploit code.
Other vulnerabilities in Redhat Keycloak
- CVE-2022-4361 Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC
- CVE-2022-1245 Keycloak vulnerable to privilege escalation on Token Exchange feature
- CVE-2021-20195 keycloak Self Stored Cross-site Scripting vulnerability
- CVE-2019-14910 Keycloak Authentication Error
- CVE-2019-14909 Keycloak Authentication Error
Sources
Also known as GHSA-9c24-43p5-fv82.