PoC Monitor
← All CVEs
CVE-2025-22228published 20 Mar 2025 05:49 UTCData: JSON · API

Spring Security

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

BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.4high · scored by CNA · CWE-287
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Spring 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

Fixed in 5.7.16, 5.8.18, 6.0.16, 6.1.14, 6.2.10, 6.3.8, 6.4.4

Mitigation

Upgrade Spring Security to 5.7.16 or 5.8.18 or 6.0.16 or 6.1.14 or 6.2.10 or 6.3.8 or 6.4.4 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published20 Mar 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.