Vulnerabilities · 2021 · Redhat
CVE-2021-3856
Redhat Keycloak vulnerability
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 products
Keycloak. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Redhat Keycloak runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- access.redhat.com/security/cve/CVE-2021-3856 · Vendor Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2010164 · Vendor Advisory
- issues.redhat.com/browse/KEYCLOAK-19422 · Vendor Advisory
- github.com/keycloak/keycloak/commit/73f0474008e1bebd0733e62a22aceda9e5de6743 · Patch
- github.com/keycloak/keycloak/pull/8588 · Patch
- nvd.nist.gov/vuln/detail/CVE-2021-3856
- cve.org/CVERecord?id=CVE-2021-3856
More vulnerabilities in Redhat products
CVE-2025-53862CVE-2025-53861CVE-2025-47711CVE-2025-46400CVE-2025-46399CVE-2025-46398CVE-2025-46397CVE-2025-35036All 5,277
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.