CVE-2025-22223
JSON

5.3medium

Spring Security Vulnerable to Authorization Bypass via Security Annotations

Severity
5.3medium CVSS:3.1 by vmware
Exploit likelihood
0.58% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
vmware
Also known as
GHSA-hh3m-g4qj-4835

Description

Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods. This may cause an authorization bypass.  You are not affected if you are not using @EnableMethodSecurity, or you do not have method security annotations on parameterized types or methods, or all method security annotations are attached to target methods

Affected

Product or packageVersionsReported by
Spring Spring Security6.4.0-6.4.3CVE List
org.springframework.security:spring-security-core (Maven)from 6.4.0 before 6.4.4GitHub Advisory Database

All scores

vmware5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-290

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods. This may cause an authorization bypass.  You are not affected if you are not using @EnableMethodSecurity, or you do not have method security annotations on parameterized types or methods, or all method security annotations are attached to target methods

NVD (es)

Es posible que Spring Security 6.4.0 - 6.4.3 no ubique correctamente las anotaciones de seguridad de métodos en tipos o métodos parametrizados. Esto puede provocar una omisión de autorización. Esto no se ve afectado si no utiliza @EnableMethodSecurity, si no tiene anotaciones de seguridad de métodos en tipos o métodos parametrizados, o si todas las anotaciones de seguridad de métodos están asociadas a los métodos de destino.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-22223 changed 2025-03-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-hh3m-g4qj-4835 changed 2026-08-07CC-BY-4.0
NVDCVE-2025-22223 changed 2026-06-17Public domain