Vulnerability · Published Jul 8, 2024 · Assigned by GitHub_M

CVE-2024-39701Directus Incorrectly handles _in` filter

Medium 6.3

In plain English

A medium-severity improper access control in directus from directus. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)0.4%top 63.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Directus is a real-time API and App dashboard for managing SQL database content. Directus >=9.23.0, <=v10.5.3 improperly handles _in, _nin operators. It evaluates empty arrays as valid so expressions like {"role": {"_in": $CURRENT_USER.some_field}} would evaluate to true allowing the request to pass. This results in Broken Access Control because the rule fails to do what it was intended to do: Pass rule if **field** matches any of the **values**. This vulnerability is fixed in 10.6.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmdirectus10.6.0GHSA-hxgm-ghmv-xjjm

Affected products (as reported)

VendorProductVersions
directus directus >= 9.23.0, < 10.6.0

Weakness: CWE-284 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N

References