VDB
CVE-2025-22228
CVE-2025-22228
PUBLISHED
CVSS 7.4 HIGH
Spring Security Does Not Enforce Password Length
Reported by vmware · Published March 20, 2025
BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| keycloak-config-cli | Chainguard | 6.4.0-r3 |
Risk scores
CVSS 3.1
7.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Security | 5.7.x, 5.8.x, 6.0.x |
| chainguard | keycloak-config-cli | 0 |
| chainguard | jenkins-2.492 | 0 |
| wolfi | keycloak-config-cli | 0 |
| wolfi | thingsboard | 0 |
| Spring | Spring Security | 6.4.x, 5.7.x, 5.8.x |
| chainguard | camunda-zeebe-8.6 | 0 |
| Maven | org.springframework.security:spring-security-crypto | 6.0.0, 5.8.0, 0 |
| chainguard | thingsboard | 0 |
| wolfi | jenkins-2.479 | 0 |
| chainguard | jenkins-2.479 | 0 |
Timeline
- Mar 19, 2025 CVE Published
- Mar 20, 2025 EPSS Score (30 in total, the first dated here)
- Mar 20, 2025 Coalition ESS Score (12 in total, the first dated here)
- Mar 17, 2026 Security Advisory (55 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (51 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-22228
vulnetix vdb fixes CVE-2025-22228
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-22228/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://security.netapp.com/advisory/ntap-20250425-0009/ url
- https://nvd.nist.gov/vuln/detail/CVE-2025-22228 advisory
- https://github.com/advisories/GHSA-mg83-c7gq-rv5c advisory
- https://github.com/spring-projects/spring-security/commit/46f0dc6dfc8402cd556c598fdf2d31f9d46cdbf3 patch
- https://github.com/spring-projects/spring-security url
- https://security.netapp.com/advisory/ntap-20250425-0009 advisory