CVE-2026-41002: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in Spring Spring Cloud Config
The base directory (`spring.cloud.config.server.git.basedir`) used by the Spring Cloud Config Server to clone Git repositories to is susceptible to time-of-check-time-of-use (TOCTOU) attacks. Spring Cloud Config 3.1.x: affected from 3.1.0 through 3.1.13 (inclusive); upgrade to 3.1.14 or greater (Enterprise Support Only). Spring Cloud Config 4.1.x: affected from 4.1.0 through 4.1.9 (inclusive); upgrade to 4.1.10 or greater (Enterprise Support Only). Spring Cloud Config 4.2.x: affected from 4.2.0 through 4.2.6 (inclusive); upgrade to 4.2.7 or greater (Enterprise Support Only). Spring Cloud Config 4.3.x: affected from 4.3.0 through 4.3.2 (inclusive); upgrade to 4.3.3 or greater. Spring Cloud Config 5.0.x: affected from 5.0.0 through 5.0.2 (inclusive); upgrade to 5.0.3 or greater.
AI Analysis
Technical Summary
This vulnerability is a TOCTOU race condition (CWE-367) in the Spring Cloud Config Server's handling of the base directory (`spring.cloud.config.server.git.basedir`) where Git repositories are cloned. The affected versions span multiple release lines from 3.1.x to 5.0.x. The race condition arises because the server checks the directory state and then uses it, allowing an attacker with sufficient privileges to manipulate the directory state between these operations. The CVSS 3.1 score is 7.4 (high), reflecting local attack vector, high complexity, required privileges, no user interaction, and high impact on confidentiality and integrity. Fixed versions have been released: 3.1.14+, 4.1.10+, 4.2.7+, 4.3.3+, and 5.0.3+, though some fixes require Enterprise Support. No known exploits have been reported.
Potential Impact
Successful exploitation could allow an attacker with high privileges on the host to manipulate the base directory used for Git cloning, potentially leading to unauthorized disclosure or modification of configuration data managed by Spring Cloud Config Server. The vulnerability does not impact availability. The high CVSS score indicates significant confidentiality and integrity impact but requires local access and elevated privileges.
Mitigation Recommendations
Upgrading to the fixed versions is the recommended remediation: 3.1.14 or later (Enterprise Support Only), 4.1.10 or later (Enterprise Support Only), 4.2.7 or later (Enterprise Support Only), 4.3.3 or later, and 5.0.3 or later. Since some fixes are limited to Enterprise Support customers, organizations should consult their vendor support agreements. Patch status is not explicitly confirmed in the advisory, but version upgrades are indicated as fixes. No other mitigations or workarounds are provided. Monitor vendor advisories for updates.
CVE-2026-41002: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in Spring Spring Cloud Config
Description
The base directory (`spring.cloud.config.server.git.basedir`) used by the Spring Cloud Config Server to clone Git repositories to is susceptible to time-of-check-time-of-use (TOCTOU) attacks. Spring Cloud Config 3.1.x: affected from 3.1.0 through 3.1.13 (inclusive); upgrade to 3.1.14 or greater (Enterprise Support Only). Spring Cloud Config 4.1.x: affected from 4.1.0 through 4.1.9 (inclusive); upgrade to 4.1.10 or greater (Enterprise Support Only). Spring Cloud Config 4.2.x: affected from 4.2.0 through 4.2.6 (inclusive); upgrade to 4.2.7 or greater (Enterprise Support Only). Spring Cloud Config 4.3.x: affected from 4.3.0 through 4.3.2 (inclusive); upgrade to 4.3.3 or greater. Spring Cloud Config 5.0.x: affected from 5.0.0 through 5.0.2 (inclusive); upgrade to 5.0.3 or greater.
CVSS v3.1
Score 7.4high
Affected software
pkg:maven/org.springframework.cloud/spring-cloud-config-serverRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability is a TOCTOU race condition (CWE-367) in the Spring Cloud Config Server's handling of the base directory (`spring.cloud.config.server.git.basedir`) where Git repositories are cloned. The affected versions span multiple release lines from 3.1.x to 5.0.x. The race condition arises because the server checks the directory state and then uses it, allowing an attacker with sufficient privileges to manipulate the directory state between these operations. The CVSS 3.1 score is 7.4 (high), reflecting local attack vector, high complexity, required privileges, no user interaction, and high impact on confidentiality and integrity. Fixed versions have been released: 3.1.14+, 4.1.10+, 4.2.7+, 4.3.3+, and 5.0.3+, though some fixes require Enterprise Support. No known exploits have been reported.
Potential Impact
Successful exploitation could allow an attacker with high privileges on the host to manipulate the base directory used for Git cloning, potentially leading to unauthorized disclosure or modification of configuration data managed by Spring Cloud Config Server. The vulnerability does not impact availability. The high CVSS score indicates significant confidentiality and integrity impact but requires local access and elevated privileges.
Mitigation Recommendations
Upgrading to the fixed versions is the recommended remediation: 3.1.14 or later (Enterprise Support Only), 4.1.10 or later (Enterprise Support Only), 4.2.7 or later (Enterprise Support Only), 4.3.3 or later, and 5.0.3 or later. Since some fixes are limited to Enterprise Support customers, organizations should consult their vendor support agreements. Patch status is not explicitly confirmed in the advisory, but version upgrades are indicated as fixes. No other mitigations or workarounds are provided. Monitor vendor advisories for updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- vmware
- Date Reserved
- 2026-04-16T02:19:12.970Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fc1390cbff5d8610732605
Added to database: 05/07/2026, 04:22:40 UTC
Last enriched: 05/14/2026, 10:40:40 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 103
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.