# CVE-2025-41248: CVE-2025-41248: Spring Security authorization bypass for method security annotations on parameterized types

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 6.4.11, 6.5.5 (CNA); fix release not confirmed
- Status: published
- Published: 2025-09-16 · Modified: 2025-09-18
- Aliases: CGA-26m2-784x-3h3r, CGA-28p4-2rrh-6729, CGA-2q3c-9vrf-fxx9, CGA-3955-q4pc-wj78, CGA-4492-fwfm-frw8, CGA-49fv-5r39-mqfq, CGA-5c8m-qpp5-wq7f, CGA-5qvc-63h5-cfxc, CGA-84qw-345v-89j9, CGA-88mg-jq4q-27gc, CGA-8gp8-7pw2-vq54, CGA-8p4p-q5v9-j9xh, CGA-9hjh-96f4-8xf7, CGA-9q9m-mvhh-4239, CGA-c3gx-6537-mggr, CGA-f8w4-7ccc-xm8x, CGA-fgv2-qh36-3jrm, CGA-gwwv-mfqc-5522, CGA-hf45-cr87-pv56, CGA-hxv8-j5f3-r9mg, CGA-jm9c-gm38-f6v6, CGA-jxr8-9r69-vj5v, CGA-p473-c5w9-7527, CGA-pcrq-6mm8-hmrr, CGA-pj2p-3fjf-fxq8, CGA-qfvc-886x-84g5, CGA-qg5p-6qxp-q63h, CGA-r2w4-q3rw-rv7m, CGA-r59m-xf29-mrm6, CGA-v45p-57c5-jjjr, CGA-vmqh-5cvp-49wp, CGA-w384-9r5g-2rjg, CGA-x33x-jm5q-ww8x, CGA-x5mx-jwwq-hggx, CGA-2g66-25g8-xhq4, CGA-33xw-r8j7-qmgf, CGA-38mc-mcq9-j9mw, CGA-446j-w33f-9h7c, CGA-4f98-h9f6-fcqh, CGA-5rrq-4v7v-26ph, CGA-9h8v-9f24-w96p, CGA-f8mq-g355-jjph, CGA-h32c-r4m7-j5x8, CGA-jh33-c5v5-7ccq, CGA-pg47-2x8p-7p9r, CGA-ppj8-cp65-gp5f, GHSA-8v5q-rhf3-jphm, CGA-qhr5-3wwh-pcqr, CGA-wq89-7m83-cwwj
- Record: https://cvemate.com/vulnerability/CVE-2025-41248 · JSON: https://cvemate.com/vulnerability/CVE-2025-41248/json

## Description

```text
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 .
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.45%, percentile 40.826%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 43)

- chainguard apache-nifi (Chainguard): \< 2.5.0-r11
- chainguard apache-nifi-compat (Chainguard): \< 2.5.0-r11
- chainguard apache-nifi-registry (Chainguard): \< 2.5.0-r6
- chainguard apache-nifi-registry-toolkit (Chainguard): \< 2.5.0-r6
- chainguard apache-nifi-toolkit (Chainguard): \< 2.5.0-r11
- chainguard jenkins-2 (Chainguard): \< 2.528-r0
- chainguard jenkins-2-openjdk-17 (Chainguard): \< 2.528-r0
- chainguard jenkins-2-openjdk-21 (Chainguard): \< 2.528-r0
- chainguard jenkins-2.504-openjdk-17 (Chainguard): \< 2.504.3-r5
- chainguard jenkins-2.504-openjdk-21 (Chainguard): \< 2.504.3-r5
- chainguard jenkins-2.516-openjdk-17 (Chainguard): \< 2.516.2-r1
- chainguard jenkins-2.516-openjdk-21 (Chainguard): \< 2.516.2-r1
- chainguard jenkins-compat (Chainguard): \< 2.528-r0
- chainguard jenkins-docker-agent-openjdk-21 (Chainguard): \< 2.528-r0
- chainguard jenkins-remoting (Chainguard): \< 2.528-r0
- chainguard jenkins-utils (Chainguard): \< 2.528-r0
- chainguard nacos (Chainguard): \< 3.1.0-r0
- chainguard nacos-compat (Chainguard): \< 3.1.0-r0
- chainguard nacos-docker (Chainguard): \< 3.1.0-r0
- chainguard thingsboard (Chainguard): \< 4.2-r6

## References

- <https://spring.io/security/cve-2025-41248>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-41248>
- <https://github.com/spring-projects/spring-security/issues/17898>
- <https://github.com/spring-projects/spring-security/issues/17899>
- <https://github.com/spring-projects/spring-security/commit/d0f93fa6d8338149943ae640c53db07de827867f>
- <https://github.com/spring-projects/spring-security/commit/e5694ac7b5e4394b920c6cab48b7bfbd871f84bd>
- <https://github.com/spring-projects/spring-security>
- <https://github.com/spring-projects/spring-security/releases/tag/6.4.10>
- <https://github.com/spring-projects/spring-security/releases/tag/6.5.4>

---

Data as of 2026-12-05T03:38:55.603Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
