Vulnerabilities in pkg:maven/io.quarkus/quarkus-smallrye-graphql-client

PACKAGE
Advisory Identifier: GHSA-mvc8-6ffp-jrx5
Advisory Summary

CVE-2023-6394 is a HIGH (CVSS 7.4) authorization bypass vulnerability (CWE-862: Missing Authorization) affecting Quarkus smallrye graphql client libraries in the Maven ecosystem. The issue involves authorization bypass in quarkus. Remediation is available by upgrading affected packages to version 3.5.3, 2.13.9.Final.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/io.quarkus/quarkus-smallrye-graphql-client

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/io.quarkus/quarkus-smallrye-graphql-client. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mvc8-6ffp-jrx5 CVE-2023-6394 HIGH Authorization bypass in Quarkus

CVE-2023-6394 at a Glance

CVE Identifier CVE-2023-6394
GHSA Identifier GHSA-mvc8-6ffp-jrx5
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-862: Missing Authorization
Affected Product Quarkus smallrye graphql client
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.4

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:N/S:U/C:H/I:H/A:N).

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

How to Fix CVE-2023-6394

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

io.quarkus:quarkus-smallrye-graphql-client fixed: 3.5.3
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-smallrye-graphql-client</artifactId>
    <version>3.5.3</version>
</dependency>
io.quarkus:quarkus-smallrye-graphql-client fixed: 2.13.9.Final
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-smallrye-graphql-client</artifactId>
    <version>2.13.9.Final</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=io.quarkus

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=io.quarkus

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

Note: The mvn dependency:tree -Dincludes=io.quarkus 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 CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Quarkus smallrye graphql client, 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 flaw was found in Quarkus. This issue occurs when receiving a request over websocket with no role-based permission specified on the GraphQL operation, Quarkus processes the request without authentication despite the endpoint being secured. This can allow an attacker to access information and functionality outside of normal granted API permissions.

CVE-2023-6394 Affected Quarkus smallrye graphql client Versions

2 component(s)
Fixed Versions:
3.5.32.13.9.Final
Product / Package Ecosystem Affected Versions Fixed Version
io.quarkus:quarkus-smallrye-graphql-client
Maven
≥ 2.14.0
< 3.5.3
3.5.3
io.quarkus:quarkus-smallrye-graphql-client
Maven
< 2.13.9.Final
2.13.9.Final

References

Frequently Asked Questions

What is CVE-2023-6394?
CVE-2023-6394 is a security vulnerability in Quarkus smallrye graphql client involving Authorization bypass in Quarkus under CWE-862: Missing Authorization.
Which Quarkus smallrye graphql client versions are affected?
Affected versions include releases prior to 3.5.3, 2.13.9.Final across affected packages: io.quarkus:quarkus-smallrye-graphql-client.
What version fixes CVE-2023-6394?
Upgrading to 3.5.3, 2.13.9.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is quarkus-smallrye-graphql-client affected?
Yes, io.quarkus:quarkus-smallrye-graphql-client is affected in releases prior to 3.5.3, 2.13.9.Final. Upgrade your dependency to 3.5.3, 2.13.9.Final or later.
What is the CVSS score of CVE-2023-6394?
CVE-2023-6394 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-6394?
CVE-2023-6394 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2023-6394?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.quarkus'. 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-mvc8-6ffp-jrx5",
  "modified" : "2024-08-02T15:31:16Z",
  "published" : "2023-12-09T03:30:15Z",
  "aliases" : [ "CVE-2023-6394" ],
  "summary" : "Authorization bypass in Quarkus",
  "details" : "A flaw was found in Quarkus. This issue occurs when receiving a request over websocket with no role-based permission specified on the GraphQL operation, Quarkus processes the request without authentication despite the endpoint being secured. This can allow an attacker to access information and functionality outside of normal granted API permissions.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-smallrye-graphql-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.14.0"
      }, {
        "fixed" : "3.5.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.quarkus:quarkus-smallrye-graphql-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.13.9.Final"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-6394"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/pull/36961"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7612"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7700"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2023-6394"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2252197"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/quarkusio/quarkus"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/releases/tag/2.13.9.Final"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quarkusio/quarkus/releases/tag/3.5.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-551", "CWE-696", "CWE-862" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-12T00:50:32Z",
    "nvd_published_at" : "2023-12-09T02:15:06Z"
  }
}