CVE-2023-6394: Quarkus: graphql operations over websockets bypass

Published Nov 30, 2023
·
Updated

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.

Other sources

I've tried it and when I have the /graphql endpoint secured, then calling it over a websocket is possible without providing an auth header, because the websocket handler is placed before the authorization checks.

It seems to be exploitable only when you don't specify any role-based permissions (@RolesAllowed) on the GraphQL operation, because if you do, then Quarkus attempts to check the role of the user, which fails with a NullPointerException (because the security identity is null and Quarkus tries to check whether it has a role). When the policy says just that the user has to be authenticated, the request goes through. If there's any checking of the user metadata, the request fails with NPE. But all in all, it looks pretty bad to me, because websockets are always enabled (maybe we should also add an option to disable them)

— Red Hat

Affected Software

5 affected componentsFixes available
redhat/quarkus<3.6.0
3.6.0
maven/io.quarkus:quarkus-smallrye-graphql-client<2.13.9.Final
2.13.9.Final
maven/io.quarkus:quarkus-smallrye-graphql-client>=2.14.0<3.5.3
3.5.3
Quarkus Quarkus<3.6.0
redhat Build Of Quarkus

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/io.quarkus:quarkus-smallrye-graphql-client to a version that resolves this vulnerability.

    Fixed in 2.13.9.Final
  2. Upgrade

    Upgrade maven/io.quarkus:quarkus-smallrye-graphql-client to a version that resolves this vulnerability.

    Fixed in 3.5.3
  3. Upgrade

    Upgrade redhat/quarkus to a version that resolves this vulnerability.

    Fixed in 3.6.0

Event History

Nov 30, 2023
Data Sourced
04:07 AM
DescriptionSeverityAffected Software
Dec 9, 2023
CVE Published
via MITRE·01:26 AM
Data Sourced
01:26 AM
Weakness
Data Sourced
via OSV·01:26 AM
DescriptionSeverityWeakness
Advisory Published
03:30 AM
Dec 12, 2023
Advisory Published
12:50 AM
Updated
10:35 PM
SeverityWeakness
Dec 13, 2023
Updated
12:34 AM
Weakness
Updated
07:27 AM
Weakness
Updated
08:15 AM
WeaknessAffected Software
Updated
08:15 AM
Affected Software
Updated
08:15 AM
SeverityWeakness
Dec 20, 2023
Updated
09:15 PM
Affected Software
Jan 3, 2024
Data Sourced
via Red Hat·10:20 AM
DescriptionSeverityAffected Software
Jan 23, 2024
Data Sourced
via MITRE·02:03 AM
DescriptionSeverityWeakness
Aug 2, 2024
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeaknessAffected Software
Updated
via NVD·01:15 PM
Affected Software
Data Sourced
via GitHub·03:31 PM
DescriptionSeverityWeaknessAffected Software
Updated
via GitHub·03:31 PM
Affected Software
Feb 25, 2026
Updated
via NVD·07:29 PM
WeaknessAffected Software
Updated
via MITRE·07:39 PM
Weakness
Mar 24, 2026
Updated
via MITRE·11:28 AM
Weakness
Updated
via NVD·12:16 PM
Weakness
Nov 26, 2026
Updated
via NVD·07:17 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-6394?

CVE-2023-6394 has been classified as a high-severity vulnerability due to its potential to allow unauthorized access.

2

How do I fix CVE-2023-6394?

To fix CVE-2023-6394, upgrade to Quarkus version 3.6.0 or later, or use specific patched versions for the affected GraphQL client dependencies.

3

What types of applications are affected by CVE-2023-6394?

Applications using Quarkus with GraphQL operations lacking role-based permission specifications are vulnerable to CVE-2023-6394.

4

Can CVE-2023-6394 be exploited remotely?

Yes, CVE-2023-6394 can be exploited remotely since it involves receiving unauthenticated requests over a websocket.

5

What is the impact of CVE-2023-6394 on data security?

The impact of CVE-2023-6394 can lead to unauthorized access to sensitive information due to the lack of proper authentication.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203