High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-20202
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:09 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-20202
Complete source record
{
"id": "6171c29d29b933686fc15f90811493edbf0de3ab3777e9159057378d63e41287",
"url": "https://osv.dev/vulnerability/CVE-2021-20202",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-20202",
"summary": "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.",
"evidence": "osv:CVE-2021-20202",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-20202",
"aliases": [
"CVE-2021-20202",
"GHSA-6xp6-fmc8-pmmr"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/keycloak/keycloak",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "af1855ebc6a3d025b58b697c9bc32567fb512eec"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "13.0.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"2.4.0.Test",
"1.3.0.Final",
"1.1.0.Beta2",
"1.0.0.Final",
"1.0-final",
"1.0-rc-1",
"1.0-beta-4",
"1.0-beta-2",
"1.0-beta-1",
"1.0-alpha-3",
"1.0-alpha-2",
"1.0-alpha-1",
"1.0-alpha-1-12062013"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20202.json"
}
}
],
"modified": "2026-10-24T10:30:49.380593957Z",
"provider": "osv",
"references": [
"https://bugzilla.redhat.com/show_bug.cgi?id=1922128"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-20202",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 436986,
"published_at": "2021-05-12T15:15:07.597+00:00"
}