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

Project Subscriptions

Vendors Products
Apache Camel Spring Boot Subscribe
Ocp Tools Subscribe
Advisories
Source ID Title
EUVD EUVD EUVD-2025-6744 BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.
Github GHSA Github GHSA GHSA-mg83-c7gq-rv5c Spring Security Does Not Enforce Password Length
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 02 Jul 2025 02:30:00 +0000

Type Values Removed Values Added
First Time appeared Redhat ocp Tools
CPEs cpe:/a:redhat:ocp_tools:4.12::el8
cpe:/a:redhat:ocp_tools:4.13::el8
cpe:/a:redhat:ocp_tools:4.14::el8
cpe:/a:redhat:ocp_tools:4.15::el8
cpe:/a:redhat:ocp_tools:4.16::el9
cpe:/a:redhat:ocp_tools:4.17::el9
cpe:/a:redhat:ocp_tools:4.18::el9
Vendors & Products Redhat ocp Tools

Fri, 25 Apr 2025 23:45:00 +0000

Type Values Removed Values Added
References

Thu, 03 Apr 2025 03:00:00 +0000

Type Values Removed Values Added
First Time appeared Redhat
Redhat apache Camel Spring Boot
CPEs cpe:/a:redhat:apache_camel_spring_boot:4.8.5
Vendors & Products Redhat
Redhat apache Camel Spring Boot

Fri, 21 Mar 2025 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 21 Mar 2025 03:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-863
References
Metrics threat_severity

None

threat_severity

Important


Thu, 20 Mar 2025 18:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-287
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 20 Mar 2025 06:00:00 +0000

Type Values Removed Values Added
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.
Title CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2025-04-25T23:03:00.421Z

Reserved: 2025-01-02T04:29:59.191Z

Link: CVE-2025-22228

cve-icon Vulnrichment

Updated: 2025-04-25T23:03:00.421Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-03-20T06:15:23.087

Modified: 2025-04-25T23:15:16.877

Link: CVE-2025-22228

cve-icon Redhat

Severity : Important

Publid Date: 2025-03-20T05:49:19Z

Links: CVE-2025-22228 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses