Critical

Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch

  • Disclosed: 28.03.2023
  • Updated: 11.10.2026 12:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.springframework:spring >= 6.0.0, < 6.0.7, >= 5.3.0, < 5.3.26 6.0.7, 5.3.26
Java / Kotlin (Maven) org.springframework:spring-webmvc >= 6.0.0, < 6.0.7, >= 5.3.0, < 5.3.26 6.0.7, 5.3.26

References

CVSS score 9.1/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness (CWE)
-
Platform
Java / Kotlin (Maven)
Package
org.springframework:spring, org.springframework:spring-webmvc
Disclosed
28.03.2023
Updated
11.10.2026 12:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-7phw-cxx7-q9vq - CC BY 4.0

Vulnerability history: org.springframework:spring

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
05.2022 03.2023
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • Medium 2

Disclosures per year

  1. 2022: 2
  2. 2023: 1
  3. 2024: 0
  4. 2025: 0
  5. 2026: 0
  1. Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch this entry
    Critical · 9.1 CVE-2023-20860 >= 6.0.0, < 6.0.7, >= 5.3.0, < 5.3.26 6.0.7, 5.3.26
  2. Medium · 4.3 CVE-2021-22096 >= 5.2.0, < 5.2.18, >= 5.3.0, < 5.3.11 5.2.18, 5.3.11
  3. Medium CVE-2010-1622 >= 2.5.0, < 2.5.7, >= 3.0.0, < 3.0.3 2.5.7, 3.0.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.