Directory Traversal with spring-cloud-config-server

CRITICAL | MAY 06, 2026 | CVE-2026-40982

Description

Spring Cloud Config allows applications to server arbitrary text and binary 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:

  • 5.0.0 - 5.0.2
  • 4.3.0 - 4.3.2
  • 4.2.0 - 4.2.6
  • 4.1.0 - 4.1.9
  • 3.1.13 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
5.0.3OSS
4.3.3OSS
4.2.7Enterprise Support Only
4.1.10Enterprise Support Only
3.1.14Enterprise Support Only

No further mitigation steps are necessary.

Credit

The issue was identified and responsibly reported by Swapnil Paliwal and the security team at AxiomCode using the AxiomEngine, August829, Rashmi Singh from Hive Pro, and Yu Bao - [email protected], from PayPal.com.

History

  • 2026-05-06: Initial vulnerability report published.

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