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.

PackageEcosystemFixed in
keycloak-config-cliChainguard6.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

VendorProductVersions
SpringSpring Security5.7.x, 5.8.x, 6.0.x
chainguardkeycloak-config-cli0
chainguardjenkins-2.4920
wolfikeycloak-config-cli0
wolfithingsboard0
SpringSpring Security6.4.x, 5.7.x, 5.8.x
chainguardcamunda-zeebe-8.60
Mavenorg.springframework.security:spring-security-crypto6.0.0, 5.8.0, 0
chainguardthingsboard0
wolfijenkins-2.4790
chainguardjenkins-2.4790

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›