{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-3856","id":"CVE-2021-3856","title":"Keycloak has Files or Directories Accessible to External Parties","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.","descriptionLong":"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.","published":"2022-08-26T15:25:39.000Z","updated":"2026-10-20T14:26:37.166486374Z","reserved":"2021-10-04T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["keycloak"],"affectedProducts":[{"vendor":"n/a","product":"keycloak","defaultStatus":null,"versions":[{"status":"affected","version":"Fixed in 15.1.0"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-core","purl":"pkg:maven/org.keycloak/keycloak-core","ranges":["<15.1.0"],"fixed":["15.1.0"],"advisory":"GHSA-3w4v-rvc4-2xpw"}],"cwes":["CWE-552","CWE-22"],"aliases":["GHSA-3w4v-rvc4-2xpw"],"references":[{"url":"https://issues.redhat.com/browse/KEYCLOAK-19422","tags":["x_refsource_MISC","x_transferred","Permissions Required","Vendor Advisory","report","web"]},{"url":"https://github.com/keycloak/keycloak/pull/8588","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/keycloak/keycloak/commit/73f0474008e1bebd0733e62a22aceda9e5de6743","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2010164","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3856","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3856","tags":["advisory"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01225,"epssPercentile":0.6945,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-3856","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3856","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-3856","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3w4v-rvc4-2xpw","ok":true,"note":"GHSA-3w4v-rvc4-2xpw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3856","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}