CVE-2021-20202
Temporary Directory Hijacking Vulnerability in Keycloak
Description
A flaw was found in keycloak. Directories can be created prior to the Java process creating them in the temporary directory, but with wider user permissions, allowing the attacker to have access to the contents that keycloak stores in this directory. The highest threat from this vulnerability is to data confidentiality and integrity.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.keycloak » keycloak-core | < 13.0.0 | 13.0.0 |
Blast radius
55% of the dependent artifacts (498) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 7,796 |
| 2 hops | 8,627 |
| 3 hops | 5,812 |
| 4 hops | 1,321 |
| 5 hops | 1,434 |
| 6 hops | 257 |
Most used dependents
- org.keycloak » keycloak-services223 usages
- org.keycloak » keycloak-admin-client216 usages
- org.alfresco » alfresco-repository121 usages
- org.keycloak » keycloak-authz-client98 usages
- org.keycloak » keycloak-spring-boot-starter93 usages
- org.alfresco » alfresco-remote-api67 usages
- org.keycloak » keycloak-model-jpa62 usages
- org.keycloak » keycloak-spring-security-adapter56 usages
- org.keycloak » keycloak-undertow-adapter48 usages
- io.apicurio » apicurio-registry-common42 usages
- org.alfresco » share37 usages
- io.apicurio » apicurio-registry-utils-converter37 usages
- io.quarkus » quarkus-oidc-deployment35 usages
- org.keycloak » keycloak-servlet-filter-adapter34 usages
- org.commonjava.indy » indy-bindings-jaxrs31 usages
Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2021-20202 | nvd.nist.gov |
| Web | JLLeitschuh/security-research advisory GHSA-7gf3-89f6-823j | github.com |
| Web | show_bug.cgi | bugzilla.redhat.com |
| Web | browse/KEYCLOAK-17000 | issues.redhat.com |
