CVE-2016-10518
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No vendor mitigations ingested yet for this CVE. The mitigation-content worker queues fetches as references arrive — check back in a few minutes, or see the references list below.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 1.0.1+ds1.e6ddaae4-1 |
| debian | bullseye | fixed | 1.0.1+ds1.e6ddaae4-1 |
| debian | forky | fixed | 1.0.1+ds1.e6ddaae4-1 |
| debian | sid | fixed | 1.0.1+ds1.e6ddaae4-1 |
| debian | trixie | fixed | 1.0.1+ds1.e6ddaae4-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| npm | ws | <1.0.1 | 1.0.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-10518
- https://github.com/websockets/ws/commit/29293ed11b679e0366fa0f6bb9310b330dafd795
- https://gist.github.com/c0nrad/e92005446c480707a74a
- https://github.com/advisories/GHSA-2mhh-w6q8-5hxw
- https://github.com/websockets/ws/releases/tag/1.0.1
- https://www.npmjs.com/advisories/67
- https://security-tracker.debian.org/tracker/CVE-2016-10518
💬 Discuss CVE-2016-10518 on VIR Community →
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.