CVE-2026-41002: Spring Cloud Config Server Vulnerable to TOCTOU Attack

Summary

07/05/2026
Yes i
High
7.2

CVE-2026-41002: Spring Cloud Config Server Susceptible To TOCTOU Attack. 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 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 Server is a critical component of the Spring Cloud ecosystem, providing server-side support for externalized configuration in a distributed system. It allows applications to retrieve configuration properties from a centralized location, typically using Git repositories. The server's functionality is essential for managing application settings across various environments, ensuring consistency and ease of updates. However, it has been identified as vulnerable to a time-of-check-time-of-use (TOCTOU) attack, which can compromise the integrity of the configuration data.

Vulnerability Detail

The vulnerability arises from the base directory used by the Spring Cloud Config Server to clone Git repositories. This directory is susceptible to TOCTOU attacks, where an attacker can manipulate the state of the directory between the time it is checked for validity and the time it is used. This can lead to unauthorized access to sensitive configuration data or the injection of malicious configurations. The affected versions span multiple releases, including 3.1.x, 4.1.x, 4.2.x, 4.3.x, and 5.0.x, with a CVSS score of 7.2 indicating a high severity level.

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, ensure that the base directory for the Spring Cloud Config Server is secured and monitored for unauthorized changes. Implementing strict access controls and regular audits can help mitigate the risk until the package is updated.

Conclusion

The Spring Cloud Config Server vulnerability (CVE-2026-41002) poses a significant risk due to its susceptibility to TOCTOU attacks. It is crucial for users of affected versions to upgrade to the latest patched versions to mitigate this risk. Additionally, implementing temporary workarounds can help secure the system until an upgrade is feasible.

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

Share this vulnerability

FAQ

A TOCTOU (Time-of-Check to Time-of-Use) attack is a type of race condition where an attacker exploits the time gap between checking a condition and using the result of that check, potentially leading to unauthorized actions.

The affected versions include 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.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

If immediate upgrading is not possible, implement strict access controls and monitor the base directory for unauthorized changes as a temporary workaround.

The CVSS score of this vulnerability is 7.2, indicating a high severity level.

Related vulnerabilities

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

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