CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length
Priority LOW 35CWE-287Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 8 fixed, 6 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-287.
Summary
BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0061 49th percentileScored 2026-11-07
Fix Partial Spring Security (Spring): 5.7.16, 5.8.18, 6.0.16 +4org.springframework.security:spring-security-crypto (Maven): 6.3.8, 6.4.4, 6.2.10 +4Red Hat: 8 advisoriesRed Hat: 8 fixed, 6 without a fix
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| VMware | Spring Security | 5.7.x to before 5.7.16; 5.8.x to before 5.8.18; 6.0.x to before 6.0.16; 6.1.x to before 6.1.14; 6.2.x to before 6.2.10; 6.3.x to before 6.3.8; 6.4.x to before 6.4.4 | 5.7.16, 5.8.18, 6.0.16, 6.1.14, 6.2.10, 6.3.8, 6.4.4 | Patch available | CNA |
| — | org.springframework.security:spring-security-crypto (Maven) | 6.3.0 to before 6.3.8 | 6.3.8 | Patch available | GHSA-mg83-c7gq-rv5c |
| — | org.springframework.security:spring-security-crypto (Maven) | 6.4.0 to before 6.4.4 | 6.4.4 | Patch available | GHSA-mg83-c7gq-rv5c |
| — | org.springframework.security:spring-security-crypto (Maven) | 6.2.0 to before 6.2.10 | 6.2.10 | Patch available | GHSA-mg83-c7gq-rv5c |
| — | org.springframework.security:spring-security-crypto (Maven) | 6.1.0 to before 6.1.14 | 6.1.14 | Patch available | GHSA-mg83-c7gq-rv5c |
| — | org.springframework.security:spring-security-crypto (Maven) | 6.0.0 to before 6.0.16 | 6.0.16 | Patch available | GHSA-mg83-c7gq-rv5c |
| — | org.springframework.security:spring-security-crypto (Maven) | 5.8.0 to before 5.8.18 | 5.8.18 | Patch available | GHSA-mg83-c7gq-rv5c |
| — | org.springframework.security:spring-security-crypto (Maven) | before 5.7.16 | 5.7.16 | Patch available | GHSA-mg83-c7gq-rv5c |
- Spring Security VendorVMware Affected 5.7.x to before 5.7.16; 5.8.x to before 5.8.18; 6.0.x to before 6.0.16; 6.1.x to before 6.1.14; 6.2.x to before 6.2.10; 6.3.x to before 6.3.8; 6.4.x to before 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 Patch available CNA
- org.springframework.security:spring-security-crypto (Maven) Vendor— Affected 6.3.0 to before 6.3.8 Fixed in 6.3.8 Patch available GHSA-mg83-c7gq-rv5c
- org.springframework.security:spring-security-crypto (Maven) Vendor— Affected 6.4.0 to before 6.4.4 Fixed in 6.4.4 Patch available GHSA-mg83-c7gq-rv5c
- org.springframework.security:spring-security-crypto (Maven) Vendor— Affected 6.2.0 to before 6.2.10 Fixed in 6.2.10 Patch available GHSA-mg83-c7gq-rv5c
- org.springframework.security:spring-security-crypto (Maven) Vendor— Affected 6.1.0 to before 6.1.14 Fixed in 6.1.14 Patch available GHSA-mg83-c7gq-rv5c
- org.springframework.security:spring-security-crypto (Maven) Vendor— Affected 6.0.0 to before 6.0.16 Fixed in 6.0.16 Patch available GHSA-mg83-c7gq-rv5c
- org.springframework.security:spring-security-crypto (Maven) Vendor— Affected 5.8.0 to before 5.8.18 Fixed in 5.8.18 Patch available GHSA-mg83-c7gq-rv5c
- org.springframework.security:spring-security-crypto (Maven) Vendor— Affected before 5.7.16 Fixed in 5.7.16 Patch available GHSA-mg83-c7gq-rv5c
Remediation
- Fix · CNA Spring Security (Spring) Fixed in 5.7.16, 5.8.18, 6.0.16, 6.1.14, 6.2.10, 6.3.8, 6.4.4
- Fix · GHSA-mg83-c7gq-rv5c org.springframework.security:spring-security-crypto (Maven) Fixed in 6.3.8 Advisory →
- Fix · GHSA-mg83-c7gq-rv5c org.springframework.security:spring-security-crypto (Maven) Fixed in 6.4.4 Advisory →
- Fix · GHSA-mg83-c7gq-rv5c org.springframework.security:spring-security-crypto (Maven) Fixed in 6.2.10 Advisory →
- Fix · GHSA-mg83-c7gq-rv5c org.springframework.security:spring-security-crypto (Maven) Fixed in 6.1.14 Advisory →
- Fix · GHSA-mg83-c7gq-rv5c org.springframework.security:spring-security-crypto (Maven) Fixed in 6.0.16 Advisory →
- Fix · GHSA-mg83-c7gq-rv5c org.springframework.security:spring-security-crypto (Maven) Fixed in 5.8.18 Advisory →
- Fix · GHSA-mg83-c7gq-rv5c org.springframework.security:spring-security-crypto (Maven) Fixed in 5.7.16 Advisory →
Red Hat 8 advisories
- RHSA-2025:10120 Released 2025-07-01 · Red Hat rating ImportantRed Hat Product OCP Tools 4.14 OpenShift Jenkins security update
- OpenShift Developer Tools and Services for OCP 4.14 jenkins-2-plugins-4.14.1750903529-1.el8, jenkins-2.504.2.1750903189-3.el8
- RHSA-2025:10118 Released 2025-07-01 · Red Hat rating ImportantRed Hat Product OCP Tools 4.12 OpenShift Jenkins security update
- OpenShift Developer Tools and Services for OCP 4.12 jenkins-2-plugins-4.12.1750933270-1.el8, jenkins-2.504.2.1750932984-3.el8
- RHSA-2025:10119 Released 2025-07-01 · Red Hat rating ImportantRed Hat Product OCP Tools 4.13 OpenShift Jenkins security update
- OpenShift Developer Tools and Services for OCP 4.13 jenkins-2-plugins-4.13.1750916671-1.el8, jenkins-2.504.2.1750916374-3.el8
Show 5 more Red Hat advisories
- RHSA-2025:10104 Released 2025-07-01 · Red Hat rating ImportantRed Hat Product OCP Tools 4.15 OpenShift Jenkins security update
- OpenShift Developer Tools and Services for OCP 4.15 jenkins-2-plugins-4.15.1750856638-1.el8, jenkins-2.504.2.1750856366-3.el8
- RHSA-2025:10098 Released 2025-07-01 · Red Hat rating ImportantRed Hat Product OCP Tools 4.16 OpenShift Jenkins security update
- OpenShift Developer Tools and Services for OCP 4.16 jenkins-2-plugins-4.16.1750857315-1.el9, jenkins-2.504.2.1750857144-3.el9
- RHSA-2025:10097 Released 2025-07-01 · Red Hat rating ImportantRed Hat Product OCP Tools 4.17 OpenShift Jenkins security update
- OpenShift Developer Tools and Services for OCP 4.17 jenkins-2-plugins-4.17.1750851950-1.el9, jenkins-2.504.2.1750851690-3.el9
- RHSA-2025:10092 Released 2025-07-01 · Red Hat rating ImportantRed Hat Product OCP Tools 4.18 OpenShift Jenkins security update
- OpenShift Developer Tools and Services for OCP 4.18 jenkins-2-plugins-4.18.1750846854-1.el9, jenkins-2.504.2.1750846524-3.el9
- RHSA-2025:3543 Released 2025-04-02 · Red Hat rating ImportantRed Hat Build of Apache Camel 4.8.5 for Spring Boot security update.
- Red Hat build of Apache Camel 4.8.5 for Spring Boot
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| A-MQ Clients 2 | Affected | No fix planned: Out of support scope |
| Red Hat Data Grid 8 | Affected | No fix planned: Will not fix |
| Red Hat Fuse 7 | Affected | No fix planned: Will not fix |
| Red Hat Integration Camel K 1 | Affected | No fix planned: Will not fix |
| Red Hat Process Automation 7 | Affected | No fix planned: Will not fix |
| streams for Apache Kafka | Affected | No fix planned: Will not fix |
| OpenShift Developer Tools and Services for OCP 4.12 | Fixed | RHSA-2025:10118 |
| OpenShift Developer Tools and Services for OCP 4.13 | Fixed | RHSA-2025:10119 |
| OpenShift Developer Tools and Services for OCP 4.14 | Fixed | RHSA-2025:10120 |
| OpenShift Developer Tools and Services for OCP 4.15 | Fixed | RHSA-2025:10104 |
| OpenShift Developer Tools and Services for OCP 4.16 | Fixed | RHSA-2025:10098 |
| OpenShift Developer Tools and Services for OCP 4.17 | Fixed | RHSA-2025:10097 |
| OpenShift Developer Tools and Services for OCP 4.18 | Fixed | RHSA-2025:10092 |
| Red Hat build of Apache Camel 4.8.5 for Spring Boot | Fixed | RHSA-2025:3543 |
Not affected: 5 products
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat Single Sign-On 7
- Red Hat build of Quarkus
Timeline
- 2026-10-02 Threatist record created from CVE-2025-22228
- 2026-10-03 Alias added: GHSA-mg83-c7gq-rv5c
References
More VMware vulnerabilities
- TI-2026-42442 vCenter directory-traversal vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26040 Privilege escalation in VMware vCenter Server KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26039 Heap-overflow in VMware vCenter Server KEVCVSS 3.1CRITICAL 9.8
- TI-2024-24610 Out-of-bounds write in VMware vCenter Server KEVCVSS 3.1CRITICAL 9.8
- TI-2023-16914 VMware vCenter Server Out-of-Bounds Write Vulnerability KEVCVSS 3.1CRITICAL 9.8
- TI-2023-07303 Command injection in Aria Operations for Networks KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2025-22228 · CVE Program
- CVE-2025-22228 · NVD
- FIRST EPSS
- GHSA-mg83-c7gq-rv5c · GitHub Advisory Database · CC BY 4.0
- CVE-2025-22228 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences