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.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3856.json"
[
{
"deprecated": false,
"id": "CVE-2021-3856-1dad238c",
"digest": {
"threshold": 0.9,
"line_hashes": [
"124260399539281011717707373586744147021",
"273546477869425480957980733809903113856",
"285018114609585019930830636075742367167",
"133178131592467951898160846919801786489",
"96407110543803275689348891033921234091"
]
},
"source": "https://github.com/keycloak/keycloak/commit/73f0474008e1bebd0733e62a22aceda9e5de6743",
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "services/src/main/java/org/keycloak/theme/ClassLoaderTheme.java"
}
},
{
"deprecated": false,
"id": "CVE-2021-3856-2ade5fb0",
"digest": {
"threshold": 0.9,
"line_hashes": [
"121861020690458924525486788093213951948",
"248515847350033744246149201106405994849",
"3330082002857581691640005490138153212",
"225176885544135933599938528445378366721"
]
},
"source": "https://github.com/keycloak/keycloak/commit/73f0474008e1bebd0733e62a22aceda9e5de6743",
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "services/src/main/java/org/keycloak/theme/ClasspathThemeResourceProviderFactory.java"
}
},
{
"deprecated": false,
"id": "CVE-2021-3856-3c06b61d",
"digest": {
"length": 123.0,
"function_hash": "173054477908208581461759922352527267037"
},
"source": "https://github.com/keycloak/keycloak/commit/73f0474008e1bebd0733e62a22aceda9e5de6743",
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "services/src/main/java/org/keycloak/theme/ClasspathThemeResourceProviderFactory.java",
"function": "getResourceAsStream"
}
},
{
"deprecated": false,
"id": "CVE-2021-3856-67fb8d24",
"digest": {
"length": 91.0,
"function_hash": "163715556613522604159357137207365211778"
},
"source": "https://github.com/keycloak/keycloak/commit/73f0474008e1bebd0733e62a22aceda9e5de6743",
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "services/src/main/java/org/keycloak/theme/ClassLoaderTheme.java",
"function": "getResourceAsStream"
}
}
]