CVE-2022-1245

Source
https://cve.org/CVERecord?id=CVE-2022-1245
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1245.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-1245
Aliases
Downstream
RHSA (2)
Published
2022-07-07T23:39:22Z
Modified
2026-08-12T03:51:43Z
Summary
[none]
Details

A privilege escalation flaw was found in the token exchange feature of keycloak. Missing authorization allows a client application holding a valid access token to exchange tokens for any target client by passing the client_id of the target. This could allow a client to gain unauthorized access to additional services.

Database specific
{
    "cna_assigner":  "redhat",
    "cwe_ids":  [
        "CWE-862"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1245.json"
}
References

Affected packages

Git / github.com/keycloak/keycloak

Affected ranges

Type
GIT
Repo
https://github.com/keycloak/keycloak
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "keycloak versions prior to 18.0.0"
        },
        {
            "last_affected":  "keycloak versions prior to 18.0.0"
        },
        {
            "introduced":  "0"
        },
        {
            "fixed":  "18.0.0"
        }
    ],
    "source":  [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ]
}

Affected versions

keycloak versions prior to 18.*
keycloak versions prior to 18.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1245.json"