Skip to main content

CVE-2022-31692 — Vulnerability in spring-security-core — CVE Details

CRITICAL

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

Published November 1, 2022Updated February 17, 2024Source: OSV

What Should I Do?

Address in Next Maintenance Window

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

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

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

Spring Security, versions 5.7 prior to 5.7.5 and 5.6 prior to 5.6.9 could be susceptible to authorization rules bypass via forward or include dispatcher types. Specifically, an application is vulnerable when all of the following are true: The application expects that Spring Security applies security to forward and include dispatcher types. The application uses the AuthorizationFilter either manually or via the authorizeHttpRequests() method. The application configures the FilterChainProxy to apply to forward and/or include requests (e.g. spring.security.filter.dispatcher-types = request, error, async, forward, include). The application may forward or include the request to a higher privilege-secured endpoint.The application configures Spring Security to apply to every dispatcher type via authorizeHttpRequests().shouldFilterAllDispatcherTypes(true)

Advisory Timeline

  • First published November 1, 2022 (1486 days ago).
  • Last revised February 17, 2024 — 473 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.springframework.security:spring-security-core to 5.6.9 or later
<!-- Update pom.xml dependency version to 5.6.9 for org.springframework.security:spring-security-core -->
Maven
Update org.springframework.security:spring-security-core to 5.7.5 or later
<!-- Update pom.xml dependency version to 5.7.5 for org.springframework.security:spring-security-core -->

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

Affected Packages (2)

Affects 1 ecosystem: Maven (1).

PackageFixed In
org.springframework.security:spring-security-core Maven · Affected: 5.6.0, 5.6.1, 5.6.2, 5.6.3 (+5 more)5.6.9
org.springframework.security:spring-security-core Maven · Affected: 5.7.0, 5.7.1, 5.7.2, 5.7.3 (+1 more)5.7.5

Vulnerability Classification

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

  • CWE-863
    Incorrect AuthorizationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 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
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2022-31692?
Spring Security authorization rules can be bypassed via forward or include dispatcher types. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2022-31692?
CVE-2022-31692 affects org.springframework.security:spring-security-core. It has a 2.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-31692 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

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

EPSS Score (30-day exploit probability)
2.73%
EPSS percentile: 86.8

This places it in the top quartile of EPSS-scored vulnerabilities — 86.8% 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-mmmh-wcxm-2wr4

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml