CVE-2025-41248
Spring Security annotation detection mechanism has authorization bypass
Reported by vmware · Published September 16, 2025
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 .
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nacos | Chainguard | 3.1.0-r0 |
| thingsboard | Chainguard | 4.2-r6 |
| jenkins-2.516 | Chainguard | 2.516.2-r1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| VMware | Spring Security | 6.4.x, 6.5.x |
| chainguard | nacos | 0 |
| chainguard | thingsboard | 0 |
| chainguard | jenkins-2.516 | 0 |
| wolfi | apache-nifi | 0 |
| wolfi | jenkins-2 | 0 |
| wolfi | thingsboard | 0 |
| Maven | org.springframework.security:spring-security-core | 6.5.0, 6.4.0 |
| chainguard | apache-nifi | 0 |
| chainguard | jenkins-2.504 | 0 |
| wolfi | apache-nifi-registry | 0 |
| chainguard | jenkins-2 | 0 |
| chainguard | apache-nifi-registry | 0 |
| VMware | Spring Security | 6.4.x, 6.5.x |
| chainguard | nacos-docker | 0 |
Timeline
- Sep 15, 2025 CVE Published
- Sep 16, 2025 EPSS Score (30 in total, the first dated here)
- Sep 20, 2025 Coalition ESS Score (14 in total, the first dated here)
- Mar 17, 2026 Security Advisory (7 in total, the first dated here)
- Nov 2, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-41248
vulnetix vdb fixes CVE-2025-41248
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-41248/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-41248 advisory
- https://github.com/advisories/GHSA-8v5q-rhf3-jphm advisory
- https://github.com/spring-projects/spring-security/issues/17898 url
- https://github.com/spring-projects/spring-security/issues/17899 url
- https://github.com/spring-projects/spring-security/commit/d0f93fa6d8338149943ae640c53db07de827867f patch
- https://github.com/spring-projects/spring-security/commit/e5694ac7b5e4394b920c6cab48b7bfbd871f84bd patch
- https://github.com/spring-projects/spring-security url
- https://github.com/spring-projects/spring-security/releases/tag/6.4.10 url
- https://github.com/spring-projects/spring-security/releases/tag/6.5.4 url