cve.bz

CVE-2025-22223 spring spring security: Authentication Bypass by Spoofing

5.3 mediumEPSS 0.5%Fix available

Medium (5.3) in spring spring security. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in org.springframework.security:spring-security-core 6.4.4.

On this page
Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods. This may cause an authorization bypass.  You are not affected if you are not using @EnableMethodSecurity, or you do not have method security annotations on parameterized types or methods, or all method security annotations are attached to target methods

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 44th 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: yes · Technical impact: partial, assessed 2025-03-24. 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-290 Authentication Bypass by Spoofing
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

  • org.springframework.security:spring-security-core (Maven): fixed in 6.4.4

Ask an AI about this CVE

Show the promptExplain CVE-2025-22223 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-22223?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-22223?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-22223 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 Security6.4.0-6.4.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hh3m-g4qj-4835Mavenorg.springframework.security:spring-security-core>=6.4.0 <6.4.46.4.4

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue does not affect you if you are not using @EnableMethodSecurity, do not have method security annotations on parameterized types or methods, or if all method security annotations are attached to target methods.

ProductPackageStateAdvisory
A-MQ Clients 2spring-security-coreNot affected
OpenShift Developer Tools and ServicesjenkinsNot affected
Red Hat build of Apache Camel for Spring Boot 4spring-security-coreNot affected
Red Hat build of Quarkusquarkus-bomNot affected
Red Hat Data Grid 8spring-security-coreNot affected
Red Hat Fuse 7org.apache.servicemix.bundles.spring-security-coreOut of support scope
Red Hat Fuse 7spring-security-coreOut of support scope
Red Hat Integration Camel K 1spring-security-coreOut of support scope
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-coreNot affected
Red Hat Single Sign-On 7spring-security-coreNot affected
streams for Apache Kafkaspring-security-coreNot affected

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-22223.

Attack patterns (CAPEC)

  • CAPEC-21 Exploitation of Trusted Identifiers Likelihood: High · Severity: High
  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High
  • CAPEC-60 Reusing Session IDs (aka Session Replay) Likelihood: High · Severity: High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-461 Web Services API Signature Forgery Leveraging Hash Function Extension Weakness Severity: High
  • CAPEC-473 Signature Spoof
  • CAPEC-476 Signature Spoofing by Misrepresentation Likelihood: Low · Severity: High
  • CAPEC-667 Bluetooth Impersonation AttackS (BIAS) Likelihood: Medium · Severity: High

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

References

Check your stackJSON