Vulnerability Details : CVE-2016-10518
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.
Vulnerability category: Overflow
Exploit prediction scoring system (EPSS) score for CVE-2016-10518
Probability of exploitation activity in the next 30 days: 0.15%
Percentile, the proportion of vulnerabilities that are scored at or less: ~ 52 % EPSS Score History EPSS FAQ
CVSS scores for CVE-2016-10518
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source |
---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST |
7.5
|
HIGH | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2016-10518
-
The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.Assigned by: nvd@nist.gov (Primary)
-
The code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor.Assigned by: support@hackerone.com (Secondary)
References for CVE-2016-10518
-
https://gist.github.com/c0nrad/e92005446c480707a74a
Incorrect advisory https://nodesecurity.io/advisories/67 · GitHubPatch;Third Party Advisory
-
https://github.com/websockets/ws/releases/tag/1.0.1
Release Buffer vulnerability · websockets/ws · GitHubRelease Notes;Third Party Advisory
-
https://nodesecurity.io/advisories/67
npmThird Party Advisory
Products affected by CVE-2016-10518
- cpe:2.3:a:ws_project:ws:*:*:*:*:*:node.js:*:*