Vulnerability
CVE-2025-41248
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 Security's @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 .
49 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-26m2-784x-3h3r
- CGA-28p4-2rrh-6729
- CGA-2g66-25g8-xhq4
- CGA-2q3c-9vrf-fxx9
- CGA-33xw-r8j7-qmgf
- CGA-38mc-mcq9-j9mw
- CGA-3955-q4pc-wj78
- CGA-446j-w33f-9h7c
- CGA-4492-fwfm-frw8
- CGA-49fv-5r39-mqfq
- CGA-4f98-h9f6-fcqh
- CGA-5c8m-qpp5-wq7f
- CGA-5qvc-63h5-cfxc
- CGA-5rrq-4v7v-26ph
- CGA-84qw-345v-89j9
- CGA-88mg-jq4q-27gc
- CGA-8gp8-7pw2-vq54
- CGA-8p4p-q5v9-j9xh
- CGA-9h8v-9f24-w96p
- CGA-9hjh-96f4-8xf7
- CGA-9q9m-mvhh-4239
- CGA-c3gx-6537-mggr
- CGA-f8mq-g355-jjph
- CGA-f8w4-7ccc-xm8x
- CGA-fgv2-qh36-3jrm
- CGA-gwwv-mfqc-5522
- CGA-h32c-r4m7-j5x8
- CGA-hf45-cr87-pv56
- CGA-hxv8-j5f3-r9mg
- CGA-jh33-c5v5-7ccq
- CGA-jm9c-gm38-f6v6
- CGA-jxr8-9r69-vj5v
- CGA-p473-c5w9-7527
- CGA-pcrq-6mm8-hmrr
- CGA-pg47-2x8p-7p9r
- CGA-pj2p-3fjf-fxq8
- CGA-ppj8-cp65-gp5f
- CGA-qfvc-886x-84g5
- CGA-qg5p-6qxp-q63h
- CGA-qhr5-3wwh-pcqr
- CGA-r2w4-q3rw-rv7m
- CGA-r59m-xf29-mrm6
- CGA-v45p-57c5-jjjr
- CGA-vmqh-5cvp-49wp
- CGA-w384-9r5g-2rjg
- CGA-wq89-7m83-cwwj
- CGA-x33x-jm5q-ww8x
- CGA-x5mx-jwwq-hggx
-
GHSA-8v5q-rhf3-jphm
Spring Security annotation detection mechanism has authorization bypass