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-2026-22747

CVE-2026-22747: Spring Security Auth Bypass Vulnerability

CVE-2026-22747 is an authentication bypass flaw in Spring Security that allows attackers to impersonate users via malformed X.509 certificates. This article covers technical details, affected versions, impact, and mitigation.

Published: April 23, 2026

CVE-2026-22747 Overview

A certificate validation bypass vulnerability exists in Spring Security versions 7.0.0 through 7.0.4. The SubjectX500PrincipalExtractor component does not correctly handle certain malformed X.509 certificate Common Name (CN) values, which can lead to reading the wrong value for the username. In a carefully crafted certificate, this vulnerability allows an attacker to impersonate another user, potentially gaining unauthorized access to protected resources.

Critical Impact

Attackers with low privileges can craft malicious X.509 certificates to impersonate other users, bypassing authentication controls in applications using Spring Security's X.509 certificate authentication.

Affected Products

  • Spring Security 7.0.0
  • Spring Security 7.0.1
  • Spring Security 7.0.2
  • Spring Security 7.0.3
  • Spring Security 7.0.4

Discovery Timeline

  • 2026-04-22 - CVE-2026-22747 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-22747

Vulnerability Analysis

This vulnerability is classified under CWE-297 (Improper Validation of Certificate with Host Mismatch), indicating a fundamental flaw in how Spring Security processes X.509 certificate subject information. The SubjectX500PrincipalExtractor class is responsible for extracting the principal (username) from X.509 certificates during client certificate authentication flows.

The core issue lies in the parsing logic that processes the Distinguished Name (DN) string from the certificate's subject field. When a certificate contains specially crafted CN values with certain malformed characters or escape sequences, the extraction logic fails to properly parse the boundary between CN fields, potentially returning an incorrect username value.

This improper certificate validation allows an attacker with the ability to present a client certificate (requiring low privileges in the form of certificate enrollment capabilities) to craft a certificate that tricks the application into authenticating them as a different user.

Root Cause

The root cause stems from insufficient input validation within the SubjectX500PrincipalExtractor when parsing X.500 Distinguished Names. The extractor does not properly handle edge cases in DN formatting, particularly around escaped characters, multi-valued RDNs (Relative Distinguished Names), or specially formatted CN attributes. When these malformed values are encountered, the parsing algorithm may extract a substring that corresponds to a different user's identity rather than the attacker's actual CN.

Attack Vector

The attack requires network access and involves the following exploitation path:

  1. An attacker obtains a valid client certificate from a trusted Certificate Authority (CA) that the target application trusts
  2. The attacker crafts a certificate signing request (CSR) with a specially formatted CN value containing parsing-confusing characters
  3. When the malicious certificate is presented during TLS client authentication, Spring Security's SubjectX500PrincipalExtractor parses the malformed CN
  4. Due to the parsing flaw, the extracted username corresponds to a victim user instead of the attacker
  5. The attacker is authenticated as the victim user, gaining access to their resources and permissions

The attack requires the attacker to have low-level privileges (ability to obtain certificates from a trusted CA) and operates over the network. No user interaction is required once the malicious certificate is presented.

Detection Methods for CVE-2026-22747

Indicators of Compromise

  • Unusual authentication events where certificate subject DN contains non-standard characters or escape sequences
  • Multiple successful authentications from certificates with similar but slightly different CN formatting
  • Authentication logs showing users accessing resources from unexpected certificate serial numbers
  • Certificate validation logs indicating parsing anomalies in X.500 DN strings

Detection Strategies

  • Monitor Spring Security authentication logs for X.509 certificate authentication events with unusual DN patterns
  • Implement certificate pinning or additional validation beyond Spring Security's default extraction logic
  • Deploy application-level logging that captures both the raw certificate DN and the extracted principal for comparison
  • Use SentinelOne's runtime protection to detect anomalous authentication patterns in Java applications

Monitoring Recommendations

  • Enable detailed logging for Spring Security's X.509 authentication components
  • Implement alerting on authentication events where the extracted username differs from expected certificate metadata
  • Review Certificate Authority logs for CSRs with unusual CN formatting
  • Correlate authentication events with expected user behavior patterns to identify impersonation attempts

How to Mitigate CVE-2026-22747

Immediate Actions Required

  • Upgrade Spring Security to a version beyond 7.0.4 that contains the fix for this vulnerability
  • Review authentication logs for signs of exploitation during the exposure window
  • Implement additional certificate validation logic as defense-in-depth
  • Consider temporarily disabling X.509 client certificate authentication if not critical to operations

Patch Information

Spring has released a security advisory for this vulnerability. Organizations should upgrade to a patched version of Spring Security as soon as one becomes available. Refer to the Spring Security Advisory CVE-2026-22747 for official patch information and updated version details.

Workarounds

  • Implement a custom PrincipalExtractor that performs strict validation of CN values before extraction
  • Add post-authentication validation that compares extracted principals against expected certificate metadata
  • Restrict the set of trusted Certificate Authorities to minimize the attack surface
  • Deploy Web Application Firewall (WAF) rules to detect and block certificates with suspicious DN formatting
  • Consider implementing certificate allowlisting for high-privilege accounts
bash
# Configuration example - Enable detailed Spring Security logging for monitoring
# Add to application.properties or application.yml

# Enable debug logging for X.509 authentication
logging.level.org.springframework.security.web.authentication.preauth.x509=DEBUG
logging.level.org.springframework.security.core.userdetails=DEBUG

# Log certificate details for forensic analysis
logging.level.org.springframework.security.web.authentication=TRACE

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechSpring Security

  • SeverityMEDIUM

  • CVSS Score6.8

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-297
  • Technical References
  • Spring Security Advisory CVE-2026-22747
  • Related CVEs
  • CVE-2026-22746: Spring Security Auth Bypass Vulnerability

  • CVE-2026-22754: Spring Security Auth Bypass Vulnerability

  • CVE-2026-22748: Spring Security Auth Bypass Vulnerability

  • CVE-2026-22753: Spring Security Auth Bypass Vulnerability
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