CVE-2022-0225: A flaw was found in Keycloak.
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 3.2% (FIRST EPSS); higher than 88.2% of all records.
- Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: org.keycloak:keycloak-core (Maven) 20.0.0; rh-sso7-keycloak (Red Hat:red_hat_single_sign_on:7.5::el7) 0:15.0.8-1.redhat_00001.1.el7sso; rh-sso7-keycloak-server (Red Hat:red_hat_single_sign_on:7.5::el7) 0:15.0.8-1.redhat_00001.1.el7sso.
Low priority for now. Upgrade to org.keycloak:keycloak-core (Maven) 20.0.0; rh-sso7-keycloak (Red Hat:red_hat_single_sign_on:7.5::el7) 0:15.0.8-1.redhat_00001.1.el7sso; rh-sso7-keycloak-server (Red Hat:red_hat_single_sign_on:7.5::el7) 0:15.0.8-1.redhat_00001.1.el7sso or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
A flaw was found in Keycloak. This flaw allows a privileged attacker to use the malicious payload as the group name while creating a new group from the admin console, leading to a stored Cross-site scripting (XSS) attack.
- Published
- Aug 26, 2022
- Updated
- Jun 17, 2026
- EPSS
- 3.2% · 88th percentile
- CWE
- CWE-79
Report tools
Action score
22
Monitor
Low priority for now.
- CVSS
- 21 / 40 · 5.4 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.2%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Limit the impact of XSSCheck security headers
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| redhat | keycloak | cpe:2.3:a:redhat:keycloak |
| redhat | single sign-on | cpe:2.3:a:redhat:single_sign-on |
Limit the impact of XSS
This is a cross-site scripting (XSS) vulnerability. A well-configured Content-Security-Policy doesn't fix it, but greatly reduces its impact. Check your site's CSP and other security headers for free.
Check security headersAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- redhat keycloakall versions
- redhat single sign-on7.0
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
n/a keycloak
- Not-Knownaffected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Maven | org.keycloak:keycloak-core | before 20.0.0 | 20.0.0 |
| Maven | org.keycloak:keycloak-core | up to and including 16.1.0 | — |
| Red Hat:red_hat_single_sign_on:7.5::el7 | rh-sso7-keycloak | before 0:15.0.8-1.redhat_00001.1.el7sso | 0:15.0.8-1.redhat_00001.1.el7sso |
| Red Hat:red_hat_single_sign_on:7.5::el7 | rh-sso7-keycloak-server | before 0:15.0.8-1.redhat_00001.1.el7sso | 0:15.0.8-1.redhat_00001.1.el7sso |
| Red Hat:red_hat_single_sign_on:7.5::el8 | rh-sso7-keycloak | before 0:15.0.8-1.redhat_00001.1.el8sso | 0:15.0.8-1.redhat_00001.1.el8sso |
| Red Hat:red_hat_single_sign_on:7.5::el8 | rh-sso7-keycloak-server | before 0:15.0.8-1.redhat_00001.1.el8sso | 0:15.0.8-1.redhat_00001.1.el8sso |
| Red Hat:red_hat_single_sign_on:7.6::el7 | rh-sso7-keycloak | before 0:18.0.3-1.redhat_00001.1.el7sso | 0:18.0.3-1.redhat_00001.1.el7sso |
| Red Hat:red_hat_single_sign_on:7.6::el7 | rh-sso7-keycloak-server | before 0:18.0.3-1.redhat_00001.1.el7sso | 0:18.0.3-1.redhat_00001.1.el7sso |
| Red Hat:red_hat_single_sign_on:7.6::el8 | rh-sso7-keycloak | before 0:18.0.3-1.redhat_00001.1.el8sso | 0:18.0.3-1.redhat_00001.1.el8sso |
| Red Hat:red_hat_single_sign_on:7.6::el8 | rh-sso7-keycloak-server | before 0:18.0.3-1.redhat_00001.1.el8sso | 0:18.0.3-1.redhat_00001.1.el8sso |
| Red Hat:red_hat_single_sign_on:7.6::el9 | rh-sso7 | before 0:1-5.el9sso | 0:1-5.el9sso |
| Red Hat:red_hat_single_sign_on:7.6::el9 | rh-sso7-javapackages-filesystem | before 0:6.0.0-7.el9sso | 0:6.0.0-7.el9sso |
| Red Hat:red_hat_single_sign_on:7.6::el9 | rh-sso7-javapackages-tools | before 0:6.0.0-7.el9sso | 0:6.0.0-7.el9sso |
| Red Hat:red_hat_single_sign_on:7.6::el9 | rh-sso7-keycloak | before 0:18.0.3-1.redhat_00001.1.el9sso | 0:18.0.3-1.redhat_00001.1.el9sso |
| Red Hat:red_hat_single_sign_on:7.6::el9 | rh-sso7-keycloak-server | before 0:18.0.3-1.redhat_00001.1.el9sso | 0:18.0.3-1.redhat_00001.1.el9sso |
| Red Hat:red_hat_single_sign_on:7.6::el9 | rh-sso7-python3-javapackages | before 0:6.0.0-7.el9sso | 0:6.0.0-7.el9sso |
| Red Hat:red_hat_single_sign_on:7.6::el9 | rh-sso7-runtime | before 0:1-5.el9sso | 0:1-5.el9sso |
Same product
redhat: all recordsOther highest-scoring records for the same primary product.
- CVE-2020-10770A flaw was found in Keycloak before 13.0.0, where it is possible to force the server to call out an unverified URL using the OIDC parameter…42Plan
- CVE-2022-1245A privilege escalation flaw was found in the token exchange feature of keycloak.39Monitor
- CVE-2019-14910A vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used instead of SSL/TLS…39Monitor
Published before and after this one in the same product
- ← EarlierCVE-2021-3754Aug 26, 2022 · A flaw was found in keycloak where an attacker is able to register himself with the username same as the email ID of any existing user.22Monitor
- ← EarlierCVE-2021-3856Aug 26, 2022 · ClassLoaderTheme and ClasspathThemeResourceProviderFactory allows reading any file available as a resource to the classloader.17Monitor
- Later →CVE-2022-3782Jan 13, 2023 · keycloak: path traversal via double URL encoding.38Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Maven:org.keycloak:keycloak-core | 20.0.0 | Package registry (OSV) |
| red hat:rh-sso7 | 0:1-5.el9sso · Red Hat:red_hat_single_sign_on:7.6::el9 | Package registry (OSV) |
| red hat:rh-sso7-javapackages-filesystem | 0:6.0.0-7.el9sso · Red Hat:red_hat_single_sign_on:7.6::el9 | Package registry (OSV) |
| red hat:rh-sso7-javapackages-tools | 0:6.0.0-7.el9sso · Red Hat:red_hat_single_sign_on:7.6::el9 | Package registry (OSV) |
| red hat:rh-sso7-keycloak | 0:15.0.8-1.redhat_00001.1.el7sso · Red Hat:red_hat_single_sign_on:7.5::el7 | Package registry (OSV) |
| red hat:rh-sso7-keycloak-server | 0:15.0.8-1.redhat_00001.1.el7sso · Red Hat:red_hat_single_sign_on:7.5::el7 | Package registry (OSV) |
| red hat:rh-sso7-python3-javapackages | 0:6.0.0-7.el9sso · Red Hat:red_hat_single_sign_on:7.6::el9 | Package registry (OSV) |
| red hat:rh-sso7-runtime | 0:1-5.el9sso · Red Hat:red_hat_single_sign_on:7.6::el9 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- none
Impact can extend beyond the vulnerable component (scope changes).
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- None
Weakness class (CWE)
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
nvd-primary
Root cause
User content is inserted into the page as HTML. The browser interprets the content as code rather than data.
The bug in code
The whole CWE-79 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
commentEl.innerHTML = comment.body;Fixed
commentEl.textContent = comment.body;Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Vendor advisories and official records. Exploit/PoC links are deliberately left out.