CVE-2016-10519:
Remote Memory Disclosure in bittorrent-dht
5
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54157%
CWE
Published
9/1/2020
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
bittorrent-dht | npm | < 5.1.3 | 5.1.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of node IDs in two key functions:
- _addNode processes incoming node information without validating the nodeId type, allowing invalid inputs to reach Buffer creation
- idToBuffer previously created Buffers from any input type using 'new Buffer(id, 'hex')', which when given non-string/non-Buffer inputs (like numbers/objects) would read from arbitrary memory addresses. The patches add type checks and null returns to prevent this. These functions would appear in stack traces when processing malicious messages due to their role in node ID validation and Buffer allocation.