Spring Security - BCrypt Password Encoder maximum password length breaks timing attack mitigation (Spring Spring Security)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.39 % · percentile 33 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- vmware
- NVD status
- Deferred
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.
Weaknesses (CWE)
- CWE-208 — Observable Timing Discrepancy
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | vmware |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | NVD · security@vmware.com (Secondary) |
Advisories
- GHSA-vqxh-445g-37fc — Spring Security has a broken timing attack mitigation implemented in DaoAuthenticationProvide
European references
- ENISA EUVD · EUVD-2026-3787
- GCVE · GCVE-0-2025-22234
CERT-FR advisories
- CERTFR-2025-AVI-0343 — Vulnérabilité dans Spring Security · cert.ssi.gouv.fr
Affected products
| Product | Versions |
|---|---|
| Spring · Spring Security | affected 5.7.16 ; affected 5.8.18 ; affected 6.0.16 ; affected 6.1.14 ; affected 6.2.10 ; affected 6.3.8 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |