7.3high
Temporary Directory Hijacking Vulnerability in Keycloak
- Severity
- 7.3high CVSS:3.1 by NVD
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- GHSA-6xp6-fmc8-pmmr
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| keycloak | keycloak 13.0.0 | CVE List |
| org.keycloak:keycloak-core (Maven) | before 13.0.0 | GitHub Advisory Database |
| redhat keycloak | before 13.0.0 | NVD |
All scores
| GitHub | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| NVD | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| NVD | 4.6medium CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
Se ha encontrado un defecto en keycloak. Los Directorios pueden ser creados antes del proceso de Java que los crea en el directorio temporal, pero con permisos de usuario más amplios, permitiendo a un atacante tener acceso a los contenidos que keycloak almacena en este directorio. La mayor amenaza de esta vulnerabilidad es la confidencialidad e integridad de los datos
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-20202 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6xp6-fmc8-pmmr changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-20202 changed 2026-06-17 | Public domain |