CVE-2023-20860 — Vulnerability in org.springframework:spring
Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (3.20%). Schedule for your next planned update.
Does your project use an affected org.springframework:spring version?
Paste your pom.xml to check it for CVE-2023-20860 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
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 (1339 days ago).
- Last revised September 23, 2025 — 911 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 6.0.7 for org.springframework:spring -->
<!-- Update pom.xml dependency version to 6.0.7 for org.springframework:spring-webmvc -->
<!-- Update pom.xml dependency version to 5.3.26 for org.springframework:spring-webmvc -->
<!-- Update pom.xml dependency version to 5.3.26 for org.springframework:spring -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: Maven (2).
| Package | Fixed In |
|---|---|
| org.springframework:spring Maven · Affected: All versions | 6.0.7 |
| org.springframework:spring-webmvc Maven · Affected: 6.0.0, 6.0.1, 6.0.2, 6.0.3 (+3 more) | 6.0.7 |
| org.springframework:spring-webmvc Maven · Affected: 5.3.0, 5.3.1, 5.3.10, 5.3.11 (+22 more) | 5.3.26 |
| org.springframework:spring Maven · Affected: 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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-20860ADVISORY
- https://github.com/spring-projects/spring-framework/commit/202fa5cdb3a3d0cfe6967e85fa167d978244f28aWEB
- https://github.com/spring-projects/spring-frameworkPACKAGE
- https://security.netapp.com/advisory/ntap-20230505-0006WEB
- https://spring.io/security/cve-2023-20860WEB
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. It has a 3.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-20860 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 88.9% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2022-22965CRITICAL
Remote Code Execution in Spring Framework
- CVE-2025-41232CRITICAL
Spring Security authorization bypass for method security annotations on private methods
- CVE-2026-47890CRITICAL
Spring Framework Server Sent Event stream corruption while rendering fragments
- CVE-2026-47884CRITICAL
Spring Framework Improper Path Limitation in XsltView
- CVE-2026-47835HIGH
Spring AI vector store metadata filtering to handle special characters in Elasticsearch, OpenSearch, and GemFire Vector Stores
- CVE-2026-41712HIGH
Spring AI: ChatMemory DEFAULT_CONVERSATION_ID causes unintended cross-user data leakage
- CVE-2026-41842HIGH
Spring Framework Denial of Service via Versioned Resources in Spring MVC and WebFlux
- CVE-2021-22096MEDIUM
Improper Output Neutralization for Logs in Spring Framework