CVE-2025-41249 — Vulnerability in spring-core — CVE Details
Spring Framework annotation detection mechanism may result in improper authorization
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.59%). Schedule for your next planned update.
Does your project use an affected org.springframework:spring-core version?
Paste your pom.xml to check it for CVE-2025-41249 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
The Spring Framework 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 if such annotations are used for authorization decisions.
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-41248 https://spring.io/security/cve-2025-41248 .
Advisory Timeline
- First published September 16, 2025 (436 days ago).
- Last revised September 10, 2026 — 359 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 6.2.11 for org.springframework:spring-core -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.springframework:spring-core Maven · Affected: 6.2.0, 6.2.1, 6.2.10, 6.2.2 (+7 more) | 6.2.11 |
| org.springframework:spring-core Maven · Affected: 5.3.0, 5.3.1, 5.3.10, 5.3.11 (+36 more) | Range-based data available |
| org.springframework:spring-core Maven · Affected: 6.0.0, 6.0.1, 6.0.10, 6.0.11 (+42 more) | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-41249ADVISORY
- https://github.com/spring-projects/spring-framework/issues/35342WEB
- https://github.com/spring-projects/spring-framework/commit/6d710d482a6785b069e35022e81758953afc21ffWEB
- https://github.com/spring-projects/spring-frameworkPACKAGE
- https://github.com/spring-projects/spring-framework/releases/tag/v6.2.11WEB
- https://spring.io/security/cve-2025-41249WEB
Frequently Asked Questions
- What is CVE-2025-41249?
- Spring Framework annotation detection mechanism may result in improper authorization. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2025-41249?
- CVE-2025-41249 affects org.springframework:spring-core. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-41249 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 42.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2022-22965CRITICAL
Remote Code Execution in Spring Framework
- CVE-2025-41232CRITICAL
Spring Security authorization bypass for method security annotations on private methods
- CVE-2026-47835HIGH
Spring AI vector store metadata filtering to handle special characters in Elasticsearch, OpenSearch, and GemFire Vector Stores
- CVE-2026-41712HIGH
Spring AI: ChatMemory DEFAULT_CONVERSATION_ID causes unintended cross-user data leakage
- CVE-2026-41842HIGH
Spring Framework Denial of Service via Versioned Resources in Spring MVC and WebFlux
- CVE-2021-22060MEDIUM
Log entry injection in Spring Framework
- CVE-2021-22096MEDIUM
Improper Output Neutralization for Logs in Spring Framework
- CVE-2026-41848LOW
Spring Framework Denial of Service via AntPathMatcher