#VU105881 Security features bypass in Spring Security - CVE-2025-22228


Vulnerability identifier: #VU105881

Vulnerability risk: Low

CVSSv4.0: 1.7 [CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear]

CVE-ID: CVE-2025-22228

CWE-ID: CWE-254

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Spring Security
Server applications / Frameworks for developing and running applications

Vendor: VMware, Inc

Description

The vulnerability allows a remote attacker to gain unauthorized access to the application.

The vulnerability exists due to BCryptPasswordEncoder does not properly enforce maximum password length and will return "true" for passwords larger than 72 characters as long as the first 72 characters are the same. This can be used set weak passwords that can be easily brute-forced.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Spring Security: 5.0.0 - 5.0.19, 5.1.0 - 5.1.13, 5.2.0 - 5.2.9, 5.3.0 - 5.3.8, 5.4.0-M1 - 5.4.11, 5.5.0-M1 - 5.5.8, 5.6.0 - 5.6.12, 5.7.0 - 5.7.15, 5.8.0 - 5.8.17, 6.0.0 - 6.0.15, 6.1.0 - 6.1.13, 6.2.0 - 6.2.9, 6.3.0 - 6.3.7, 6.4.0 - 6.4.3


External links
https://spring.io/security/cve-2025-22228


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability