CVE-2020-5405: Directory Traversal Attack in Spring Cloud Config

Summary

05/06/2020
Yes i
Moderate
6.5

CVE-2020-5405: Directory traversal attack in Spring Cloud Config. Affects org.springframework.cloud:spring-cloud-config-server across 2 version ranges.

>= 2.1.0, < 2.1.7 >= 2.2.0, < 2.2.2

Fixed in 2.1.7 or 2.2.2, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Spring Cloud Config is a module in the Spring Cloud framework that provides server and client-side support for externalized configuration in a distributed system. It allows applications to retrieve their configuration from a centralized server. The Spring Cloud Config Server module is responsible for serving the configuration files to the client applications. However, versions 2.2.x prior to 2.2.2, versions 2.1.x prior to 2.1.7, and older unsupported versions of Spring Cloud Config are vulnerable to a directory traversal attack.

Vulnerability Detail

The vulnerability in Spring Cloud Config allows malicious users or attackers to exploit a directory traversal vulnerability in the spring-cloud-config-server module. By sending a specially crafted URL, an attacker can traverse directories and access arbitrary configuration files. This can lead to unauthorized access to sensitive information or the execution of arbitrary code on the server. The vulnerability has a CVSS score of 6.5, indicating a moderate severity.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.1.0, < 2.1.7 2.1.7
  • >= 2.2.0, < 2.2.2 2.2.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to upgrade to the fixed versions as soon as possible.

Conclusion

The directory traversal vulnerability in Spring Cloud Config can be exploited by attackers to access arbitrary configuration files. To mitigate this vulnerability, it is crucial to upgrade to the fixed versions of Spring Cloud Config. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for org.springframework.cloud:spring-cloud-config-server →

Share this vulnerability

FAQ

Spring Cloud Config is a module in the Spring Cloud framework that provides server and client-side support for externalized configuration in a distributed system.

Versions 2.2.x prior to 2.2.2 and versions 2.1.x prior to 2.1.7 are affected. Older unsupported versions may also be vulnerable.

A directory traversal attack is a type of vulnerability where an attacker can access files or directories outside of the intended scope. In this case, it allows an attacker to retrieve arbitrary configuration files from the server.

The vulnerability can lead to unauthorized access to sensitive configuration information or the execution of arbitrary code on the server, depending on the files accessed.

The CVSS score of this vulnerability is 6.5, indicating a moderate severity.

Related vulnerabilities

Recent vulnerabilities recorded for org.springframework.cloud:spring-cloud-config-server.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.1.0, < 2.1.7 2.1.7
  • >= 2.2.0, < 2.2.2 2.2.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback