medium4.3
CVE-2021-3856
Keycloak has Files or Directories Accessible to External Parties
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-core | < 15.1.0 | 15.1.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Redhat | Keycloak | before 15.1.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://access.redhat.com/security/cve/CVE-2021-3856
- https://bugzilla.redhat.com/show_bug.cgi?id=2010164
- https://github.com/keycloak/keycloak/commit/73f0474008e1bebd0733e62a22aceda9e5de6743
- https://github.com/keycloak/keycloak/pull/8588
- https://issues.redhat.com/browse/KEYCLOAK-19422
- https://github.com/advisories/GHSA-3w4v-rvc4-2xpw
- https://nvd.nist.gov/vuln/detail/CVE-2021-3856