FICHE CVE

CVE-2016-10518

Publiée le 2018-05-31 · Dernière modification le 2026-06-17

🇫🇷 EN BREF

Les applications Node.js utilisant le module `ws` (versions antérieures à 1.0.0) sont sensibles à un défaut d'allocation de mémoire. Un attaquant distant non authentifié peut envoyer une trame « ping » spécialement conçue pour forcer le serveur à allouer des quantités excessives de mémoire, ce qui peut entraîner un plantage ou un déni de service. Cette attaque est facile à exécuter car elle ne nécessite qu'un accès réseau et aucune interaction de l'utilisateur.

CVSS 3.07.5 ÉLEVÉE
Publiée2018-05-31
Dernière modification2026-06-17

DÉTAIL DU VECTEUR CVSS

Vecteur d'attaqueRéseau
Complexité d'attaqueFaible
Privilèges requisAucun
Interaction utilisateurAucune
PortéeInchangée
Impact sur la confidentialitéÉlevé
Impact sur l'intégritéAucun
Impact sur la disponibilitéAucun

RÉFÉRENCES

Description officielle du NVD (en anglais)

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.