CVE-2024-46990: Directus Directus Vulnerable To SSRF Loopback Vulnerability

MODERATE
Advisory Identifier: GHSA-68g8-c275-xf2m
CVSS 5.0
CWE-284 CWE-918
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-46990
GHSA Identifier GHSA-68g8-c275-xf2m
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-284: Improper Access Control
Affected Product Directus
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

directus fixed: 10.13.3
npm install directus@10.13.3
directus fixed: 11.1.0
npm install directus@11.1.0
@directus/api fixed: 21.0.0
npm install @directus/api@21.0.0
@directus/api fixed: 22.1.1
npm install @directus/api@22.1.1
Verify Direct and Transitive Dependencies

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

### Impact If 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`) ### Workaround You 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`.

CVE-2024-46990 Affected Directus Versions

4 component(s)
Fixed Versions:
10.13.311.1.021.0.022.1.1
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?
CVE-2024-46990 is a security vulnerability in Directus involving Directus vulnerable to SSRF Loopback IP filter bypass under CWE-284: Improper Access Control.
Which Directus versions are affected?
Affected versions include releases prior to 10.13.3, 11.1.0, 21.0.0, 22.1.1 across affected packages: directus, @directus/api.
What version fixes CVE-2024-46990?
Upgrading to 10.13.3, 11.1.0, 21.0.0, 22.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is directus affected?
Yes, directus is affected in releases prior to 10.13.3, 11.1.0. Upgrade your dependency to 10.13.3, 11.1.0 or later.
Is @directus/api affected?
Yes, @directus/api is affected in releases prior to 21.0.0, 22.1.1. Upgrade your dependency to 21.0.0, 22.1.1 or later.
What is the CVSS score of CVE-2024-46990?
CVE-2024-46990 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2024-46990?
CVE-2024-46990 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check npm dependencies for CVE-2024-46990?
Run the dependency tree command: 'npm ls directus'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}