Vulnerability in Spring Security

CVE-2025-22228

BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.

EPSS: 0.001 (20.4th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.4 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.

Affected products

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2025-22228?
CVE-2025-22228 is a high-severity vulnerability in Spring Security. CVSS score: 7.4/10. Published 2025-03-20.
How severe is CVE-2025-22228?
High severity. CVSS v3 base score is 7.4 out of 10.
Is CVE-2025-22228 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.