Spring Security Advisories

CVE-2020-5410: Directory Traversal with spring-cloud-config-server

HIGH | JUNE 01, 2020 | CVE-2020-5410


Spring Cloud Config, versions 2.2.x prior to 2.2.3, versions 2.1.x prior to 2.1.9, 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 to a directory traversal attack.

Affected Spring Products and Versions

  • Spring Cloud Config
    • 2.2.0 to 2.2.2
    • 2.1.0 to 2.1.8


Users of affected versions should apply the following mitigation. Older versions should upgrade to a supported branch. There are no other mitigation steps necessary. Note that spring-cloud-config-server should only be available on internal networks to clients that require it and it should be secured with Spring Security, this limits exposure to this vulnerability to those with internal network access and those users with proper authentication.

  • Spring Cloud Config
    • 2.2.3
    • 2.1.9


This issue was identified and responsibly reported by Fei Lu ([email protected]) and [email protected].


  • 2020-05-15: Initial vulnerability report published.
  • 2020-06-01: Updated version to 2.1.9 and added additional credit.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all