CVE-2025-41232 CVE-2025-41232: Spring Security authorization bypass for method security annotations on private methods

Critical 9.1 Published Updated

Attackers can bypass authorization checks on private methods when using AspectJ mode, potentially accessing restricted functionality.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-41232?

CVE-2025-41232 is a critical missing authorization vulnerability in Spring Security, published on 21 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-693

Which versions are affected by CVE-2025-41232?

4 open source packages ship an affected version, including org.springframework.security:spring-security-aspects and org.springframework.security:spring-security-core.

PackageAffectedFixed in
org.springframework.security:spring-security-aspects MavenFrom 6.4.06.4.6
org.springframework.security:spring-security-aspects MavenFrom 6.4.06.4.6
org.springframework.security:spring-security-core MavenFrom 6.4.06.4.6
org.springframework.security:spring-security-core MavenFrom 6.4.06.4.6

How do I fix CVE-2025-41232?

Upgrade org.springframework.security:spring-security-aspects to 6.4.6 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2025-41232 being exploited?

There is no known exploitation of CVE-2025-41232 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2026-RU90125, GHSA-9pp5-9c7g-4r83, MINI-7mgg-83cr-mcg5, MINI-ffh9-cvqg-2hcw, MINI-hrf6-vg44-7p3j, ROOT-APP-MAVEN-CVE-2025-41232.

Is CVE-2025-41232 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free