CVE-2025-22234
JSON

5.3medium

Spring Security - BCrypt Password Encoder maximum password length breaks timing attack mitigation

Severity
5.3medium CVSS:3.1 by vmware
Exploit likelihood
0.39% (higher than 35% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
vmware
Also known as
GHSA-vqxh-445g-37fc

Description

The fix applied in CVE-2025-22228 inadvertently broke the timing attack mitigation implemented in DaoAuthenticationProvider. This can allow attackers to infer valid usernames or other authentication behavior via response-time differences under certain configurations.

Affected

Product or packageVersionsReported by
Spring Spring Security5.7.16, 5.8.18, 6.0.16, 6.1.14, 6.2.10, 6.3.8, 6.4.4CVE List
org.springframework.security:spring-security-core (Maven)from 6.3.8 before 6.3.9, from 6.4.4 before 6.4.5GitHub 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-208

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

What each source says

CVE List

The fix applied in CVE-2025-22228 inadvertently broke the timing attack mitigation implemented in DaoAuthenticationProvider. This can allow attackers to infer valid usernames or other authentication behavior via response-time differences under certain configurations.

NVD (es)

La corrección aplicada en CVE-2025-22228 rompió inadvertidamente la mitigación de ataques de temporización implementada en DaoAuthenticationProvider. Esto puede permitir a los atacantes inferir nombres de usuario válidos u otro comportamiento de autenticación a través de diferencias en el tiempo de respuesta bajo ciertas configuraciones.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-22234 changed 2026-01-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-vqxh-445g-37fc changed 2026-02-03CC-BY-4.0
NVDCVE-2025-22234 changed 2026-06-17Public domain