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 package | Versions | Reported by |
|---|---|---|
| Spring Spring Security | 5.7.16, 5.8.18, 6.0.16, 6.1.14, 6.2.10, 6.3.8, 6.4.4 | CVE List |
| org.springframework.security:spring-security-core (Maven) | from 6.3.8 before 6.3.9, from 6.4.4 before 6.4.5 | GitHub Advisory Database |
All scores
| vmware | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-22234 changed 2026-01-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vqxh-445g-37fc changed 2026-02-03 | CC-BY-4.0 |
| NVD | CVE-2025-22234 changed 2026-06-17 | Public domain |