{"id":"CVE-2025-22234","published":"2026-01-22T21:02:23Z","modified":"2026-01-22T21:27:13Z","title":"Spring Security - BCrypt Password Encoder maximum password length breaks timing attack mitigation","vendor":"Spring","product":"Spring Security","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00456,"percentile":0.31509,"provenance":"source"},"cwes":[{"id":"CWE-208","name":"Observable Timing Discrepancy"}],"references":[{"url":"https://spring.io/security/cve-2025-22234/","tags":["vendor-advisory"]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":6.3},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"spring","affectedVersions":[{"vendor":"Spring","product":"Spring Security","versions":["5.7.16","5.8.18","6.0.16","6.1.14","6.2.10","6.3.8","6.4.4"]}],"solutions":{"items":["Upgrade to a fixed version: 5.7.17, 5.8.19, 6.0.17, 6.1.15, 6.2.11, 6.3.9, or 6.4.5 (depending on your release line)."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-22T21:27:06.559653Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.security:spring-security-core","vulnerableRanges":[">=6.3.8, <6.3.9",">=6.4.4, <6.4.5"],"patched":["6.3.9","6.4.5"],"from":["GHSA-vqxh-445g-37fc"],"provenance":"source"}],"summary":{"text":"The Spring Security BCrypt Password Encoder's maximum password length handling breaks the timing attack mitigation in DaoAuthenticationProvider, an authentication component of the Spring Security product. An attacker with network access and no authentication can exploit response-time differences under certain configurations to infer valid usernames or other authentication behaviour, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:08Z"},"euvd":{"id":"EUVD-2026-3787","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spring-security-cve-2022-22976","parents":[{"from":"CVE-2025-22228","to":"CVE-2025-22234","relation":"regression","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"regression","quote":"The fix applied in CVE-2025-22228 inadvertently broke the timing attack mitigation implemented in DaoAuthenticationProvider.","from":"CVE.org","in":"CVE-2025-22234"}]}],"packageHistory":[{"cve":"CVE-2024-38810","published":"2024-08-20","fixed":"6.3.2","kev":false},{"cve":"CVE-2024-38827","published":"2024-12-02","fixed":"6.3.5","kev":false},{"cve":"CVE-2025-22223","published":"2025-03-24","fixed":"6.4.4","kev":false,"link":{"from":"CVE-2025-22223","to":"CVE-2025-22234","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-core","fromFixed":"6.4.4","toFixed":"6.4.5","daysApart":304}]}},{"cve":"CVE-2025-22234","published":"2026-01-22","fixed":"6.4.5","kev":false},{"cve":"CVE-2025-41232","published":"2025-05-21","fixed":"6.4.6","kev":false},{"cve":"CVE-2025-41248","published":"2025-09-16","fixed":"6.5.4","kev":false},{"cve":"CVE-2026-22746","published":"2026-04-22","fixed":"7.0.5","kev":false}],"package":"Maven:org.springframework.security:spring-security-core"}}