Incorrect Authorization Affecting org.springframework.security:spring-security-core package, versions [6.4.4,6.4.10)[6.5.0,6.5.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (10th percentile)

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-ORGSPRINGFRAMEWORKSECURITY-12817818
  • published17 Sept 2025
  • disclosed16 Sept 2025
  • creditUnknown

Introduced: 16 Sep 2025

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

How to fix?

Upgrade org.springframework.security:spring-security-core to version 6.4.10, 6.5.4 or higher.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Incorrect Authorization via the annotation detection mechanism when resolving annotations on methods within type hierarchies that use a parameterized super type with unbounded generics. An attacker can gain unauthorized access to protected resources by invoking methods that should be secured but are not properly checked due to incorrect annotation resolution.

Note: This is only exploitable if the application uses the @EnableMethodSecurity feature and applies security annotations on methods in generic superclasses or generic interfaces.

CVSS Base Scores

version 4.0
version 3.1