CVE-2023-38503: Directus has Incorrect Permission Checking for GraphQL Subscriptions

Published Jul 25, 2023
·
Updated

Summary

CWE-200: Exposure of Sensitive Information to an Unauthorized Actor Access to information you should not have access to when the permissions rely on $CURRENTUSER for filtering.

Details

The permission filters (i.e. usercreated IS $CURRENTUSER) are not properly checked when using GraphQL subscription resulting in unauthorized users getting event on their subscription which they should not be receiving according to the permissions. This can be any collection but out-of-the box the directususers collection is configured with such a permissions filter allowing you to get updates for other users when changes happen.

An example: graphql subscription { directususersmutated { event data { id lastaccess lastpage } } }

Patches https://github.com/directus/directus/pull/19155

Workarounds Disable GraphQL Subscriptions

References

Other sources

Directus is a real-time API and App dashboard for managing SQL database content. Starting in version 10.3.0 and prior to version 10.5.0, the permission filters (i.e. usercreated IS $CURRENTUSER) are not properly checked when using GraphQL subscription resulting in unauthorized users getting event on their subscription which they should not be receiving according to the permissions. This can be any collection but out-of-the box the directususers collection is configured with such a permissions filter allowing you to get updates for other users when changes happen. Version 10.5.0 contains a patch. As a workaround, disable GraphQL subscriptions.

Affected Software

2 affected componentsFixes available
npm/directus>=10.3<10.5.0
10.5.0
Monospace Directus Node.js>=10.3.0<10.5.0

Event History

Jul 25, 2023
CVE Published
via MITRE·10:06 PM
Data Sourced
via MITRE·10:06 PM
DescriptionSeverityWeakness
Data Sourced
11:15 PM
DescriptionWeakness
Advisory Published
11:31 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-38503?

CVE-2023-38503 is a vulnerability that allows unauthorized actors to access sensitive information in Directus, a real-time API and App dashboard for managing SQL database content.

2

What is the severity of CVE-2023-38503?

CVE-2023-38503 has a severity score of 6.5, which is considered medium.

3

How does CVE-2023-38503 impact Directus?

CVE-2023-38503 affects Directus by exposing sensitive information to unauthorized actors.

4

What is the Common Weakness Enumeration (CWE) associated with CVE-2023-38503?

CVE-2023-38503 is associated with CWE-200 and CWE-863.

5

How can I fix CVE-2023-38503?

To fix CVE-2023-38503, it is recommended to update Directus to version 10.5.0 or apply the necessary patches provided by the vendor.

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