CVE-2023-34047: Spring Framework Spring For GraphQL May Be Vulnerability

LOW
Advisory Identifier: GHSA-frqc-f2h8-fjvf
CVSS 3.1
Published
Advisory Summary

CVE-2023-34047 is a LOW (CVSS 3.1) spring for graphql may be vulnerability (General Security Weakness) affecting Spring Framework libraries in the Maven ecosystem. The issue involves spring for graphql may be exposed to graphql context with values from a different session. Remediation is available by upgrading affected packages to version 1.1.6, 1.2.3.

CVE-2023-34047 at a Glance

CVE Identifier CVE-2023-34047
GHSA Identifier GHSA-frqc-f2h8-fjvf
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification General Security Weakness
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 3.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-34047

To remediate this vulnerability, upgrade all affected Spring Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.springframework.graphql:spring-graphql fixed: 1.1.6
<dependency>
    <groupId>org.springframework.graphql</groupId>
    <artifactId>spring-graphql</artifactId>
    <version>1.1.6</version>
</dependency>
org.springframework.graphql:spring-graphql fixed: 1.2.3
<dependency>
    <groupId>org.springframework.graphql</groupId>
    <artifactId>spring-graphql</artifactId>
    <version>1.2.3</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.springframework.graphql

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-34047, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.springframework.graphql

Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.6), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.springframework.graphql command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Spring Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A batch loader function in Spring for GraphQL versions 1.1.0 - 1.1.5 and 1.2.0 - 1.2.2 may be exposed to GraphQL context with values, including security context values, from a different session. An application is vulnerable if it provides a DataLoaderOptions instance when registering batch loader functions through DefaultBatchLoaderRegistry.

CVE-2023-34047 Affected Spring Framework Versions

2 component(s)
Fixed Versions:
1.1.61.2.3
Product / Package Ecosystem Affected Versions Fixed Version
org.springframework.graphql:spring-graphql
Maven
≥ 1.1.0
< 1.1.6
1.1.6
org.springframework.graphql:spring-graphql
Maven
≥ 1.2.0
< 1.2.3
1.2.3

References

Frequently Asked Questions

What is CVE-2023-34047?
CVE-2023-34047 is a security vulnerability in Spring Framework involving Spring for GraphQL may be exposed to GraphQL context with values from a different session under General Security Weakness.
Which Spring Framework versions are affected?
Affected versions include releases prior to 1.1.6, 1.2.3 across affected packages: org.springframework.graphql:spring-graphql.
What version fixes CVE-2023-34047?
Upgrading to 1.1.6, 1.2.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-graphql affected?
Yes, org.springframework.graphql:spring-graphql is affected in releases prior to 1.1.6, 1.2.3. Upgrade your dependency to 1.1.6, 1.2.3 or later.
What is the CVSS score of CVE-2023-34047?
CVE-2023-34047 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2023-34047?
CVE-2023-34047 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2023-34047?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework.graphql'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-frqc-f2h8-fjvf",
  "modified" : "2023-09-21T16:59:16Z",
  "published" : "2023-09-20T12:30:22Z",
  "aliases" : [ "CVE-2023-34047" ],
  "summary" : "Spring for GraphQL may be exposed to GraphQL context with values from a different session",
  "details" : "A batch loader function in Spring for GraphQL versions 1.1.0 - 1.1.5 and 1.2.0 - 1.2.2 may be exposed to GraphQL context with values, including security context values, from a different session. An application is vulnerable if it provides a DataLoaderOptions instance when registering batch loader functions through DefaultBatchLoaderRegistry.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.graphql:spring-graphql"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.0"
      }, {
        "fixed" : "1.1.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.graphql:spring-graphql"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.2.0"
      }, {
        "fixed" : "1.2.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-34047"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spring-projects/spring-graphql"
  }, {
    "type" : "WEB",
    "url" : "https://spring.io/security/cve-2023-34047"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-21T16:59:16Z",
    "nvd_published_at" : "2023-09-20T10:15:14Z"
  }
}