Loading...
Skip to main content

CVE-2025-41232 — Vulnerability in...

CRITICAL

Spring Security authorization bypass for method security annotations on private methods

Published May 21, 2025Updated October 16, 2025Source: osv

Summary

Spring Security Aspects may not correctly locate method security annotations on private methods. This can cause an authorization bypass. Your application may be affected by this if the following are true: * You are using @EnableMethodSecurity(mode=ASPECTJ) and spring-security-aspects, and * You have Spring Security method annotations on a private method In that case, the target method may be able to be invoked without proper authorization. You are not affected if: * You are not using @EnableMethodSecurity(mode=ASPECTJ) or spring-security-aspects, or * You have no Spring Security-annotated private methods

Advisory Timeline

  • First published May 21, 2025 (509 days ago).
  • Last revised October 16, 2025 — 148 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.springframework.security:spring-security-core to 6.4.6 or later
<!-- Update pom.xml dependency version to 6.4.6 for org.springframework.security:spring-security-core -->
Maven
Update org.springframework.security:spring-security-aspects to 6.4.6 or later
<!-- Update pom.xml dependency version to 6.4.6 for org.springframework.security:spring-security-aspects -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: maven (2).

PackageEcosystemAffectedFixed In
org.springframework.security:spring-security-core
maven
6.4.0, 6.4.1, 6.4.2, 6.4.3 (+2 more)6.4.6
org.springframework.security:spring-security-aspects
maven
6.4.0, 6.4.1, 6.4.2, 6.4.3 (+2 more)6.4.6

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-693
    Protection Mechanism FailureMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2025-41232?
Spring Security authorization bypass for method security annotations on private methods This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2025-41232?
CVE-2025-41232 affects org.springframework.security:spring-security-core and org.springframework.security:spring-security-aspects. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-41232 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-9pp5-9c7g-4r83

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies