cve.bz

CVE-2025-22228 spring spring security: Improper Authentication

7.4 highEPSS 0.6%Fix available

High (7.4) in spring spring security. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in org.springframework.security:spring-security-crypto 5.7.16, 5.8.18, 6.0.16.

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

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-03-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-287 Improper Authentication
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-22228 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-22228?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-22228?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-22228 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Spring Securityfrom 5.7.x before 5.7.16
Spring Securityfrom 5.8.x before 5.8.18
Spring Securityfrom 6.0.x before 6.0.16
Spring Securityfrom 6.1.x before 6.1.14
Spring Securityfrom 6.2.x before 6.2.10
Spring Securityfrom 6.3.x before 6.3.8
Spring Securityfrom 6.4.x before 6.4.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mg83-c7gq-rv5cMavenorg.springframework.security:spring-security-crypto>=6.3.0 <6.3.86.3.8
GHSA-mg83-c7gq-rv5cMavenorg.springframework.security:spring-security-crypto>=6.4.0 <6.4.46.4.4
GHSA-mg83-c7gq-rv5cMavenorg.springframework.security:spring-security-crypto>=6.2.0 <6.2.106.2.10
GHSA-mg83-c7gq-rv5cMavenorg.springframework.security:spring-security-crypto>=6.1.0 <6.1.146.1.14
GHSA-mg83-c7gq-rv5cMavenorg.springframework.security:spring-security-crypto>=6.0.0 <6.0.166.0.16
GHSA-mg83-c7gq-rv5cMavenorg.springframework.security:spring-security-crypto>=5.8.0 <5.8.185.8.18
GHSA-mg83-c7gq-rv5cMavenorg.springframework.security:spring-security-crypto<5.7.165.7.16

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatocp_tools:4.12::el8jenkins0:2.504.2.1750932984-3.el8RHSA-2025:10118
Red Hatocp_tools:4.12::el8jenkins-2-plugins0:4.12.1750933270-1.el8RHSA-2025:10118
Red Hatocp_tools:4.13::el8jenkins0:2.504.2.1750916374-3.el8RHSA-2025:10119
Red Hatocp_tools:4.13::el8jenkins-2-plugins0:4.13.1750916671-1.el8RHSA-2025:10119
Red Hatocp_tools:4.14::el8jenkins0:2.504.2.1750903189-3.el8RHSA-2025:10120
Red Hatocp_tools:4.14::el8jenkins-2-plugins0:4.14.1750903529-1.el8RHSA-2025:10120
Red Hatocp_tools:4.15::el8jenkins0:2.504.2.1750856366-3.el8RHSA-2025:10104
Red Hatocp_tools:4.15::el8jenkins-2-plugins0:4.15.1750856638-1.el8RHSA-2025:10104
Red Hatocp_tools:4.16::el9jenkins0:2.504.2.1750857144-3.el9RHSA-2025:10098
Red Hatocp_tools:4.16::el9jenkins-2-plugins0:4.16.1750857315-1.el9RHSA-2025:10098
Red Hatocp_tools:4.17::el9jenkins0:2.504.2.1750851690-3.el9RHSA-2025:10097
Red Hatocp_tools:4.17::el9jenkins-2-plugins0:4.17.1750851950-1.el9RHSA-2025:10097
2 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Red Hat Product Security does not have a recommended mitigation at this time.

ProductPackageStateAdvisory
OCP-Tools-4.12-RHEL-8jenkins-0:2.504.2.1750932984-3.el8Fixed 2025-07-01RHSA-2025:10118
OCP-Tools-4.12-RHEL-8jenkins-2-plugins-0:4.12.1750933270-1.el8Fixed 2025-07-01RHSA-2025:10118
OCP-Tools-4.13-RHEL-8jenkins-0:2.504.2.1750916374-3.el8Fixed 2025-07-01RHSA-2025:10119
OCP-Tools-4.13-RHEL-8jenkins-2-plugins-0:4.13.1750916671-1.el8Fixed 2025-07-01RHSA-2025:10119
OCP-Tools-4.14-RHEL-8jenkins-0:2.504.2.1750903189-3.el8Fixed 2025-07-01RHSA-2025:10120
OCP-Tools-4.14-RHEL-8jenkins-2-plugins-0:4.14.1750903529-1.el8Fixed 2025-07-01RHSA-2025:10120
OCP-Tools-4.15-RHEL-8jenkins-0:2.504.2.1750856366-3.el8Fixed 2025-07-01RHSA-2025:10104
OCP-Tools-4.15-RHEL-8jenkins-2-plugins-0:4.15.1750856638-1.el8Fixed 2025-07-01RHSA-2025:10104
OCP-Tools-4.16-RHEL-9jenkins-0:2.504.2.1750857144-3.el9Fixed 2025-07-01RHSA-2025:10098
OCP-Tools-4.16-RHEL-9jenkins-2-plugins-0:4.16.1750857315-1.el9Fixed 2025-07-01RHSA-2025:10098
A-MQ Clients 2spring-security-coreOut of support scope
Red Hat build of Quarkusquarkus-bomNot affected
Red Hat Data Grid 8spring-security-coreWill not fix
Red Hat Fuse 7org.apache.servicemix.bundles.spring-security-coreWill not fix
Red Hat Fuse 7spring-security-coreWill not fix
Red Hat Integration Camel K 1spring-security-coreWill not fix
Red Hat JBoss Enterprise Application Platform 7spring-security-coreNot affected
Red Hat JBoss Enterprise Application Platform 8spring-security-coreNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packspring-security-coreNot affected
Red Hat Process Automation 7spring-security-coreWill not fix
7 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-22228.

Attack patterns (CAPEC)

  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data Likelihood: Medium · Severity: Very High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-114 Authentication Abuse Severity: Medium
  • CAPEC-115 Authentication Bypass Severity: Medium
  • CAPEC-151 Identity Spoofing Likelihood: Medium · Severity: Medium
  • CAPEC-194 Fake the Source of Data Severity: Medium
  • CAPEC-593 Session Hijacking Likelihood: High · Severity: Very High
  • CAPEC-633 Token Impersonation Severity: Medium
  • CAPEC-650 Upload a Web Shell to a Web Server Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON