CVE-2023-34034 Access Control Bypass in Spring Security
Attackers can bypass security controls in Spring WebFlux applications by exploiting pattern matching mismatches in Spring Security configurations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-34034?
CVE-2023-34034 is a critical vulnerability in Spring Security, published on 19 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Using "**" as a pattern in Spring Security configuration for WebFlux creates a mismatch in pattern matching between Spring Security and Spring WebFlux, and the potential for a security bypass.
Weakness: CWE-281
Which versions are affected by CVE-2023-34034?
10 open source packages ship an affected version, including org.springframework.security:spring-security-config. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.security:spring-security-config Maven | From 5.6.0 | 5.6.12 |
org.springframework.security:spring-security-config Maven | From 5.6.0 | 5.6.12 |
org.springframework.security:spring-security-config Maven | From 5.7.0 | 5.7.10 |
org.springframework.security:spring-security-config Maven | From 5.7.0 | 5.7.10 |
org.springframework.security:spring-security-config Maven | From 5.8.0 | 5.8.5 |
org.springframework.security:spring-security-config Maven | From 5.8.0 | 5.8.5 |
4 more packages
org.springframework.security:spring-security-config Maven | From 6.0.0 | 6.0.5 |
org.springframework.security:spring-security-config Maven | From 6.0.0 | 6.0.5 |
org.springframework.security:spring-security-config Maven | From 6.1.0 | 6.1.2 |
org.springframework.security:spring-security-config Maven | From 6.1.0 | 6.1.2 |
Products include Vmware Spring Security.
How do I fix CVE-2023-34034?
Upgrade org.springframework.security:spring-security-config to a fixed version for your release line: 5.6.12, 5.7.10, 5.8.5 or 6.0.5.
Is CVE-2023-34034 being exploited?
There is no known exploitation of CVE-2023-34034 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Spring Security
- CVE-2014-3527 Authorization Bypass in Spring Security
- CVE-2026-59354 Spring Security OAuth2 Authorization Server: Insufficient validation of Dynamic Client Registration metadata
- CVE-2026-59270 Spring Security embedded UnboundID LDAP server exposes well-known administrative bind DN on all network interfaces
- CVE-2026-22732 Under Some Conditions Spring Security HTTP Headers Are not Written
- CVE-2026-47877 Spring Security Authorization Server Default Consent Page is vulnerable to Cross-Site Scripting (XSS)
Sources
Also known as GHSA-3h6f-g5f3-gc4w.