CVE-2021-3856

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-3856
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3856.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-3856
Aliases
Downstream
Published
2022-08-26T16:15:09.570Z
Modified
2025-11-20T11:51:14.203459Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/keycloak/keycloak

Affected ranges

Type
GIT
Repo
https://github.com/keycloak/keycloak
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.0-alpha-1
1.0-alpha-1-12062013
1.0-alpha-2
1.0-alpha-3
1.0-beta-1
1.0-beta-2
1.0-beta-4
1.0-final
1.0-rc-1
1.0.0.Final
1.1.0.Beta2
1.3.0.Final

2.*

2.4.0.Test

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3856.json"

vanir_signatures

[
    {
        "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"
        }
    }
]