The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2022-22978

CVE-2022-22978: Spring Security Auth Bypass Vulnerability

CVE-2022-22978 is an authorization bypass vulnerability in VMware Spring Security affecting RegexRequestMatcher configurations. Attackers can bypass security controls on certain servlet containers. This article covers affected versions, technical details, impact assessment, and mitigation strategies.

Published: February 17, 2026

CVE-2022-22978 Overview

CVE-2022-22978 is an authorization bypass vulnerability in VMware Spring Security that allows attackers to circumvent access controls in applications using RegexRequestMatcher with . (dot) in the regular expression. The vulnerability stems from how certain servlet containers handle newline characters in request URIs, which can cause the regex pattern matching to fail unexpectedly, granting unauthorized access to protected resources.

Critical Impact

Attackers can bypass authentication and authorization controls to access protected endpoints without valid credentials, potentially leading to complete system compromise.

Affected Products

  • VMware Spring Security versions prior to 5.4.11, 5.5.7, and 5.6.4
  • Oracle Financial Services Crime and Compliance Management Studio (versions 8.0.8.2.0 and 8.0.8.3.0)
  • NetApp Active IQ Unified Manager (Linux, VMware vSphere, and Windows)

Discovery Timeline

  • 2022-05-19 - CVE-2022-22978 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-22978

Vulnerability Analysis

This authorization bypass vulnerability exists in Spring Security's RegexRequestMatcher class, which is commonly used to define URL patterns for access control rules. The vulnerability is classified under CWE-863 (Incorrect Authorization), indicating a fundamental flaw in how authorization decisions are made.

The issue arises when developers configure RegexRequestMatcher with regular expressions containing the . (dot) metacharacter. In regex syntax, . typically matches any single character except newline characters. When a malicious request contains a newline character (%0a or %0d) in the URI path, the regex matching can be bypassed on certain servlet containers, allowing the request to proceed without proper authorization checks.

The vulnerability requires no user interaction and can be exploited remotely over the network without any privileges, making it particularly dangerous for internet-facing applications. Successful exploitation grants attackers unauthorized access to protected resources, potentially compromising confidentiality, integrity, and availability of the application.

Root Cause

The root cause lies in the default behavior of Java's regex engine when using the . metacharacter. By default, . does not match newline characters (\n, \r). When developers write security rules using patterns like /admin/.* to protect administrative endpoints, attackers can inject newline characters into request URIs (e.g., /admin/test%0a/public) that cause the regex to fail matching, bypassing the security rule entirely. The regex engine stops matching at the newline, and depending on the servlet container's URL normalization behavior, the request may still route to the protected resource.

Attack Vector

The attack vector is network-based and can be executed by crafting HTTP requests with URL-encoded newline characters inserted into protected URL paths. An attacker identifies endpoints protected by RegexRequestMatcher rules, then constructs malicious requests by embedding %0a (line feed) or %0d (carriage return) characters at strategic points in the URL. When the servlet container processes the request, the regex-based security check fails to match the pattern due to the newline, while the backend routing still resolves to the protected resource.

For example, if an application protects /api/admin.* using RegexRequestMatcher, an attacker might send a request to /api/admin%0a or /api/admin%0d%0a/test. The regex pattern fails to match the full path due to the newline, potentially allowing the request to bypass authorization and reach the protected endpoint.

Detection Methods for CVE-2022-22978

Indicators of Compromise

  • HTTP requests containing URL-encoded newline characters (%0a, %0d, %0d%0a) in URI paths
  • Access log entries showing unusual character sequences in request URIs targeting protected endpoints
  • Successful access to administrative or protected endpoints from unauthorized sources
  • Web application firewall (WAF) logs showing blocked or flagged requests with encoded control characters

Detection Strategies

  • Implement web application firewall rules to detect and block requests containing %0a, %0d, or other URL-encoded control characters in URI paths
  • Monitor application access logs for requests with unusual URL encoding patterns, particularly targeting sensitive endpoints
  • Deploy runtime application self-protection (RASP) solutions to detect authorization bypass attempts
  • Use static code analysis tools to identify RegexRequestMatcher configurations using vulnerable . patterns

Monitoring Recommendations

  • Enable verbose logging for Spring Security authorization decisions to identify failed or bypassed access control checks
  • Set up alerts for access to protected resources from unexpected IP addresses or without proper authentication tokens
  • Monitor for sudden increases in 403/401 responses followed by successful accesses to the same endpoints, which may indicate bypass attempts

How to Mitigate CVE-2022-22978

Immediate Actions Required

  • Upgrade Spring Security to versions 5.4.11+, 5.5.7+, or 5.6.4+ immediately
  • Review all RegexRequestMatcher configurations in your application for patterns using . without proper flags
  • Implement input validation at the web server or WAF level to reject requests containing URL-encoded newline characters
  • Audit access logs for potential exploitation attempts against your environment

Patch Information

VMware has released patched versions of Spring Security that address this vulnerability. Organizations should upgrade to Spring Security version 5.4.11 or later for the 5.4.x branch, 5.5.7 or later for the 5.5.x branch, or 5.6.4 or later for the 5.6.x branch. Refer to the Spring Security Advisory CVE-2022-22978 for detailed upgrade instructions and release notes.

Workarounds

  • Replace RegexRequestMatcher with AntPathRequestMatcher where possible, as it is not affected by this vulnerability
  • If regex patterns must be used, enable the DOTALL flag (Pattern.DOTALL or (?s) inline flag) to ensure . matches all characters including newlines
  • Implement URL normalization at the reverse proxy or load balancer level to strip or reject control characters before they reach the application
  • Add explicit input validation to reject HTTP requests containing newline characters in URI paths
bash
# Example: Update Spring Security dependency in Maven pom.xml
# Change from vulnerable version:
# <spring-security.version>5.5.6</spring-security.version>
# To patched version:
# <spring-security.version>5.5.7</spring-security.version>

# For Gradle, update build.gradle:
# implementation 'org.springframework.security:spring-security-core:5.5.7'

# Verify the update by checking dependency tree:
mvn dependency:tree | grep spring-security

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 Security

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability90.41%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-863
  • Technical References
  • Spring Security Advisory CVE-2022-22978
  • Related CVEs
  • CVE-2023-34034: Spring Security Auth Bypass Vulnerability

  • CVE-2022-31690: Spring Security Privilege Escalation Flaw

  • CVE-2021-22119: VMware Spring Security DoS Vulnerability
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