Loading...
Skip to main content

CVE-2023-20860 — Vulnerability in org.springframework:spring — CVE...

CRITICAL

Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch

Published March 28, 2023Updated September 23, 2025Source: osv

Summary

Spring Framework running version 6.0.0 - 6.0.6 or 5.3.0 - 5.3.25 using "**" as a pattern in Spring Security configuration with the mvcRequestMatcher creates a mismatch in pattern matching between Spring Security and Spring MVC, and the potential for a security bypass.

Advisory Timeline

  • First published March 28, 2023 (1294 days ago).
  • Last revised September 23, 2025 — 911 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.springframework:spring to 6.0.7 or later
<!-- Update pom.xml dependency version to 6.0.7 for org.springframework:spring -->
Maven
Update org.springframework:spring-webmvc to 6.0.7 or later
<!-- Update pom.xml dependency version to 6.0.7 for org.springframework:spring-webmvc -->
Maven
Update org.springframework:spring-webmvc to 5.3.26 or later
<!-- Update pom.xml dependency version to 5.3.26 for org.springframework:spring-webmvc -->
Maven
Update org.springframework:spring to 5.3.26 or later
<!-- Update pom.xml dependency version to 5.3.26 for org.springframework:spring -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: Maven (2).

PackageEcosystemAffectedFixed In
org.springframework:spring
Maven
All versions6.0.7
org.springframework:spring-webmvc
Maven
6.0.0, 6.0.1, 6.0.2, 6.0.3 (+3 more)6.0.7
org.springframework:spring-webmvc
Maven
5.3.0, 5.3.1, 5.3.10, 5.3.11 (+22 more)5.3.26
org.springframework:spring
Maven
5.3.0, 5.3.1, 5.3.10, 5.3.11 (+22 more)5.3.26

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2023-20860?
Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2023-20860?
CVE-2023-20860 affects org.springframework:spring and org.springframework:spring-webmvc. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-20860 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-7phw-cxx7-q9vq

Related CVEs

  • CVE-2022-22965
    CRITICAL

    Remote Code Execution in Spring Framework

  • CVE-2026-47890
    CRITICAL

    Spring Framework Server Sent Event stream corruption while rendering fragments

  • CVE-2026-47884
    CRITICAL

    Spring Framework Improper Path Limitation in XsltView

  • CVE-2025-41235
    HIGH

    Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies

  • CVE-2026-47835
    HIGH

    Spring AI vector store metadata filtering to handle special characters in Elasticsearch, OpenSearch, and GemFire Vector Stores

  • CVE-2026-41712
    HIGH

    Spring AI: ChatMemory DEFAULT_CONVERSATION_ID causes unintended cross-user data leakage

  • CVE-2026-41705
    HIGH

    Spring AI's MilvusVectorStore#doDelete(List) implementation is vulnerable to filter-expression injection via unsanitized document IDs

  • CVE-2026-41842
    HIGH

    Spring Framework Denial of Service via Versioned Resources in Spring MVC and WebFlux

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies