CVE-2019-3799 Directory Traversal with spring-cloud-config-server

Medium 6.5 Published Updated

Attackers can read arbitrary configuration files via directory traversal in Spring Cloud Config Server, exposing sensitive data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2019-3799?

CVE-2019-3799 is a medium-severity path traversal vulnerability in Oracle Communications Cloud Native Core Policy, published on 6 May 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Spring Cloud Config, versions 2.1.x prior to 2.1.2, versions 2.0.x prior to 2.0.4, and versions 1.4.x prior to 1.4.6, and older unsupported versions allow applications to serve arbitrary configuration files through the spring-cloud-config-server module. A malicious user, or attacker, can send a request using a specially crafted URL that can lead a directory traversal attack.

Weakness: CWE-22

Which versions are affected by CVE-2019-3799?

6 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-config-server. It affects 2 products.

PackageAffectedFixed in
org.springframework.cloud:spring-cloud-config-server MavenAll versions1.4.6
org.springframework.cloud:spring-cloud-config-server MavenAll versions1.4.6
org.springframework.cloud:spring-cloud-config-server MavenFrom 2.0.02.0.4
org.springframework.cloud:spring-cloud-config-server MavenFrom 2.0.02.0.4
org.springframework.cloud:spring-cloud-config-server MavenFrom 2.1.02.1.2
org.springframework.cloud:spring-cloud-config-server MavenFrom 2.1.02.1.2

Products include Oracle Communications Cloud Native Core Policy, Vmware Spring Cloud Config.

How do I fix CVE-2019-3799?

Upgrade org.springframework.cloud:spring-cloud-config-server to a fixed version for your release line: 1.4.6, 2.0.4 or 2.1.2.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2019-3799 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-3799 exists.

Public exploit code: 1 Metasploit module, 2 Exploit-DB entries, 1 Nuclei template and 2 proofs of concept on GitHub.

All Oracle Communications Cloud Native Core Policy vulnerabilities

Sources

Also known as GHSA-4x49-w62v-76q7.

Is CVE-2019-3799 in your software?

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

Check your SBOMs for free