Skip to content
CVE PROGRAM SOURCE RECORD7.4 High

CVE-2025-22228

CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length

Description

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Spring Spring Security

Default version status: affected

  • 5.7.x to < 5.7.16affected
  • 5.8.x to < 5.8.18affected
  • 6.0.x to < 6.0.16affected
  • 6.1.x to < 6.1.14affected
  • 6.2.x to < 6.2.10affected
  • 6.3.x to < 6.3.8affected
  • 6.4.x to < 6.4.4affected

References