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

Medium 5.7 Published Updated

Unauthorized users can receive real-time updates for restricted data via GraphQL subscriptions due to improper permission checks.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-38503?

CVE-2023-38503 is a medium-severity missing authorization vulnerability in Monospace Directus, published on 25 Jul 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

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. `user_created IS $CURRENT_USER`) 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 `directus_users` 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.

Weakness: CWE-863, CWE-200

Which versions are affected by CVE-2023-38503?

2 open source packages ship an affected version, including directus. It affects 1 product.

PackageAffectedFixed in
directus npmFrom 10.3.010.5.0
directus npmFrom 10.3.010.5.0

Products include Monospace Directus.

How do I fix CVE-2023-38503?

Upgrade directus to 10.5.0 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2023-38503 being exploited?

There is no known exploitation of CVE-2023-38503 in the wild and no public exploit code.

All Monospace Directus vulnerabilities

Sources

Also known as GHSA-gggm-66rh-pp98.

Is CVE-2023-38503 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free