Skip to main content

Improper Authentication

CVE-2025-22228

Severity High
Score 7.4/10

Summary

The Spring Security "BCryptPasswordEncoder.matches(CharSequence, String)" method may incorrectly return true for passwords longer than 72 characters, even if only the first 72 characters match. This issue affects open-source versions through 6.3.7, 6.4.0-M1 through 6.4.3, and 6.5.0-M1 through 6.5.0-M2.

  • HIGH
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • NONE
  • HIGH
  • NONE

CWE-287 - Improper Authentication

Improper (or broken) authentication attacks are widespread, and have accounted for many of the worst data breaches in recent years. Improper authentication attacks are a class of vulnerabilities where an attacker impersonates a legitimate user by exploiting weaknesses in either session management or credential management to gain access to the user’s account. This can result in disclosure of sensitive information, and can lead to system compromise, theft, identity theft, and fraud.

Advisory Timeline

  • Published