Advisory

GHSA-77g4-36jp-5v3m

Also known as: 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.

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.
  2. 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-09-01 15:22 UTC
Modified
2023-11-08 03:58 UTC

Affected packages and fixes

bittorrent-dht

npm · All systems

Affected

  • introduced 0, fixed 5.1.3 (semver)

Fixed versions

5.1.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences