Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 87%

CVE-2026-41002: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in Spring Spring Cloud Config

0
High
VulnerabilityCVE-2026-41002cvecve-2026-41002cwe-367
Published: 05/07/2026 (05/07/2026, 03:53:18 UTC)
Source: CVE Database V5
Vendor/Project: Spring
Product: 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

Attack Vector
Local
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N

Affected software

org.springframework.cloud/spring-cloud-config-server
pkg:maven/org.springframework.cloud/spring-cloud-config-server
Affected versions
=3.1.0<=3.1.13=4.1.0<=4.1.9=4.2.0<=4.2.6=4.3.0<=4.3.2>=5.0.0<=5.0.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/14/2026, 10:40:40 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses