Directus Incorrectly handles _in` filter
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-39701
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:19 UTC · Revision 1
Source evidence
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.
osv:CVE-2024-39701
Complete source record
{
"id": "80d7ca195bb176ed475932fdfd7c4da4b12dd44e5c81a378d806416dac9ab280",
"url": "https://osv.dev/vulnerability/CVE-2024-39701",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Directus Incorrectly handles _in` filter",
"summary": "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.",
"evidence": "osv:CVE-2024-39701",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-39701",
"aliases": [
"CVE-2024-39701",
"GHSA-hxgm-ghmv-xjjm"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/directus/directus",
"type": "GIT",
"events": [
{
"introduced": "47b9824954fd6538406d1ae754ec99f4744e5cff"
},
{
"fixed": "3ec4009bb84a4db4beefb64603df9fc53d82d9e4"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "9.23.0"
},
{
"fixed": "10.6.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"cpe": "cpe:2.3:a:monospace:directus:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "9.23.0"
},
{
"fixed": "10.6.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v10.5.3",
"v10.5.2",
"v10.5.1",
"v10.5.0",
"v10.4.3",
"v10.4.2",
"v10.4.0",
"v10.3.0",
"v10.2.1",
"v10.2.0",
"v10.1.1",
"v10.1.0",
"v10.0.0",
"v9.26.0",
"v9.25.2",
"v9.25.1",
"v9.25.0",
"v9.24.0",
"v9.23.4",
"v9.23.3",
"v9.23.2",
"v9.23.1",
"v9.23.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39701.json"
}
}
],
"modified": "2026-10-28T02:30:29.712856649Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39701.json",
"https://github.com/directus/directus/security/advisories/GHSA-hxgm-ghmv-xjjm",
"https://nvd.nist.gov/vuln/detail/CVE-2024-39701"
],
"provider_metadata": {
"cwe_ids": [
"CWE-284"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39701.json"
}
},
"related_cves": [
{
"value": "CVE-2024-39701",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496763,
"published_at": "2024-07-08T16:43:01.595+00:00"
}