CVE-2025-22228
published high CVSS 3.1 · 7.4CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Spring | — | Spring Security5.7.x to < 5.7.16 · 5.8.x to < 5.8.18 · 6.0.x to < 6.0.16 · 6.1.x to < 6.1.14 · 6.2.x to < 6.2.10 · 6.3.x to < 6.3.8 · 6.4.x to < 6.4.4 · Other versions: affected | Affected | Not stated | vmware |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- vmware · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Spring | Spring Security | 5.7.x to < 5.7.16 (affected · Enterprise Support Only)5.8.x to < 5.8.18 (affected · Enterprise Support Only)6.0.x to < 6.0.16 (affected · Enterprise Support Only)6.1.x to < 6.1.14 (affected · Enterprise Support Only)6.2.x to < 6.2.10 (affected · Enterprise Support Only)6.3.x to < 6.3.8 (affected · OSS)6.4.x to < 6.4.4 (affected · OSS)Default: affected | vmware · cna |
Weaknesses
1- CWE-287 CWE-287 Improper Authentication
References
2Provider assertions
3vmware · cna
CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3e454d48e88aec6f5b38b4a92903282368298cee1178d20e41f2d9591e499aa4
- Ingested
- 23 Sep 2026, 08:40:04 UTC
- Source record
- Official CVE record