CVE-2025-22228
CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length
CVSS Score
7.4
EPSS Score
0.0%
EPSS Percentile
0th
BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.
| Vendor | spring |
| Product | spring security |
| Ecosystems | |
| Industries | TechnologyEnterprise |
| Published | Mar 20, 2025 |
| Last Updated | Feb 26, 2026 |
Stay Ahead of the Next One
Get instant alerts for spring spring security
Be the first to know when new high vulnerabilities affecting spring spring security are published — delivered to Slack, Telegram or Discord.
Get Free Alerts →
Free · No credit card · 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
Affected Versions
Spring / Spring Security
5.7.x < 5.7.16 5.8.x < 5.8.18 6.0.x < 6.0.16 6.1.x < 6.1.14 6.2.x < 6.2.10 6.3.x < 6.3.8 6.4.x < 6.4.4