CVE-2016-10518
Last modified
CVE-2016-10518 is a vulnerability of currently unknown severity. 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. EPSS estimates a 2.02% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Ws Project | Ws | < 1.0.1 |
References
- https://gist.github.com/c0nrad/e92005446c480707a74aPatch, Third Party Advisory
- https://github.com/websockets/ws/releases/tag/1.0.1Release Notes, Third Party Advisory
- https://nodesecurity.io/advisories/67Third Party Advisory
- https://gist.github.com/c0nrad/e92005446c480707a74aPatch, Third Party Advisory
- https://github.com/websockets/ws/releases/tag/1.0.1Release Notes, Third Party Advisory
- https://nodesecurity.io/advisories/67Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2016-10518?
How severe is CVE-2016-10518?
How do I fix CVE-2016-10518?
Are you affected by CVE-2016-10518?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
