CVE-2023-34034 Access Control Bypass in Spring Security

Critical 9.1 Published Updated

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.

PackageAffectedFixed in
org.springframework.security:spring-security-config MavenFrom 5.6.05.6.12
org.springframework.security:spring-security-config MavenFrom 5.6.05.6.12
org.springframework.security:spring-security-config MavenFrom 5.7.05.7.10
org.springframework.security:spring-security-config MavenFrom 5.7.05.7.10
org.springframework.security:spring-security-config MavenFrom 5.8.05.8.5
org.springframework.security:spring-security-config MavenFrom 5.8.05.8.5
4 more packages
org.springframework.security:spring-security-config MavenFrom 6.0.06.0.5
org.springframework.security:spring-security-config MavenFrom 6.0.06.0.5
org.springframework.security:spring-security-config MavenFrom 6.1.06.1.2
org.springframework.security:spring-security-config MavenFrom 6.1.06.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.

Sources

Also known as GHSA-3h6f-g5f3-gc4w.

Is CVE-2023-34034 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free