# CVE-2021-3856: Keycloak has Files or Directories Accessible to External Parties

- Severity: Medium 4.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-12-01)
- Published: 2022-08-26T15:25:39.000Z
- Modified: 2026-06-17T04:05:54.257Z
- Also known as: GHSA-3w4v-rvc4-2xpw
- Weaknesses: CWE-22, CWE-552
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- keycloak: Fixed in 15.1.0
- org.keycloak:keycloak-core (Maven): before 15.1.0
- redhat keycloak: before 15.1.0

## Every score

- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`

## 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

- CVE List: [CVE-2021-3856](https://www.cve.org/CVERecord?id=CVE-2021-3856), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-3w4v-rvc4-2xpw](https://github.com/advisories/GHSA-3w4v-rvc4-2xpw), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-3856](https://nvd.nist.gov/vuln/detail/CVE-2021-3856), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3856 · Whole record: https://cve.day/CVE-2021-3856.json · Rebuilt by cve.day 2026-11-25T22:58:07.801Z
