Vulnerabilities in pkg:npm/bl

PACKAGE
Advisory Identifier: GHSA-pp7h-53gx-mx7r
Advisory Summary

CVE-2020-8244 is a MODERATE (CVSS 6.5) remote memory exposure vulnerability (CWE-125: Out-of-bounds Read) affecting Bl libraries in the npm ecosystem. The issue involves remote memory exposure in bl. Remediation is available by upgrading affected packages to version 1.2.3, 2.2.1, 3.0.1, 4.0.3.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/bl

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/bl. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-pp7h-53gx-mx7r CVE-2020-8244 MODERATE Remote Memory Exposure in bl
GHSA-wrw9-m778-g6mc - MODERATE Memory Exposure in bl

CVE-2020-8244 at a Glance

CVE Identifier CVE-2020-8244
GHSA Identifier GHSA-pp7h-53gx-mx7r
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-125: Out-of-bounds Read
Affected Product Bl
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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 Low (C:L)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2020-8244

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

bl fixed: 1.2.3
npm install bl@1.2.3
bl fixed: 2.2.1
npm install bl@2.2.1
bl fixed: 3.0.1
npm install bl@3.0.1
bl fixed: 4.0.3
npm install bl@4.0.3
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 bl

How to Check if You Are Affected

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

npm ls bl

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

Note: The npm ls bl 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-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Bl, 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

A buffer over-read vulnerability exists in bl <4.0.3, <3.0.1, <2.2.1, and <1.2.3 which could allow an attacker to supply user input (even typed) that if it ends up in consume() argument and can become negative, the BufferList state can be corrupted, tricking it into exposing uninitialized memory via regular .slice() calls.

CVE-2020-8244 Affected Bl Versions

4 component(s)
Fixed Versions:
1.2.32.2.13.0.14.0.3
Product / Package Ecosystem Affected Versions Fixed Version
bl
npm
< 1.2.3
1.2.3
bl
npm
≥ 2.0.0
< 2.2.1
2.2.1
bl
npm
≥ 3.0.0
< 3.0.1
All 1 versions
3.0.0
3.0.1
bl
npm
≥ 4.0.0
< 4.0.3
4.0.3

References

Frequently Asked Questions

What is CVE-2020-8244?
CVE-2020-8244 is a security vulnerability in Bl involving Remote Memory Exposure in bl under CWE-125: Out-of-bounds Read.
Which Bl versions are affected?
Affected versions include releases prior to 1.2.3, 2.2.1, 3.0.1, 4.0.3 across affected packages: bl.
What version fixes CVE-2020-8244?
Upgrading to 1.2.3, 2.2.1, 3.0.1, 4.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is bl affected?
Yes, bl is affected in releases prior to 1.2.3, 2.2.1, 3.0.1, 4.0.3. Upgrade your dependency to 1.2.3, 2.2.1, 3.0.1, 4.0.3 or later.
What is the CVSS score of CVE-2020-8244?
CVE-2020-8244 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L.
What CWE is associated with CVE-2020-8244?
CVE-2020-8244 is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check npm dependencies for CVE-2020-8244?
Run the dependency tree command: 'npm ls bl'. 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-pp7h-53gx-mx7r",
  "modified" : "2022-05-26T20:43:51Z",
  "published" : "2020-09-02T15:26:19Z",
  "aliases" : [ "CVE-2020-8244" ],
  "summary" : "Remote Memory Exposure in bl",
  "details" : "A buffer over-read vulnerability exists in bl <4.0.3, <3.0.1, <2.2.1, and <1.2.3 which could allow an attacker to supply user input (even typed) that if it ends up in consume() argument and can become negative, the BufferList state can be corrupted, tricking it into exposing uninitialized memory via regular .slice() calls.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.1"
      } ]
    } ],
    "versions" : [ "3.0.0" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8244"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rvagg/bl/commit/8a8c13c880e2bef519133ea43e0e9b78b5d0c91e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rvagg/bl/commit/d3e240e3b8ba4048d3c76ef5fb9dd1f8872d3190"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rvagg/bl/commit/dacc4ac7d5fcd6201bcf26fbd886951be9537466"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/966347"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2021/06/msg00028.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-125", "CWE-126" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-09-02T15:26:05Z",
    "nvd_published_at" : "2020-08-30T15:15:00Z"
  }
}