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.
Remediation
References
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
Related Vulnerabilities
CVE-2016-6814 Vulnerability in maven package org.codehaus.groovy:groovy-all
CVE-2015-3192 Vulnerability in maven package org.springframework:spring-web
CVE-2018-1999004 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2019-10083 Vulnerability in maven package org.apache.nifi:nifi-nar-bundles
CVE-2022-36918 Vulnerability in maven package org.jenkins-ci.plugins:buckminster