CVE-2025-22228
March 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.
Affected Packages
https://github.com/spring-projects/spring-security.git (GITHUB):
Affected version(s) >=6.4.0 <6.4.4Fix Suggestion:
Update to version 6.4.4https://github.com/spring-projects/spring-security.git (GITHUB):
Affected version(s) >=6.3.0 <6.3.8Fix Suggestion:
Update to version 6.3.8org.springframework.security:spring-security-crypto (JAVA):
Affected version(s) >=6.4.0 <6.4.4Fix Suggestion:
Update to version 6.4.4org.springframework.security:spring-security-crypto (JAVA):
Affected version(s) >=6.3.0 <6.3.8Fix Suggestion:
Update to version 6.3.8Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.1
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.4
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
EPSS
Base Score:
0.03