Critical

Spring Security authorization bypass for method security annotations on private methods

  • Disclosed: 21.05.2025
  • Updated: 11.10.2026 12:22

Spring Security Aspects may not correctly locate method security annotations on private methods. This can cause an authorization bypass.

Your application may be affected by this if the following are true:

  • You are using @EnableMethodSecurity(mode=ASPECTJ) and spring-security-aspects, and
  • You have Spring Security method annotations on a private method In that case, the target method may be able to be invoked without proper authorization.

You are not affected if:

  • You are not using @EnableMethodSecurity(mode=ASPECTJ) or spring-security-aspects, or
  • You have no Spring Security-annotated private methods

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.springframework.security:spring-security-aspects >= 6.4.0, < 6.4.6 6.4.6
Java / Kotlin (Maven) org.springframework.security:spring-security-core >= 6.4.0, < 6.4.6 6.4.6

References

CVSS score 9.1/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness (CWE)
CWE-693
Platform
Java / Kotlin (Maven)
Package
org.springframework.security:spring-security-aspects, org.springframework.security:spring-security-core
Disclosed
21.05.2025
Updated
11.10.2026 12:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-9pp5-9c7g-4r83 - CC BY 4.0

Vulnerability history: org.springframework.security:spring-security-core

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (31) in the archive
Total entries
31
First → latest
10.2018 04.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 4
  • High 11
  • Medium 15
  • Low 1

Disclosures per year

  1. 2018: 3
  2. 2019: 2
  3. 2020: 4
  4. 2021: 1
  5. 2022: 10
  6. 2023: 1
  7. 2024: 4
  8. 2025: 3
  9. 2026: 3
Severity:
  1. High · 7.5 CVE-2025-41248 >= 6.4.0, < 6.4.10, >= 6.5.0, < 6.5.4 6.4.10, 6.5.4
  2. Spring Security authorization bypass for method security annotations on private methods this entry
    Critical · 9.1 CVE-2025-41232 >= 6.4.0, < 6.4.6 6.4.6
  3. High · 8.2 CVE-2024-22257 < 5.7.12, >= 5.8.0, < 5.8.11, >= 6.0.0, < 6.1.8, >= 6.2.0, < 6.2.3 5.7.12, 5.8.11, 6.1.8, 6.2.3
  4. High · 7.4 CVE-2024-22234 >= 6.1.0, < 6.1.7, >= 6.2.0, < 6.2.2 6.1.7, 6.2.2
  5. Critical · 9.8 CVE-2022-31692 >= 5.7.0, < 5.7.5, >= 5.6.0, < 5.6.9 5.7.5, 5.6.9
  6. Critical · 9.8 CVE-2022-22978 >= 5.5.0, < 5.5.7, >= 5.6.0, < 5.6.4, < 5.4.11 5.5.7, 5.6.4, 5.4.11
  7. High · 8.1 CVE-2017-4995 >= 4.2.0.RELEASE, < 4.2.3.RELEASE, >= 5.0.0.M1, < 5.0.0.M2 4.2.3.RELEASE, 5.0.0.M2
  8. High · 7.3 CVE-2014-0097 >= 3.2.0, < 3.2.2.RELEASE, >= 3.1.0, < 3.1.5.RELEASE 3.2.2.RELEASE, 3.1.5.RELEASE
  9. High · 7.5 CVE-2021-22119 >= 5.5.0, < 5.5.1, >= 5.4.0, < 5.4.7, >= 5.3.0, < 5.3.10, >= 5.2.0, < 5.2.11 5.5.1, 5.4.7, 5.3.10, 5.2.11
  10. High · 7.5 CVE-2016-9879 < 3.2.10.RELEASE, >= 4.0.0.RELEASE, < 4.1.4.RELEASE, >= 4.2.0.RELEASE, < 4.2.1.RELEASE 3.2.10.RELEASE, 4.1.4.RELEASE, 4.2.1.RELEASE
  11. Critical · 9.8 CVE-2014-3527 < 3.1.7, >= 3.2.0, < 3.2.5 3.1.7, 3.2.5
  12. High · 8.8 CVE-2020-5407 >= 5.2.0, < 5.2.4, >= 5.3.0, < 5.3.2 5.2.4, 5.3.2
  13. High · 7.4 CVE-2018-15801 >= 5.1.0, < 5.1.2 5.1.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.