{"id":"CVE-2022-4137","published":"2023-09-25T19:17:55Z","modified":"2024-08-03T01:27:54Z","title":"Keycloak: reflected xss attack","vendor":"Red Hat","product":"Red Hat Single Sign-On 7","tier":"tail","description":{"text":"A reflected cross-site scripting (XSS) vulnerability was found in the 'oob' OAuth endpoint due to incorrect null-byte handling. This issue allows a malicious link to insert an arbitrary URI into a Keycloak error page. This flaw requires a user or administrator to interact with a link in order to be vulnerable. This may compromise user details, allowing it to be changed or collected by an attacker.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01193,"percentile":0.68767,"provenance":"source"},"cwes":[{"id":"CWE-81","name":"Improper Neutralization of Script in an Error Message Web Page"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:1043","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1044","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1045","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1049","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-4137","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2148496","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":13.75},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 7","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Single Sign-On 7.6 for RHEL 9","versions":["all versions"]}],"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-parent","vulnerableRanges":["<20.0.5"],"patched":["20.0.5"],"from":["GHSA-9hhc-pj4w-w5rv"],"provenance":"source"}],"summary":{"text":"A reflected cross-site scripting flaw in Red Hat Single Sign-On 7 (Keycloak) lies in the 'oob' OAuth endpoint, where incorrect null-byte handling lets a crafted input be reflected into a Keycloak error page. An attacker can exploit it over the network without authentication by getting a user or administrator to click a malicious link, which can compromise user details by allowing them to be changed or collected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:28Z"},"euvd":{"id":"EUVD-2023-0968","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-2668","published":"2022-08-05","fixed":"19.0.2","kev":false},{"cve":"CVE-2022-3782","published":"2023-01-11","fixed":"20.0.2","kev":false},{"cve":"CVE-2022-3916","published":"2023-09-20","fixed":"20.0.2","kev":false,"link":{"from":"CVE-2022-3916","to":"CVE-2022-4137","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.keycloak:keycloak-parent","fromFixed":"20.0.2","toFixed":"20.0.5","daysApart":5}]}},{"cve":"CVE-2022-4137","published":"2023-09-25","fixed":"20.0.5","kev":false}],"package":"Maven:org.keycloak:keycloak-parent"}}