Incorrect Authorization Affecting org.springframework:spring-core package, versions [,6.2.11)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORK-12817817
  • published17 Sept 2025
  • disclosed16 Sept 2025
  • creditSam Brannen

Introduced: 16 Sep 2025

NewCVE-2025-41249  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade org.springframework:spring-core to version 6.2.11 or higher.

Overview

org.springframework:spring-core is a core package within the spring-framework that contains multiple classes and utilities.

Affected versions of this package are vulnerable to Incorrect Authorization via the AnnotationsScanner and AnnotatedMethod class. An attacker can gain unauthorized access to sensitive information by exploiting improper resolution of annotations on methods within type hierarchies that use parameterized supertypes with unbounded generics.

Note: This is only exploitable if security annotations are used on methods in generic superclasses or generic interfaces and the @EnableMethodSecurity feature is enabled.

CVSS Base Scores

version 4.0
version 3.1