CVE-2017-12160 Keycloak Oauth Implementation Error

High 7.2 Published Updated

An attacker with a compromised resource can retain indefinite access tokens despite permission revocation, bypassing authorization controls in Keycloak.

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

What is CVE-2017-12160?

CVE-2017-12160 is a high-severity authentication bypass vulnerability in Redhat Keycloak, published on 26 Oct 2017. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

It was found that Keycloak oauth would permit an authenticated resource to obtain an access/refresh token pair from the authentication server, permitting indefinite usage in the case of permission revocation. An attacker on an already compromised resource could use this flaw to grant himself continued permissions and possibly conduct further attacks.

Weakness: CWE-287, CWE-285

Which versions are affected by CVE-2017-12160?

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

PackageAffectedFixed in
org.keycloak:keycloak-parent MavenAll versions3.3.0.Final
org.keycloak:keycloak-parent MavenAll versions3.3.0.Final

Products include Redhat Keycloak.

How do I fix CVE-2017-12160?

Upgrade org.keycloak:keycloak-parent to 3.3.0.Final or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2017-12160 being exploited?

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

All Redhat Keycloak vulnerabilities

Sources

Also known as GHSA-qc72-gfvw-76h7.

Is CVE-2017-12160 in your software?

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

Check your SBOMs for free