The Spring Security annotation detection mechanism may not correctly resolve annotations on methods within type hierarchies with a parameterized super type with unbounded generics. This can be an issue when using @PreAuthorize and other method security annotations, resulting in an authorization bypass.
Your application may be affected by this if you are using Spring Securitys @EnableMethodSecurity feature.
You are not affected by this if you are not using @EnableMethodSecurity or if you do not use security annotations on methods in generic superclasses or generic interfaces.
This CVE is published in conjunction with CVE-2025-41249 https://spring.io/security/cve-2025-41249 .
The product performs authentication based on the name of a resource being accessed, or the name of the actor performing the access, but it does not properly check all possible names for that resource or actor.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| HawtIO HawtIO 4.3.0 | RedHat | spring-security-core | * |
| Red Hat build of Apache Camel 4.10.7 for Spring Boot 3.4.10 | RedHat | spring-security-core | * |
| Red Hat OpenShift Dev Spaces (RHOSDS) 3.24 | RedHat | devspaces/pluginregistry-rhel9:sha256:ccdc171ff4d7333c4279c15eeef7f9c221d65c6d072eebd7f04d71b8f7133d6a | * |