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-2024-22257

CVE-2024-22257: Spring Security Auth Bypass Vulnerability

CVE-2024-22257 is an authentication bypass flaw in Spring Security that enables broken access control when AuthenticatedVoter#vote receives null Authentication. This article covers technical details, affected versions, and remediation.

Published: January 28, 2026

CVE-2024-22257 Overview

CVE-2024-22257 is a Broken Access Control vulnerability affecting multiple versions of Spring Security, a widely-used Java authentication and authorization framework. The vulnerability occurs when applications directly invoke the AuthenticatedVoter#vote method with a null Authentication parameter, potentially allowing unauthorized access to protected resources.

Critical Impact

Applications using affected Spring Security versions may inadvertently grant access to protected resources when the AuthenticatedVoter is used with null authentication contexts, effectively bypassing security controls.

Affected Products

  • Spring Security versions 5.7.x prior to 5.7.12
  • Spring Security versions 5.8.x prior to 5.8.11
  • Spring Security versions 6.0.x prior to 6.0.9
  • Spring Security versions 6.1.x prior to 6.1.8
  • Spring Security versions 6.2.x prior to 6.2.3

Discovery Timeline

  • 2024-03-18 - CVE-2024-22257 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2024-22257

Vulnerability Analysis

This vulnerability (CWE-862: Missing Authorization) stems from improper handling of null authentication objects within the Spring Security framework's access decision mechanism. The AuthenticatedVoter class is responsible for making authorization decisions based on the authentication status of users. When the vote method receives a null Authentication parameter, the expected authorization checks may not be properly enforced, leading to broken access control scenarios.

The vulnerability is particularly concerning for applications that have custom security configurations or non-standard authentication flows where the AuthenticatedVoter#vote method might be called directly with potentially null authentication contexts.

Root Cause

The root cause lies in insufficient null-safety validation within the AuthenticatedVoter#vote method. When this method is invoked with a null Authentication parameter, the voter fails to properly reject the access request or throw an appropriate exception. Instead, the null value may be processed in a way that results in an unexpected access decision, potentially granting access when it should be denied.

This represents a classic missing authorization check pattern where the absence of an authenticated principal is not treated as a definitive denial of access.

Attack Vector

The attack vector for this vulnerability is network-based, requiring no user interaction or prior privileges. An attacker could exploit this vulnerability by:

  1. Identifying applications using vulnerable Spring Security versions
  2. Targeting endpoints or resources where custom authentication logic may pass null authentication to the AuthenticatedVoter
  3. Crafting requests that trigger code paths where the authentication context is null or improperly initialized
  4. Gaining unauthorized access to protected resources due to the flawed access decision

The vulnerability manifests in the AuthenticatedVoter#vote method when processing null authentication parameters. For detailed technical information and code-level analysis, refer to the Spring Security CVE-2024-22257 Advisory.

Detection Methods for CVE-2024-22257

Indicators of Compromise

  • Unexpected access to protected resources by unauthenticated users
  • Application logs showing authorization decisions made with null or empty authentication contexts
  • Unusual patterns of successful resource access without corresponding authentication events
  • Security audit logs indicating access granted without proper principal identification

Detection Strategies

  • Review application code for direct usage of AuthenticatedVoter#vote method with potentially null parameters
  • Implement security testing to verify authorization behavior when authentication contexts are null or missing
  • Use static code analysis tools to identify vulnerable patterns in Spring Security configurations
  • Monitor access control decisions through Spring Security debug logging for anomalous patterns

Monitoring Recommendations

  • Enable detailed Spring Security logging to track authentication and authorization events
  • Implement audit logging for all access control decisions, particularly those involving the AuthenticatedVoter
  • Set up alerts for access to protected resources without valid authentication tokens
  • Monitor for patterns of successful access attempts that lack corresponding authentication records

How to Mitigate CVE-2024-22257

Immediate Actions Required

  • Upgrade Spring Security to patched versions: 5.7.12, 5.8.11, 6.0.9, 6.1.8, or 6.2.3 or later
  • Audit application code for direct invocations of AuthenticatedVoter#vote with potentially null parameters
  • Implement defensive null checks before calling any voter methods with authentication parameters
  • Review and test custom authentication and authorization implementations for proper null handling

Patch Information

VMware has released security patches addressing this vulnerability across all affected Spring Security version branches. Refer to the Spring Security CVE-2024-22257 Advisory for official patch details and upgrade instructions. Additional information is available in the NetApp Security Advisory NTAP-20240419-0005.

Workarounds

  • Ensure all calls to AuthenticatedVoter#vote validate that the Authentication parameter is non-null before invocation
  • Implement custom wrapper logic around voter implementations that explicitly denies access when authentication is null
  • Configure application-level security filters to ensure requests always have a valid authentication context before reaching voters
  • Consider using alternative authorization mechanisms that provide better null-safety guarantees
bash
# Maven dependency update example for Spring Security upgrade
# Update your pom.xml with the patched version
# For Spring Security 6.2.x:
# <dependency>
#     <groupId>org.springframework.security</groupId>
#     <artifactId>spring-security-core</artifactId>
#     <version>6.2.3</version>
# </dependency>

# Verify your current Spring Security version
mvn dependency:tree -Dincludes=org.springframework.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/TechSpring Security

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.26%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-862
  • Technical References
  • NetApp Security Advisory NTAP-20240419-0005

  • Spring Security CVE-2024-22257
  • Related CVEs
  • CVE-2026-22733: Spring Security Auth Bypass Vulnerability

  • CVE-2025-41248: Spring Security Auth Bypass Vulnerability

  • CVE-2025-41232: Spring Security Aspects Auth Bypass Flaw

  • CVE-2025-22235: Spring Security Auth Bypass 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