CVE-2021-20202
HIGH 7.3CVSS 3.1Temporary Directory Hijacking Vulnerability in Keycloak
A flaw was found in keycloak. Directories can be created prior to the Java process creating them in the temporary directory, but with wider user permissions, allowing the attacker to have access to the contents that keycloak stores in this directory. The highest threat from this vulnerability is to data confidentiality and integrity.
- Published
- 12 May 2021
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-377
- Also known as
- GHSA-6xp6-fmc8-pmmr
- Sources
- NVDJSONOSV GHSA-6xp6-fmc8-pmmrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | keycloakcpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* |
< 13.0.0 | 13.0.0 |
| OSV | Maven | org.keycloak:keycloak-core | < 13.0.0 | 13.0.0 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1922128 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-7gf3-89f6-823j · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-20202 · ADVISORY
- https://issues.redhat.com/browse/KEYCLOAK-17000 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 12 May 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 18 Mar 2022)