Skip to main content

CVE-2023-34034 — Access Control Bypass in spring-security-config

CRITICAL

Access Control Bypass in Spring Security

Published July 19, 2023Updated October 28, 2024Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (3.11%). Schedule for your next planned update.

Does your project use an affected org.springframework.security:spring-security-config version?

Paste your pom.xml to check it for CVE-2023-34034 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.

Check my pom.xml

Summary

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.

Advisory Timeline

  • First published July 19, 2023 (1226 days ago).
  • Last revised October 28, 2024 — 467 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.springframework.security:spring-security-config to 5.7.10 or later
<!-- Update pom.xml dependency version to 5.7.10 for org.springframework.security:spring-security-config -->
Maven
Update org.springframework.security:spring-security-config to 6.0.5 or later
<!-- Update pom.xml dependency version to 6.0.5 for org.springframework.security:spring-security-config -->
Maven
Update org.springframework.security:spring-security-config to 5.8.5 or later
<!-- Update pom.xml dependency version to 5.8.5 for org.springframework.security:spring-security-config -->
Maven
Update org.springframework.security:spring-security-config to 6.1.2 or later
<!-- Update pom.xml dependency version to 6.1.2 for org.springframework.security:spring-security-config -->
Maven
Update org.springframework.security:spring-security-config to 5.6.12 or later
<!-- Update pom.xml dependency version to 5.6.12 for org.springframework.security:spring-security-config -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 1 ecosystem: Maven (1).

PackageFixed In
org.springframework.security:spring-security-config Maven · Affected: 5.7.0, 5.7.1, 5.7.2, 5.7.3 (+6 more)5.7.10
org.springframework.security:spring-security-config Maven · Affected: 6.0.0, 6.0.1, 6.0.2, 6.0.3 (+1 more)6.0.5
org.springframework.security:spring-security-config Maven · Affected: 5.8.0, 5.8.1, 5.8.2, 5.8.3 (+1 more)5.8.5
org.springframework.security:spring-security-config Maven · Affected: 6.1.0, 6.1.16.1.2
org.springframework.security:spring-security-config Maven · Affected: 5.6.0, 5.6.1, 5.6.10, 5.6.11 (+8 more)5.6.12

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

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-34034?
Access Control Bypass in Spring Security. 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-34034?
CVE-2023-34034 affects org.springframework.security:spring-security-config. It has a 3.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-34034 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
3.11%
EPSS percentile: 88.5

This places it in the top quartile of EPSS-scored vulnerabilities — 88.5% 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

GHSA-3h6f-g5f3-gc4w

Related CVEs

  • CVE-2025-41232
    CRITICAL

    Spring Security authorization bypass for method security annotations on private methods

  • CVE-2024-38821
    CRITICAL

    Spring Security vulnerable to Authorization Bypass of Static Resources in WebFlux Applications

  • CVE-2022-22978
    CRITICAL

    Authorization bypass in Spring Security

  • CVE-2026-22732
    CRITICAL

    Spring Security HTTP Headers Are not Written Under Some Conditions

  • CVE-2022-31692
    CRITICAL

    Spring Security authorization rules can be bypassed via forward or include dispatcher types

  • CVE-2018-1260
    CRITICAL

    Spring Security OAuth vulnerable to remote code execution (RCE)

  • CVE-2026-41003
    HIGH

    Spring Security SAML2 Service Provider: RelyingPartyRegistration may run arbitrary code on HTML forms generated by Spring Security filters

  • CVE-2026-40988
    HIGH

    Spring Security SAML2 Service Provider: Unbounded writer inflates the compressed SAML payload into memory (DoS)

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml