Headline
GHSA-mg83-c7gq-rv5c: 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.
Skip to content
Navigation Menu
GitHub Copilot
Write better code with AI
Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
- Learning Pathways
- Events & Webinars
- Ebooks & Whitepapers
- Customer Stories
- Partners
- Executive Insights
GitHub Sponsors
Fund open source developers
* The ReadME Project
GitHub community articles
Enterprise platform
AI-powered developer platform
- Pricing
Provide feedback
Saved searches****Use saved searches to filter your results more quickly
Sign up
- GitHub Advisory Database
- GitHub Reviewed
- CVE-2025-22228
Spring Security Does Not Enforce Password Length
High severity GitHub Reviewed Published Mar 20, 2025 to the GitHub Advisory Database • Updated Mar 20, 2025
Package
maven org.springframework.security:spring-security-crypto (Maven)
Affected versions
>= 6.3.0, < 6.3.8
>= 6.4.0, < 6.4.4
>= 6.2.0, <= 6.2.9
>= 6.1.0, <= 6.1.13
>= 6.0.0, <= 6.0.15
>= 5.8.0, <= 5.8.17
<= 5.7.15
Patched versions
6.3.8
6.4.4
6.2.10
6.1.14
6.0.16
5.8.18
5.7.16
Description
Published to the GitHub Advisory Database
Mar 20, 2025
Last updated
Mar 20, 2025
EPSS score