CVE-2018-3767: Memjs Denial of Service Vulnerability

CRITICAL
Advisory Identifier: GHSA-cx8m-8xmx-q8v3
CVSS 9.1
CWE-400
Published
Advisory Summary

CVE-2018-3767 is a CRITICAL (CVSS 9.1) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Memjs libraries in the npm ecosystem. The issue involves denial of service in memjs. Remediation is available in the latest vendor maintenance releases.

CVE-2018-3767 at a Glance

CVE Identifier CVE-2018-3767
GHSA Identifier GHSA-cx8m-8xmx-q8v3
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Memjs
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2018-3767

To remediate this vulnerability, upgrade all affected Memjs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

memjs fixed: Latest secure release
npm install memjs@Latest secure release
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 memjs

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2018-3767, inspect your project dependencies using npm:

npm ls memjs

Analyze the terminal output to locate any version of Memjs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls memjs 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Memjs, 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

Versions of `memjs` prior to 1.2.2 are vulnerable to Denial of Service (DoS). The package fails to sanitize the `value` option passed to the Buffer constructor, which may allow attackers to pass large values exhausting system resources. ## Recommendation Upgrade to version 1.2.2 or later.

CVE-2018-3767 Affected Memjs Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
memjs
npm
≤ 1.2.0

References

Frequently Asked Questions

What is CVE-2018-3767?
CVE-2018-3767 is a security vulnerability in Memjs involving Denial of Service in memjs under CWE-400: Uncontrolled Resource Consumption.
Which Memjs versions are affected?
Affected versions include releases prior to current release patches across affected packages: memjs.
What version fixes CVE-2018-3767?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is memjs affected?
Yes, memjs is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2018-3767?
CVE-2018-3767 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.
What CWE is associated with CVE-2018-3767?
CVE-2018-3767 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2018-3767?
Run the dependency tree command: 'npm ls memjs'. 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-cx8m-8xmx-q8v3",
  "modified" : "2023-09-12T18:51:51Z",
  "published" : "2018-10-10T17:25:12Z",
  "aliases" : [ "CVE-2018-3767" ],
  "summary" : "Denial of Service in memjs",
  "details" : "Versions of `memjs` prior to 1.2.2 are vulnerable to Denial of Service (DoS).  The package fails to sanitize the `value` option passed to the Buffer constructor, which may allow attackers to pass large values exhausting system resources.\n\n\n## Recommendation\n\nUpgrade to version 1.2.2 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "memjs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-3767"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/319809"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-cx8m-8xmx-q8v3"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/970"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:33:11Z",
    "nvd_published_at" : null
  }
}