CVE-2025-22228
No exploitation reported by the sources we read.
- Published2025-03-20
- Fixed in6.4.4 · 6.3.8 · 6.2.10 · 6.1.14 · 6.0.16 · 5.8.18
- WeaknessCWE-287
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2025-03-2006:15CVE publishedNVD
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 6.4 | ≥ 6.4.0, < 6.4.4 | 6.4.4 | OSV |
| 6.3 | ≥ 6.3.0, < 6.3.8 | 6.3.8 | OSV |
| 6.2 | ≥ 6.2.0, < 6.2.10 | 6.2.10 | OSV |
| 6.1 | ≥ 6.1.0, < 6.1.14 | 6.1.14 | OSV |
| 6.0 | ≥ 6.0.0, < 6.0.16 | 6.0.16 | OSV |
| 5.8 | ≥ 5.8.0, < 5.8.18 | 5.8.18 | OSV |
| 5.7 | < 5.7.16 | 5.7.16 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As vmware, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Spring Securityother versions: affectedAffected
- ≥ 5.7.x, < 5.7.16fixed in 5.7.16Enterprise Support Only
- ≥ 5.8.x, < 5.8.18fixed in 5.8.18Enterprise Support Only
- ≥ 6.0.x, < 6.0.16fixed in 6.0.16Enterprise Support Only
- ≥ 6.1.x, < 6.1.14fixed in 6.1.14Enterprise Support Only
- ≥ 6.2.x, < 6.2.10fixed in 6.2.10Enterprise Support Only
- ≥ 6.3.x, < 6.3.8fixed in 6.3.8OSS
- ≥ 6.4.x, < 6.4.4fixed in 6.4.4OSS
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-03-20
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- camunda-zeebe-8.6Chainguardall versions · fixed in 8.6.12-r1and 1 other package
- io.root.org.springframework.security:spring-security-cryptoRoot:Mavenall versions · fixed in 6.1.3-root.io.1
- io.root.org.springframework.security:spring-security-cryptoRoot:Mavenall versions · fixed in 5.7.1-root.io.2
- io.root.org.springframework.security:spring-security-cryptoRoot:Mavenall versions · fixed in 5.7.5-root.io.1
- io.root.org.springframework.security:spring-security-cryptoRoot:Mavenall versions · fixed in 6.1.3-root.io.2
- io.root.org.springframework.security:spring-security-cryptoRoot:Mavenall versions · fixed in 6.1.3-root.io.3
- io.root.org.springframework.security:spring-security-cryptoRoot:Mavenall versions · fixed in 6.1.3-root.io.4
- io.root.org.springframework.security:spring-security-cryptoRoot:Mavenall versions · fixed in 6.1.3-root.io.5
85 more package ranges on OSV.dev
Vendor advisories
spring-security-core: Spring Security BCryptPasswordEncoder does not enforce maximum password length
spring-security-core as a component of A-MQ Clients 2 · spring-security-core as a component of Red Hat Data Grid 8 · org.apache.servicemix.bundles.spring-security-core as a component of Red Hat Fuse 7 · +4 more
Red Hat Security Advisory: Red Hat Product OCP Tools 4.14 OpenShift Jenkins security update
Red Hat Security Advisory: Red Hat Product OCP Tools 4.12 OpenShift Jenkins security update
Red Hat Security Advisory: Red Hat Product OCP Tools 4.13 OpenShift Jenkins security update
Red Hat Security Advisory: Red Hat Product OCP Tools 4.15 OpenShift Jenkins security update
Red Hat Security Advisory: Red Hat Product OCP Tools 4.16 OpenShift Jenkins security update
3 more advisories
Fix
- Update spring-security-crypto to 6.4.4 · 6.3.8 · 6.2.10 · 6.1.14 · 6.0.16 · 5.8.18 · 5.7.16
- Vendor fix Red Hat Product Security RHSA-2025:10120 · 4 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2025:3543 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Workaround from the vendor Red Hat Product Security RHSA-2025:10120 · 4 productsRed Hat Product Security does not have a recommended mitigation at this time.
- No fix planned, says the vendor Red Hat Product Security CVE-2025-22228 · 1 productOut of support scope
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2025-03-21
- CNACVSS 3.17.4known since 2026-10-23
- CISA-ADPweakness (CWE)CWE-2872025-03-20
- FIRST EPSSEPSS score0.6 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHigh2025-03-20
Identifiers
- CGA-3f7r-qxxh-94xrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3f8r-r9mf-wph4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-48jf-76h3-35g2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4w47-36xg-wvf2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5pw3-gj99-rq9gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5vxh-9q89-qhmqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6x27-7gjh-p5jfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7539-c3xw-83c9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-75fx-qw6j-m5qpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7xgx-mjgr-47r5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8rrv-7c6x-73m6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-97v4-v2x9-mc89same flawChainguard · CC-BY-NC-ND-4.0
- CGA-c7ch-g432-6cj4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-cv5p-7vrx-9q66same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gjf9-46c6-98cmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gr43-672h-39r6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-h4x2-r9qp-26j3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-h877-xvvr-f96fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jc3m-g43x-hg4wsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jrmm-4cxh-jvmmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-m4rm-9r7x-7v9qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-mp64-m592-wggxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-mr7v-xv8c-2227same flawChainguard · CC-BY-NC-ND-4.0
- CGA-p2g5-9f2r-2c2qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-p62v-249h-34frsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-pf95-97q4-r2xvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-ppg6-c8pc-j47vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-q37c-qmp2-qfc9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-qg6w-f6hf-rmgfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qrwh-wxvg-rgh5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-rpr5-7m2x-7g58same flawChainguard · CC-BY-NC-ND-4.0
- CGA-rvgc-3cm9-5gwqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-v6xq-8hpc-726vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-vv63-f2w7-wm37same flawChainguard · CC-BY-NC-ND-4.0
- CGA-w4g3-gx74-m2ffsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-w6g9-8fg2-9qv6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-wgp9-vrvx-rfcmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-wj7j-7g5q-mm2msame flawChainguard · CC-BY-NC-ND-4.0
- CGA-wmw9-qgr5-fj35same flawChainguard · CC-BY-NC-ND-4.0
- CGA-wqgh-5x4q-xmhcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-x5cf-pg88-j8mwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-xf27-5j4g-mvrmsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2025-6744same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-mg83-c7gq-rv5csame flawGitHub Advisory Database · CC-BY-4.0
- MINI-5jfg-gm2f-5p33same flawMinimOS · LicenseRef-unstated
- MINI-6x3f-vp3m-79mfsame flawMinimOS · LicenseRef-unstated
- MINI-m98r-gg6p-r796same flawMinimOS · LicenseRef-unstated
- MINI-wpmv-6xv7-c8fvsame flawMinimOS · LicenseRef-unstated
- RHSA-2025:10092advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:10097advisory covering several CVEsRed Hat · CC-BY-4.0
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Published
- 2025-03-20
- Last modified
- 2026-06-17
- NVD status
- Deferred
- GitHub advisory
- GHSA-mg83-c7gq-rv5c
Frequently asked questions
What is CVE-2025-22228?
Is CVE-2025-22228 actively exploited?
What is the CVSS score for CVE-2025-22228?
Running spring-security-core? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-mg83-c7gq-rv5c
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0