Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2021-22047

CVE-2021-22047: Spring Data REST Auth Bypass Vulnerability

CVE-2021-22047 is an authorization bypass flaw in Spring Data REST that exposes HTTP resources under additional URIs, potentially allowing unauthorized access. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-22047 Overview

CVE-2021-22047 is a broken access control vulnerability affecting VMware Spring Data REST. In vulnerable versions, HTTP resources implemented by custom controllers using a configured base API path and a controller type-level request mapping are additionally exposed under URIs that can potentially be exposed for unauthorized access depending on the Spring Security configuration. This vulnerability allows attackers to potentially bypass access controls and access protected resources through unintended URI paths.

Critical Impact

Unauthorized access to protected REST API endpoints through alternative URI paths, potentially exposing sensitive data or functionality depending on application configuration.

Affected Products

  • VMware Spring Data REST versions 3.4.0 - 3.4.13
  • VMware Spring Data REST versions 3.5.0 - 3.5.5
  • Older unsupported versions of Spring Data REST

Discovery Timeline

  • 2021-10-28 - CVE-2021-22047 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-22047

Vulnerability Analysis

This vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, CWE-668: Exposure of Resource to Wrong Sphere) occurs due to improper handling of request mapping in Spring Data REST when custom controllers are configured with a base API path and type-level request mappings. The framework inadvertently exposes these endpoints through additional URI paths that may not be protected by the same Spring Security rules applied to the intended endpoints.

The root issue lies in how Spring Data REST constructs and registers controller mappings. When developers configure a base API path (e.g., /api) and define type-level @RequestMapping annotations on custom controllers, the framework creates duplicate route registrations. These duplicate routes may fall outside the scope of security rules that administrators have defined for their intended API paths.

Root Cause

The vulnerability stems from improper URI path handling in Spring Data REST's controller registration mechanism. Custom controllers with type-level request mappings are registered under multiple URI patterns, and some of these patterns bypass the configured base API path structure. This architectural flaw means that security configurations targeting the base API path do not automatically cover all exposed endpoints.

Attack Vector

An attacker can exploit this vulnerability over the network without requiring authentication or user interaction. The attack involves discovering alternative URI paths that expose the same controller functionality but bypass security configurations. By making HTTP requests to these unprotected paths, an attacker can potentially access resources that should be restricted.

For example, if an application defines a custom controller at /api/secure/resource with Spring Security rules protecting /api/**, the vulnerability may expose the same resource at an alternative path like /secure/resource that falls outside the security configuration scope. The attacker simply needs to enumerate or discover these alternative paths and make direct requests to access protected functionality.

Detection Methods for CVE-2021-22047

Indicators of Compromise

  • Unexpected HTTP requests to API endpoints outside the configured base API path
  • Access logs showing successful requests to paths that should be protected but aren't covered by security rules
  • Authentication bypass attempts targeting alternative URI patterns for REST controllers

Detection Strategies

  • Review application access logs for requests to endpoints that mirror protected resources but use different URI paths
  • Implement security auditing to detect access to REST controllers through unintended routes
  • Configure alerting for HTTP 200 responses to paths that should require authentication but are being accessed anonymously

Monitoring Recommendations

  • Enable detailed access logging for all REST API endpoints in the application
  • Monitor for anomalous request patterns that target alternative URI paths not documented in the API specification
  • Implement runtime application self-protection (RASP) to detect and block unauthorized API access attempts

How to Mitigate CVE-2021-22047

Immediate Actions Required

  • Upgrade Spring Data REST to version 3.4.14 or later for the 3.4.x branch
  • Upgrade Spring Data REST to version 3.5.6 or later for the 3.5.x branch
  • Review and audit Spring Security configurations to ensure all exposed endpoints are properly protected
  • Implement defense-in-depth by applying security rules at multiple levels (path-based and method-level security)

Patch Information

VMware has released patched versions of Spring Data REST that address this vulnerability. Users should upgrade to Spring Data REST 3.4.14+ or 3.5.6+ depending on their current version branch. Detailed patch information is available in the VMware Security Advisory.

Workarounds

  • Apply method-level security annotations (@PreAuthorize, @Secured) directly on controller methods to ensure authorization is enforced regardless of the request path
  • Review and tighten Spring Security configurations to use broader path patterns or implement security at the controller/method level rather than relying solely on URI path-based rules
  • Implement a security filter that validates all incoming requests against a whitelist of allowed API paths
  • Consider using Spring Security's antMatchers with catch-all patterns to ensure no unprotected endpoints exist
bash
# Example Maven dependency update to patched version
# Update pom.xml with:
# <dependency>
#     <groupId>org.springframework.data</groupId>
#     <artifactId>spring-data-rest-webmvc</artifactId>
#     <version>3.5.6</version>
# </dependency>

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechVmware Spring Data Rest

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.32%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200

  • CWE-668
  • Vendor Resources
  • VMware CVE-2021-22047 Advisory
  • Related CVEs
  • CVE-2022-31679: Spring Data REST Information Disclosure
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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