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-2025-41248

CVE-2025-41248: Spring Security Auth Bypass Vulnerability

CVE-2025-41248 is an authorization bypass flaw in Spring Security affecting @EnableMethodSecurity configurations. Attackers can bypass method security annotations in type hierarchies with unbounded generics. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 11, 2026

CVE-2025-41248 Overview

CVE-2025-41248 is an authorization bypass vulnerability in Spring Security's annotation detection mechanism. The flaw occurs when Spring Security fails to correctly resolve security annotations on methods within type hierarchies that use parameterized super types with unbounded generics. This can lead to authorization bypass when using @PreAuthorize and other method security annotations in applications that have enabled the @EnableMethodSecurity feature.

Applications are vulnerable if they use Spring Security's @EnableMethodSecurity feature in combination with security annotations on methods in generic superclasses or generic interfaces. Applications that do not use @EnableMethodSecurity or do not apply security annotations to methods in generic type hierarchies are not affected.

Critical Impact

Attackers can bypass method-level authorization controls, potentially gaining unauthorized access to protected resources and functionality in affected Spring Security applications.

Affected Products

  • Spring Security applications using @EnableMethodSecurity
  • Applications with security annotations on methods in generic superclasses
  • Applications with security annotations on methods in generic interfaces

Discovery Timeline

  • 2025-09-16 - CVE CVE-2025-41248 published to NVD
  • 2025-09-16 - Last updated in NVD database

Technical Details for CVE-2025-41248

Vulnerability Analysis

This vulnerability stems from a flaw in how Spring Security's annotation detection mechanism processes type hierarchies involving unbounded generics. When a method is annotated with security annotations like @PreAuthorize, @PostAuthorize, @Secured, or similar method security annotations, Spring Security must correctly resolve these annotations during runtime to enforce authorization policies.

The issue arises specifically in scenarios where a method is defined in a generic superclass or interface with unbounded type parameters (e.g., <T>). When a concrete class extends or implements such a parameterized type, the annotation detection mechanism may fail to properly traverse the type hierarchy and locate the security annotation. As a result, the security constraint is not applied, allowing unauthorized access to the protected method.

This vulnerability is classified under CWE-289 (Authentication Bypass by Alternate Name), as the annotation detection failure effectively allows bypassing the intended authentication and authorization mechanisms.

Root Cause

The root cause lies in Spring Security's annotation resolution logic when dealing with parameterized super types containing unbounded generics. The framework's reflection-based annotation discovery fails to account for certain edge cases in Java's type erasure and generic type hierarchies, leading to security annotations being overlooked during method invocation.

When a class hierarchy involves generic types like interface Service<T> with a method annotated with @PreAuthorize, and a concrete implementation like class UserService implements Service<User>, the annotation detection mechanism may not correctly map the concrete method to its annotated counterpart in the generic interface.

Attack Vector

This vulnerability is exploitable over the network without requiring any privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying endpoints or service methods in the target application that rely on method-level security annotations
  2. Determining if those methods are defined in generic superclasses or interfaces with unbounded type parameters
  3. Directly invoking the vulnerable methods, bypassing the intended authorization checks
  4. Gaining unauthorized access to protected functionality or sensitive data

Since the vulnerability allows bypassing authorization controls entirely, the impact is primarily on confidentiality, enabling unauthorized information disclosure.

The exploitation does not require sophisticated techniques—once an attacker identifies an affected endpoint, they can simply call it directly without the expected authorization restrictions being enforced.

Detection Methods for CVE-2025-41248

Indicators of Compromise

  • Unexpected access to protected resources by unauthenticated or low-privileged users
  • Application logs showing method invocations without corresponding authorization audit entries
  • Access pattern anomalies where protected methods are called without proper authentication context
  • Audit log gaps where expected authorization checks are missing

Detection Strategies

  • Review application code for method security annotations (@PreAuthorize, @PostAuthorize, @Secured) applied to methods in generic interfaces or abstract classes
  • Analyze application logs for unauthorized access attempts to protected endpoints
  • Implement integration tests that verify authorization is enforced on methods inherited from generic type hierarchies
  • Use static analysis tools to identify security annotations in generic type hierarchies

Monitoring Recommendations

  • Enable detailed audit logging for all method security decisions in Spring Security
  • Monitor for access patterns to protected resources that bypass expected authorization flows
  • Set up alerts for successful access to sensitive methods without corresponding authorization events
  • Implement runtime verification of annotation resolution in security-critical code paths

How to Mitigate CVE-2025-41248

Immediate Actions Required

  • Review your application for use of @EnableMethodSecurity with security annotations on generic superclasses or interfaces
  • Apply security annotations directly on concrete implementation methods as a temporary workaround
  • Upgrade Spring Security to the patched version when available from the vendor
  • Implement additional authorization checks at the controller or service layer as defense-in-depth

Patch Information

Refer to the Spring Security Advisory for CVE-2025-41248 for official patch information and updated versions. This CVE is published in conjunction with CVE-2025-41249, and organizations should review both advisories to ensure comprehensive remediation.

Workarounds

  • Move security annotations from generic interfaces/superclasses to concrete implementation methods
  • Implement programmatic authorization checks using SecurityContextHolder instead of relying solely on annotation-based security
  • Add redundant authorization logic at the web layer (controller level) to prevent unauthorized access
  • Consider using aspect-oriented programming (AOP) to enforce authorization independently of the annotation mechanism
bash
# Configuration example - Verify @EnableMethodSecurity usage in your application
# Search for affected patterns in your codebase:
grep -r "@EnableMethodSecurity" src/
grep -r "@PreAuthorize" src/ | grep -E "(interface|abstract class)"
grep -r "@Secured" src/ | grep -E "(interface|abstract class)"

# Review generic type hierarchies with security annotations
find src/ -name "*.java" -exec grep -l "<T>" {} \; | xargs grep -l "@PreAuthorize"

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 Score7.5

  • EPSS Probability0.06%

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

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

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

  • CVE-2022-31692: 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