Vulnerability · Published Jun 19, 2024 · Assigned by GitHub_M

CVE-2024-38355Unhandled 'error' event in socket.io

High 7.3

In plain English

A high-severity improper input validation in socket.io from socketio. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.3High
Exploit odds (30 days)0.8%top 43.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official description

Socket.IO is an open source, real-time, bidirectional, event-based, communication framework. A specially crafted Socket.IO packet can trigger an uncaught exception on the Socket.IO server, thus killing the Node.js process. This issue is fixed by commit `15af22fc22` which has been included in `socket.io@4.6.2` (released in May 2023). The fix was backported in the 2.x branch as well with commit `d30630ba10`. Users are advised to upgrade. Users unable to upgrade may attach a listener for the "error" event to catch these errors.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmsocket.io2.5.1GHSA-25hc-qcg6-38wj
npmsocket.io4.6.2GHSA-25hc-qcg6-38wj

Affected products (as reported)

VendorProductVersions
socketio socket.io < 2.5.1>= 3.0.0,< 4.6.2

Weakness: CWE-20, CWE-754 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

References