CVE-2016-10518

NONE EPSS 78.5%
Published May 31, 20188y ago · Modified Jun 17, 20262w ago
Find Similar
Published May 31, 2018 8y ago
Last Modified Jun 17, 2026 2w ago

Description

A vulnerability was found in the ping functionality of the ws module before 1.0.0 which allowed clients to allocate memory by sending a ping frame. The ping functionality by default responds with a pong frame and the previously given payload of the ping frame. This is exactly what you expect, but internally ws always transforms all data that we need to send to a Buffer instance and that is where the vulnerability existed. ws didn't do any checks for the type of data it was sending. With buffers in node when you allocate it when a number instead of a string it will allocate the amount of bytes.

Threat Intelligence

EPSS Exploit Probability
78.5% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 2

CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer Memory Safety
CWE-201

Affected Products 1

VendorProductVersionRange
ws_projectws* <1.0.1

References 3

  • gist.github.com https://gist.github.com/c0nrad/e92005446c480707a74a
    PatchThird Party Advisory
  • github.com https://github.com/websockets/ws/releases/tag/1.0.1
    Release NotesThird Party Advisory
  • nodesecurity.io https://nodesecurity.io/advisories/67
    Third Party Advisory

Remediation

  • gist.github.com https://gist.github.com/c0nrad/e92005446c480707a74a
    PatchThird Party Advisory