7.4

CVE-2025-22228: CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length

Deferred
AliasesCGA-3f8r-r9mf-wph4CGA-5vxh-9q89-qhmqCGA-7539-c3xw-83c9
Published 20-03-2025Last modified 26-02-2026

Vulnerability summary

CVE-2025-22228 is a high (CVSS 7.4) Improper Authentication vulnerability in spring spring security. EPSS estimates a 0.61% chance of exploitation in the next 30 days, higher than 49.2% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 7.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)

Source freshness unavailable

How is this decided?
CVSS score
7.4/10
010
High · v3.1 (CVE.org)
EPSS score
0.61%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 7 · Related 6

Timeline

  1. 20-03-2025
    PublishedVulnerability first disclosed.
  2. 26-02-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.61%

Chance of exploitation in the next 30 days

Percentile

49%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.60% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard25 products
  • camunda-zeebe-8.6< 8.6.12-r1
  • camunda-zeebe-8.6-compat< 8.6.12-r1
  • geoserver-2.27All versions (No fix recorded)
  • geoserver-2.28All versions (No fix recorded)
  • kayenta-2025.0All versions (No fix recorded)
Wolfi8 products
  • keycloak-config-cli< 6.4.0-r3
  • keycloak-config-cli-compat< 6.4.0-r3
  • keycloak-config-cli-iamguarded-compat< 6.4.0-r3
  • thingsboard< 3.9.1-r2
  • thingsboard-tb-js-executor< 3.9.1-r2
Org.springframework.security1 product
  • spring-security-crypto≥ 6.3.0, < 6.3.8 | ≥ 6.4.0, < 6.4.4 | ≥ 6.2.0, < 6.2.10 | ≥ 6.1.0, < 6.1.14 | ≥ 6.0.0, < 6.0.16 | ≥ 5.8.0, < 5.8.18 | < 5.7.16
Spring1 product
  • spring security≥ 5.7.x, < 5.7.16 | ≥ 5.8.x, < 5.8.18 | ≥ 6.0.x, < 6.0.16 | ≥ 6.1.x, < 6.1.14 | ≥ 6.2.x, < 6.2.10 | ≥ 6.3.x, < 6.3.8 | ≥ 6.4.x, < 6.4.4

4 vendors · 35 products

References

6 links