CVE Database
/

CVE-2025-22228

Back to search

CVE-2025-22228

Published: Mar 20, 2025

Modified: Feb 26, 2026

PUBLISHED

CVSS v3.1

7.4

HIGH

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.

VendorProductVersions

Spring

Spring Security

affected
5.7.x - < 5.7.16
affected
5.8.x - < 5.8.18
affected
6.0.x - < 6.0.16
affected
6.1.x - < 6.1.14
affected
6.2.x - < 6.2.10

+2 more versions

CVSS v3.1 Details

CVSS v3.1 Vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Attack Vector

Network

Attack Complexity

High

Privileges Required

None

User Interaction

None

Scope

Unchanged

Confidentiality

High

Integrity

High

Availability

None

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now