MediumGHSA-g86w-v5vg-9gxfCVE-2020-5405

Directory traversal attack in Spring Cloud Config

Published 5 Jun 2020 · Updated 8 Nov 2023

Is your project on an affected org.springframework.cloud:spring-cloud-config-server?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=2.1.0 <2.1.7
Fixed in
2.1.7
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.cloud:spring-cloud-config-server -DdepVersion=2.1.7 -DforceVersion=true
Affected
>=2.2.0 <2.2.2
Fixed in
2.2.2
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.cloud:spring-cloud-config-server -DdepVersion=2.2.2 -DforceVersion=true

Details

Spring Cloud Config, versions 2.2.x prior to 2.2.2, versions 2.1.x prior to 2.1.7, 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.

Is GHSA-g86w-v5vg-9gxf in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework.cloud:spring-cloud-config-server, and gives you the command that fixes it.

More advisories for org.springframework.cloud:spring-cloud-config-server

  • CriticalCVE-2026-40982Spring Cloud Config vulnerable to Path Traversal · 7 May 2026
  • HighCVE-2026-40981Spring Cloud Config has an Authorization Bypass Through User-Controlled Key · 7 May 2026
  • HighCVE-2026-41002Spring Cloud Config Server Susceptible To TOCTOU Attack · 7 May 2026
  • MediumCVE-2026-41004Spring Cloud Config Server Logged Sensitive Information · 7 May 2026
  • HighCVE-2026-22739Spring Cloud Config Server: Path Traversal via Profile Parameter Allows Arbitrary File Access · 24 Mar 2026
  • HighCVE-2020-5410Directory traversal attack in Spring Cloud Config · 5 Jun 2020
All 8 advisories for org.springframework.cloud:spring-cloud-config-server

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.