A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-41002

CVE-2026-41002: Spring Cloud Config TOCTOU Vulnerability

CVE-2026-41002 is a time-of-check-time-of-use race condition in Spring Cloud Config Server affecting the Git repository base directory. This article covers the technical details, all affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-41002 Overview

CVE-2026-41002 is a time-of-check-time-of-use (TOCTOU) race condition affecting the Spring Cloud Config Server. The flaw resides in the handling of the spring.cloud.config.server.git.basedir directory used to clone Git repositories. An authenticated local attacker with high privileges can exploit the race window between filesystem checks and subsequent operations to compromise confidentiality and integrity. The issue is tracked under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition.

Critical Impact

Successful exploitation allows an attacker to manipulate files in the configured base directory, leading to disclosure or tampering of repository content served by the Config Server.

Affected Products

  • Spring Cloud Config 3.1.0 through 3.1.13 (Enterprise Support Only)
  • Spring Cloud Config 4.1.0 through 4.1.9 and 4.2.0 through 4.2.6 (Enterprise Support Only)
  • Spring Cloud Config 4.3.0 through 4.3.2 and 5.0.0 through 5.0.2

Discovery Timeline

  • 2026-05-07 - CVE-2026-41002 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-41002

Vulnerability Analysis

The Spring Cloud Config Server clones remote Git repositories into a base directory specified by spring.cloud.config.server.git.basedir. The server validates properties of files or directories at one point in time, then operates on those resources later without re-validating state. An attacker with local access can interleave filesystem operations between the check and the use, redirecting the server to act on attacker-controlled paths.

This class of flaw falls under CWE-367. Because the Config Server typically runs with elevated privileges relative to the configuration data it manages, exploitation produces a scope change. An attacker can affect resources beyond their own privilege boundary, including files read by other tenants or services consuming configuration data.

Root Cause

The root cause is non-atomic handling of filesystem state in the base directory. The Config Server inspects the directory or its contents, then performs Git clone or read operations against the same path. Between those steps, an attacker can replace files, swap symlinks, or alter directory entries to influence the operation that follows.

Attack Vector

Exploitation requires local access and high privileges on the host running the Config Server. The attacker must win a race condition, which raises attack complexity. No user interaction is required. The vulnerability affects confidentiality and integrity of configuration content but does not directly impact availability. See the Spring Security Advisory CVE-2026-41002 for vendor-supplied technical details.

Detection Methods for CVE-2026-41002

Indicators of Compromise

  • Unexpected symlinks, hardlinks, or file replacements within the directory referenced by spring.cloud.config.server.git.basedir.
  • Git clone operations that resolve to paths outside the intended repository workspace.
  • Configuration responses served by the Config Server containing content not present in the upstream Git repository.

Detection Strategies

  • Monitor filesystem activity in the Config Server base directory using auditd or equivalent kernel-level auditing for rename, symlink, and unlink syscalls.
  • Compare cloned repository contents against the authoritative upstream commit hash to detect tampering.
  • Inspect Spring Cloud Config Server logs for repeated clone failures or directory state errors that may indicate race-window probing.

Monitoring Recommendations

  • Enable verbose logging on org.springframework.cloud.config.server to capture repository operations.
  • Track process activity from non-service accounts that touch the Config Server base directory.
  • Alert on creation of symbolic links by users other than the Config Server service account.

How to Mitigate CVE-2026-41002

Immediate Actions Required

  • Upgrade Spring Cloud Config to a fixed release: 3.1.14, 4.1.10, 4.2.7, 4.3.3, or 5.0.3 or later.
  • Restrict local shell access to hosts running the Config Server to administrators only.
  • Ensure the base directory is owned by the Config Server service account with no write access for other local users.

Patch Information

VMware/Spring has released fixed versions across all maintained branches. Spring Cloud Config 3.1.14, 4.1.10, and 4.2.7 are available through Enterprise Support. Spring Cloud Config 4.3.3 and 5.0.3 are available through standard distribution channels. Refer to the Spring Security Advisory CVE-2026-41002 for upgrade guidance.

Workarounds

  • Place spring.cloud.config.server.git.basedir on a filesystem accessible only to the Config Server service account, with 0700 permissions on the directory.
  • Disable local interactive logins on Config Server hosts to remove the prerequisite local access.
  • Run the Config Server inside a dedicated container or namespace that isolates its filesystem from other workloads on the host.
bash
# Configuration example
# Restrict ownership and permissions on the Git base directory
chown spring-config:spring-config /var/lib/spring-cloud-config/repos
chmod 700 /var/lib/spring-cloud-config/repos

# Verify no other users can stage TOCTOU primitives in the directory
find /var/lib/spring-cloud-config/repos -not -user spring-config -print

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRace Condition

  • Vendor/TechSpring Cloud Config

  • SeverityHIGH

  • CVSS Score7.2

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-367
  • Technical References
  • Spring Security Advisory CVE-2026-41002
  • Related CVEs
  • CVE-2026-41004: Spring Cloud Config Information Leak

  • CVE-2026-40982: Spring Cloud Config Path Traversal Flaw

  • CVE-2026-40981: Spring Cloud Config Info Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English