4.3medium
Keycloak has Files or Directories Accessible to External Parties
- Severity
- 4.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.23% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- GHSA-3w4v-rvc4-2xpw
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
| Product or package | Versions | Reported by |
|---|---|---|
| keycloak | Fixed in 15.1.0 | CVE List |
| org.keycloak:keycloak-core (Maven) | before 15.1.0 | GitHub Advisory Database |
| redhat keycloak | before 15.1.0 | NVD |
All scores
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
ClassLoaderTheme y ClasspathThemeResourceProviderFactory permiten leer cualquier archivo disponible como recurso para el cargador de clases. Al enviar peticiones de recursos de temas con una ruta relativa desde un cliente HTTP externo, el cliente recibirá el contenido de archivos aleatorios si están disponibles.
References
| https://issues.redhat.com/browse/KEYCLOAK-19422 | permissions-required, vendor-advisory, web | |
| https://github.com/keycloak/keycloak/pull/8588 | patch, third-party-advisory, web | |
| https://github.com/keycloak/keycloak/commit/73f0474008e1bebd0733e62a22aceda9e5de6743 | patch, third-party-advisory, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2010164 | issue-tracking, vendor-advisory, web | |
| https://access.redhat.com/security/cve/CVE-2021-3856 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-3856 | advisory | |
| https://github.com/keycloak/keycloak | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3856 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3w4v-rvc4-2xpw changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2021-3856 changed 2026-06-17 | Public domain |