CVE-2020-14366 Path Traversal
Attackers can read specific files via path traversal in Keycloak's resources endpoint using URL-encoded segments, exposing limited folder hierarchies.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-14366?
CVE-2020-14366 is a medium-severity path traversal vulnerability in Redhat Keycloak, published on 9 Nov 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A vulnerability was found in keycloak, where path traversal using URL-encoded path segments in the request is possible because the resources endpoint applies a transformation of the url path to the file path. Only few specific folder hierarchies can be exposed by this flaw
Weakness: CWE-22
Which versions are affected by CVE-2020-14366?
2 open source packages ship an affected version, including org.keycloak:keycloak-parent. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-parent Maven | All versions | 12.0.0 |
org.keycloak:keycloak-parent Maven | All versions | 12.0.0 |
Products include Redhat Keycloak.
How do I fix CVE-2020-14366?
Upgrade org.keycloak:keycloak-parent to 12.0.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2020-14366 being exploited?
There is no known exploitation of CVE-2020-14366 in the wild and no public exploit code.
Other vulnerabilities in Redhat Keycloak
- CVE-2022-4361 Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC
- CVE-2022-1245 Keycloak vulnerable to privilege escalation on Token Exchange feature
- CVE-2021-20195 keycloak Self Stored Cross-site Scripting vulnerability
- CVE-2019-14910 Keycloak Authentication Error
- CVE-2019-14909 Keycloak Authentication Error
Sources
Also known as GHSA-cp67-8w3w-6h9c.