Advisory

UBUNTU-CVE-2016-10518

Also known as: CVE-2016-10518

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2018-05-31 20:29 UTC
Modified
2025-09-08 16:43 UTC

Affected packages and fixes

node-ws

Debian packages (deb) · Ubuntu 16.04

Affected

  • introduced 0, fixed 1.0.1+ds1.e6ddaae4-1 (ecosystem)

Fixed versions

1.0.1+ds1.e6ddaae4-1

Fix

  • Fixed version 1.0.1+ds1.e6ddaae4-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

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: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences