CVE-2016-10519: Bittorrent dht Remote Memory Disclosure Vulnerability

MODERATE
Advisory Identifier: GHSA-77g4-36jp-5v3m
CWE-201
Published
Advisory Summary

CVE-2016-10519 is a MODERATE remote memory disclosure vulnerability (CWE-201: Insertion of Sensitive Information Into Sent Data) affecting Bittorrent dht libraries in the npm ecosystem. The issue involves remote memory disclosure in bittorrent-dht. Remediation is available by upgrading affected packages to version 5.1.3.

CVE-2016-10519 at a Glance

CVE Identifier CVE-2016-10519
GHSA Identifier GHSA-77g4-36jp-5v3m
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-201: Insertion of Sensitive Information Into Sent Data
Affected Product Bittorrent dht
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2016-10519

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

bittorrent-dht fixed: 5.1.3
npm install bittorrent-dht@5.1.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 bittorrent-dht

How to Check if You Are Affected

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

npm ls bittorrent-dht

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

Note: The npm ls bittorrent-dht 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-201: Insertion of Sensitive Information Into Sent Data, where the code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor. In Bittorrent dht, 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 `bittorrent-dht` prior to 5.1.3 are affected by a remote memory disclosure vulnerability. This vulnerability allows an attacker to send a specific series of of messages to a listening peer and get it to reveal internal memory. There are two mitigating factors here, that slightly reduce the impact of this vulnerability: 1. Any modern kernel will zero out new memory pages before handing them off to a process. This means that only memory previously used and deallocated by the node process can be leaked. 1. Node.js manages Buffers by creating a few large internal SlowBuffers, and slicing them up into smaller Buffers which are made accessible in JS. They are not stored on V8's heap, because garbage collection would interfere. The result is that only memory that has been previously allocated as a Buffer can be leaked. ## Recommendation Update to version 5.1.3 or later.

CVE-2016-10519 Affected Bittorrent dht Versions

1 component(s)
Fixed Versions:
5.1.3
Product / Package Ecosystem Affected Versions Fixed Version
bittorrent-dht
npm
< 5.1.3
5.1.3

References

Frequently Asked Questions

What is CVE-2016-10519?
CVE-2016-10519 is a security vulnerability in Bittorrent dht involving Remote Memory Disclosure in bittorrent-dht under CWE-201: Insertion of Sensitive Information Into Sent Data.
Which Bittorrent dht versions are affected?
Affected versions include releases prior to 5.1.3 across affected packages: bittorrent-dht.
What version fixes CVE-2016-10519?
Upgrading to 5.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is bittorrent-dht affected?
Yes, bittorrent-dht is affected in releases prior to 5.1.3. Upgrade your dependency to 5.1.3 or later.
What CWE is associated with CVE-2016-10519?
CVE-2016-10519 is classified under CWE-201: Insertion of Sensitive Information Into Sent Data (The code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor.).
How can I check npm dependencies for CVE-2016-10519?
Run the dependency tree command: 'npm ls bittorrent-dht'. 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-77g4-36jp-5v3m",
  "modified" : "2020-08-31T18:09:58Z",
  "published" : "2020-09-01T15:22:12Z",
  "aliases" : [ "CVE-2016-10519" ],
  "summary" : "Remote Memory Disclosure in bittorrent-dht",
  "details" : "Versions of `bittorrent-dht` prior to 5.1.3 are affected by a remote memory disclosure vulnerability. This vulnerability allows an attacker to send a specific series of of messages to a listening peer and get it to reveal internal memory.\n\n\nThere are two mitigating factors here, that slightly reduce the impact of this vulnerability:\n\n1. Any modern kernel will zero out new memory pages before handing them off to a process. This means that only memory previously used and deallocated by the node process can be leaked.\n1. Node.js manages Buffers by creating a few large internal SlowBuffers, and slicing them up into smaller Buffers which are made accessible in JS. They are not stored on V8's heap, because garbage collection would interfere. The result is that only memory that has been previously allocated as a Buffer can be leaked.\n\n\n## Recommendation\n\nUpdate to version 5.1.3 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bittorrent-dht"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-10519"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/feross/bittorrent-dht/issues/87"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/68"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-201" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:09:58Z",
    "nvd_published_at" : null
  }
}