Spring Security Does Not Enforce Password Length
High severity
GitHub Reviewed
Published
Mar 20, 2025
to the GitHub Advisory Database
•
Updated Mar 20, 2025
Package
Affected versions
>= 6.3.0, < 6.3.8
>= 6.4.0, < 6.4.4
>= 6.2.0, <= 6.2.9
>= 6.1.0, <= 6.1.13
>= 6.0.0, <= 6.0.15
>= 5.8.0, <= 5.8.17
<= 5.7.15
Patched versions
6.3.8
6.4.4
6.2.10
6.1.14
6.0.16
5.8.18
5.7.16
Description
Published by the National Vulnerability Database
Mar 20, 2025
Published to the GitHub Advisory Database
Mar 20, 2025
Reviewed
Mar 20, 2025
Last updated
Mar 20, 2025
BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.
References