CVE-2016-10519: Bittorrent dht Remote Memory Disclosure Vulnerability
MODERATECVE-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
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.
npm install bittorrent-dht@5.1.3
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
CVE-2016-10519 Affected Bittorrent dht Versions
1 component(s)| 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?
Which Bittorrent dht versions are affected?
What version fixes CVE-2016-10519?
Is bittorrent-dht affected?
What CWE is associated with CVE-2016-10519?
How can I check npm dependencies for CVE-2016-10519?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}