CVE-2023-6394: Quarkus smallrye graphql client Authorization Bypass Vulnerability
HIGHCVE-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.
CVE-2023-6394 at a Glance
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).
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.
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-graphql-client</artifactId>
<version>3.5.3</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-graphql-client</artifactId>
<version>2.13.9.Final</version>
</dependency>
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
CVE-2023-6394 Affected Quarkus smallrye graphql client Versions
2 component(s)| 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?
Which Quarkus smallrye graphql client versions are affected?
What version fixes CVE-2023-6394?
Is quarkus-smallrye-graphql-client affected?
What is the CVSS score of CVE-2023-6394?
What CWE is associated with CVE-2023-6394?
How can I check Maven dependencies for CVE-2023-6394?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}