Intel

AIKIDO-2025-10171

spring-security-crypto is vulnerable to Improper Authentication

Improper AuthenticationCVE-2025-22228 Published Mar 20, 2025

74

High Risk

This Affects:

JAVAspring-security-crypto
0.0.0 - 6.3.7
Fixed in 6.3.8
6.4.0 - 6.4.3
Fixed in 6.4.4
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to improper password verification in BCryptPasswordEncoder.matches(CharSequence, String). When a password exceeds 72 characters, only the first 72 characters are considered for comparison. As a result, passwords that share the same initial 72 characters will incorrectly be treated as identical, potentially allowing authentication bypass.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

spring-security-crypto is vulnerable to Improper Authentication in versions 0.0.0 - 6.3.7 and 6.4.0 - 6.4.3.

How to fix this

Upgrade the org.springframework.security:spring-security-crypto library to the patch version.