CVE-2025-41249: Spring Framework Annotation Detection Vulnerability

Published Sep 16, 2025
·
Updated

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 .

Affected Software

4 affected componentsFixes available
Spring Spring Framework
maven/org.springframework:spring-core>=6.2.0<=6.2.10
6.2.11
maven/org.springframework:spring-core>=6.0.0<=6.1.22
maven/org.springframework:spring-core>=5.3.0<=5.3.44

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.springframework:spring-core to a version that resolves this vulnerability.

    Fixed in 6.2.11

Event History

Sep 16, 2025
CVE Published
via MITRE·10:15 AM
Data Sourced
via MITRE·10:15 AM
DescriptionSeverity
Data Sourced
via Red Hat·11:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·11:15 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:32 PM
Data Sourced
via GitHub·03:32 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-41249?

The severity of CVE-2025-41249 is considered high due to potential authorization bypass issues.

2

How do I fix CVE-2025-41249?

To fix CVE-2025-41249, ensure that you are using the latest version of the Spring Framework that addresses this annotation resolution issue.

3

What are the potential impacts of CVE-2025-41249?

CVE-2025-41249 can lead to unauthorized access if annotations used for authorization are not resolved correctly.

4

Which versions of Spring Framework are affected by CVE-2025-41249?

CVE-2025-41249 affects multiple versions of the Spring Framework prior to the patch release.

5

Are there any workarounds for CVE-2025-41249?

A workaround for CVE-2025-41249 includes reviewing the method hierarchies and avoiding unbounded generics where annotations are used for security decisions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203