ADVISORIES

GitHub Advisory Database

GHSA-mg83-c7gq-rv5c

Spring Security Does Not Enforce Password Length

Details

BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.

Affected packages

EcosystemPackageAffected versions
Mavenorg.springframework.security:spring-security-crypto
From 6.3.0 before 6.3.8 (fixed in 6.3.8)
Mavenorg.springframework.security:spring-security-crypto
From 6.4.0 before 6.4.4 (fixed in 6.4.4)
Mavenorg.springframework.security:spring-security-crypto
From 6.2.0 before 6.2.10 (fixed in 6.2.10)
Mavenorg.springframework.security:spring-security-crypto
From 6.1.0 before 6.1.14 (fixed in 6.1.14)
Mavenorg.springframework.security:spring-security-crypto
From 6.0.0 before 6.0.16 (fixed in 6.0.16)
Mavenorg.springframework.security:spring-security-crypto
From 5.8.0 before 5.8.18 (fixed in 5.8.18)
Mavenorg.springframework.security:spring-security-crypto
All versions before 5.7.16 (fixed in 5.7.16)

References