CVE-2024-46990: Directus Directus Vulnerable To SSRF Loopback Vulnerability
MODERATECVE-2024-46990 is a MODERATE (CVSS 5.0) directus vulnerable to ssrf loopback vulnerability (CWE-284: Improper Access Control) affecting Directus libraries in the npm ecosystem. The issue involves directus vulnerable to ssrf loopback ip filter bypass. Remediation is available by upgrading affected packages to version 10.13.3, 11.1.0, 21.0.0, 22.1.1.
CVE-2024-46990 at a Glance
Security Impact
CVSS: 5.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N).
How to Fix CVE-2024-46990
To remediate this vulnerability, upgrade all affected Directus dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install directus@10.13.3
npm install directus@11.1.0
npm install @directus/api@21.0.0
npm install @directus/api@22.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls directus
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-46990, inspect your project dependencies using npm:
npm ls directus
Analyze the terminal output to locate any version of Directus in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.13.3), your application is affected.
Note: The npm ls directus command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Directus, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-46990 Affected Directus Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
directus
|
npm |
< 10.13.3
|
10.13.3
|
|
directus
|
npm |
≥ 11.0.0
< 11.1.0
|
11.1.0
|
|
@directus/api
|
npm |
< 21.0.0
|
21.0.0
|
|
@directus/api
|
npm |
≥ 22.0.0
< 22.1.1
|
22.1.1
|
References
Frequently Asked Questions
What is CVE-2024-46990?
Which Directus versions are affected?
What version fixes CVE-2024-46990?
Is directus affected?
Is @directus/api affected?
What is the CVSS score of CVE-2024-46990?
What CWE is associated with CVE-2024-46990?
How can I check npm dependencies for CVE-2024-46990?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-68g8-c275-xf2m",
"modified" : "2024-09-18T19:25:25Z",
"published" : "2024-09-18T17:42:05Z",
"aliases" : [ "CVE-2024-46990" ],
"summary" : "Directus vulnerable to SSRF Loopback IP filter bypass",
"details" : "### Impact\nIf you're relying on blocking access to localhost using the default `0.0.0.0` filter this can be bypassed using other registered loopback devices (like `127.0.0.2` - `127.127.127.127`)\n\n### Workaround\nYou can block this bypass by manually adding the `127.0.0.0/8` CIDR range which will block access to any `127.X.X.X` ip instead of just `127.0.0.1`.\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "directus"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "10.13.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "directus"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0"
}, {
"fixed" : "11.1.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@directus/api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "21.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@directus/api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "22.0.0"
}, {
"fixed" : "22.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/directus/directus/security/advisories/GHSA-68g8-c275-xf2m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-46990"
}, {
"type" : "WEB",
"url" : "https://github.com/directus/directus/commit/4aace0bbe57232e38cd6a287ee475293e46dc91b"
}, {
"type" : "WEB",
"url" : "https://github.com/directus/directus/commit/769fa22797bff5a9231599883b391e013f122e52"
}, {
"type" : "WEB",
"url" : "https://github.com/directus/directus/commit/8cbf943b65fd4a763d09a5fdbba8996b1e7797ff"
}, {
"type" : "WEB",
"url" : "https://github.com/directus/directus/commit/c1f3ccc681595038d094ce110ddeee38cb38f431"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/directus/directus"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284", "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-18T17:42:05Z",
"nvd_published_at" : "2024-09-18T17:15:19Z"
}
}