CVE-2026-40982: Spring Cloud Config Path Traversal Vulnerability

Summary

07/05/2026
Yes i
Critical
9.1

CVE-2026-40982: Spring Cloud Config vulnerable to Path Traversal. Affects org.springframework.cloud:spring-cloud-config-server across 5 version ranges.

>= 3.1.0, <= 3.1.13 >= 4.1.0, <= 4.1.9 >= 4.2.0, <= 4.2.6 >= 4.3.0, < 4.3.3 >= 5.0.0, < 5.0.3

Fixed in 4.3.3 or 5.0.3, 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Spring Cloud Config is a powerful tool that enables applications to serve configuration files from a central server. It supports both text and binary files, allowing for seamless configuration management across distributed systems. However, due to its design, it is susceptible to security vulnerabilities, particularly those that can be exploited through crafted URLs, leading to unauthorized access to sensitive files.

Vulnerability Detail

The vulnerability identified as CVE-2026-40982 in Spring Cloud Config arises from its ability to serve arbitrary files through the spring-cloud-config-server module. An attacker can exploit this by crafting a malicious URL that triggers a directory traversal attack, allowing them to access files outside the intended directory. This can lead to exposure of sensitive information, including configuration files and other critical data. The vulnerability affects multiple versions of the package, making it imperative for users to take immediate action to secure their applications.

How To Fix

Latest published version: 5.1.0-RC1 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

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

  • >= 4.3.0, < 4.3.3 4.3.3
  • >= 5.0.0, < 5.0.3 5.0.3

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

Workaround

As a temporary workaround, users can restrict access to the Spring Cloud Config Server by implementing network-level security measures, such as firewalls or VPNs, to limit exposure to untrusted networks until the upgrade can be completed.

Conclusion

CVE-2026-40982 represents a significant security risk for applications using Spring Cloud Config. It is crucial for users to upgrade to the latest patched versions to mitigate the risk of directory traversal attacks. By following the recommended steps and utilizing tools like Vulert, developers can ensure their applications remain secure.

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

Share this vulnerability

FAQ

CVE-2026-40982 is a critical vulnerability in Spring Cloud Config that allows for directory traversal attacks, potentially exposing sensitive files.

Versions 3.1.0 to 3.1.13, 4.1.0 to 4.1.9, 4.2.0 to 4.2.6, 4.3.0 to 4.3.2, and 5.0.0 to 5.0.2 are affected by this vulnerability.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring signup.

The CVSS score for CVE-2026-40982 is 9.1, indicating a critical level of severity.

If immediate upgrading is not possible, implement network-level security measures to restrict access to the Spring Cloud Config Server as a temporary workaround.

Related vulnerabilities

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

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 5.1.0-RC1 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

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

  • >= 4.3.0, < 4.3.3 4.3.3
  • >= 5.0.0, < 5.0.3 5.0.3

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