# CVE-2025-22234: Spring Security - BCrypt Password Encoder maximum password length breaks timing attack mitigation

- Severity: Medium 5.3 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-01-22T21:02:23.992Z
- Modified: 2026-06-17T08:45:47.980Z
- Also known as: GHSA-vqxh-445g-37fc
- Weaknesses: CWE-208
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- Spring Spring Security: 5.7.16; 5.8.18; 6.0.16; 6.1.14; 6.2.10; 6.3.8; 6.4.4
- org.springframework.security:spring-security-core (Maven): from 6.3.8 before 6.3.9; from 6.4.4 before 6.4.5

## Every score

- vmware: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://spring.io/security/cve-2025-22234/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-22234> (advisory)
- <https://github.com/spring-projects/spring-security> (package)
- <https://spring.io/security/cve-2025-22234> (web)

## Sources

- CVE List: [CVE-2025-22234](https://www.cve.org/CVERecord?id=CVE-2025-22234), CVE Terms of Use, modified 2026-01-22
- GitHub Advisory Database: [GHSA-vqxh-445g-37fc](https://github.com/advisories/GHSA-vqxh-445g-37fc), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2025-22234](https://nvd.nist.gov/vuln/detail/CVE-2025-22234), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22234 · Whole record: https://cve.day/CVE-2025-22234.json · Rebuilt by cve.day 2026-11-25T22:59:10.822Z
