CVE-2021-3856
Keycloak has Files or Directories Accessible to External Parties
Description
ClassLoaderTheme and ClasspathThemeResourceProviderFactory allows reading any file available as a resource to the classloader. By sending requests for theme resources with a relative path from an external HTTP client, the client will receive the content of random files if available.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.keycloak » keycloak-core | < 15.1.0 | 15.1.0 |
Blast radius
56% of the dependent artifacts (579) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 8,870 |
| 2 hops | 11,281 |
| 3 hops | 7,520 |
| 4 hops | 2,143 |
| 5 hops | 1,903 |
| 6 hops | 546 |
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
- city.smartb.i2 » keycloak-auth-client42 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
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-3856 | nvd.nist.gov |
| Package | keycloak/keycloak | github.com |
| Web | keycloak/keycloak pull request #8588 | github.com |
| Web | keycloak/keycloak commit 73f0474 | github.com |
| Web | security/cve/CVE-2021-3856 | access.redhat.com |
| Web | show_bug.cgi | bugzilla.redhat.com |
| Web | browse/KEYCLOAK-19422 | issues.redhat.com |
