CVE-2020-14366 Path Traversal

Medium 6.8 Published Updated

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.

PackageAffectedFixed in
org.keycloak:keycloak-parent MavenAll versions12.0.0
org.keycloak:keycloak-parent MavenAll versions12.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.

All Redhat Keycloak vulnerabilities

Sources

Also known as GHSA-cp67-8w3w-6h9c.

Is CVE-2020-14366 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free