Bug 2353507 (CVE-2025-22228)

Summary: CVE-2025-22228 spring-security-core: Spring Security BCryptPasswordEncoder does not enforce maximum password length
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: anstephe, asoldano, ataylor, avibelli, bbaranow, bgeorges, bmaxwell, boliveir, brian.stansberry, cdewolf, chfoley, clement.escoffier, cmiranda, dandread, darran.lofthouse, dhanak, dkreling, dosoudil, drichtar, ecerquei, fjuma, fmariani, ggrzybek, gmalinko, gsmet, ibek, istudens, ivassile, iweiss, janstey, jkoops, jmartisk, jpoth, jrokos, jscholz, kaycoth, kverlaen, lgao, lthon, manderse, mnovotny, mosmerov, msochure, msvehla, nwallace, olubyans, pcongius, pdelbell, pdrozd, peholase, pesilva, pgallagh, pjindal, pmackay, porcelli, probinso, pskopek, rguimara, rmartinc, rowaters, rruss, rstancel, rstepani, rsvoboda, sausingh, sbiarozk, smaestri, sthorger, swoodman, tcunning, tom.jenkinson, tqvarnst, yfang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the spring-security-core password encoder. This vulnerability allows incorrect password matching via input manipulation.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-03-20 06:01:08 UTC
BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.

Comment 3 errata-xmlrpc 2025-04-02 20:19:36 UTC
This issue has been addressed in the following products:

  Red Hat build of Apache Camel 4.8.5 for Spring Boot

Via RHSA-2025:3543 https://access.redhat.com/errata/RHSA-2025:3543

Comment 4 errata-xmlrpc 2025-07-01 13:46:16 UTC
This issue has been addressed in the following products:

  OCP-Tools-4.18-RHEL-9

Via RHSA-2025:10092 https://access.redhat.com/errata/RHSA-2025:10092

Comment 5 errata-xmlrpc 2025-07-01 14:28:30 UTC
This issue has been addressed in the following products:

  OCP-Tools-4.17-RHEL-9

Via RHSA-2025:10097 https://access.redhat.com/errata/RHSA-2025:10097

Comment 6 errata-xmlrpc 2025-07-01 14:32:43 UTC
This issue has been addressed in the following products:

  OCP-Tools-4.16-RHEL-9

Via RHSA-2025:10098 https://access.redhat.com/errata/RHSA-2025:10098

Comment 7 errata-xmlrpc 2025-07-01 14:54:18 UTC
This issue has been addressed in the following products:

  OCP-Tools-4.15-RHEL-8

Via RHSA-2025:10104 https://access.redhat.com/errata/RHSA-2025:10104

Comment 8 errata-xmlrpc 2025-07-01 16:29:29 UTC
This issue has been addressed in the following products:

  OCP-Tools-4.13-RHEL-8

Via RHSA-2025:10119 https://access.redhat.com/errata/RHSA-2025:10119

Comment 9 errata-xmlrpc 2025-07-01 16:35:05 UTC
This issue has been addressed in the following products:

  OCP-Tools-4.12-RHEL-8

Via RHSA-2025:10118 https://access.redhat.com/errata/RHSA-2025:10118

Comment 10 errata-xmlrpc 2025-07-01 16:49:59 UTC
This issue has been addressed in the following products:

  OCP-Tools-4.14-RHEL-8

Via RHSA-2025:10120 https://access.redhat.com/errata/RHSA-2025:10120