Security mailing lists by PureSourceCode

CVE-2025-22228

HIGH 7.4CVSS 3.1

Spring Security Does Not Enforce 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.

Published
20 Mar 2025
Last modified
10 Sep 2026
Assigned by
security@vmware.com
NVD status
Deferred
Weakness
CWE-287CWE-521
Also known as
GHSA-mg83-c7gq-rv5c
Sources
NVDJSONOSV GHSA-mg83-c7gq-rv5cJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@vmware.com (Secondary) CVSS 3.1 HIGH 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Maven org.springframework.security:spring-security-crypto >= 6.3.0, < 6.3.8 6.3.8
OSV Maven org.springframework.security:spring-security-crypto >= 6.4.0, < 6.4.4 6.4.4
OSV Maven org.springframework.security:spring-security-crypto >= 6.2.0, < 6.2.10 6.2.10
OSV Maven org.springframework.security:spring-security-crypto >= 6.1.0, < 6.1.14 6.1.14
OSV Maven org.springframework.security:spring-security-crypto >= 6.0.0, < 6.0.16 6.0.16
OSV Maven org.springframework.security:spring-security-crypto >= 5.8.0, < 5.8.18 5.8.18
OSV Maven org.springframework.security:spring-security-crypto < 5.7.16 5.7.16

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 20 Mar 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.