spring-projects/spring-security · Security

Spring Security Does Not Enforce Password Length

GHSA ID
GHSA-mg83-c7gq-rv5c
CVE ID
CVE-2025-22228
Severity
high
Published
Updated
CVSS
7.4 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v3
7.4 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

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.

CWEs

References