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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | socket.io | 2.5.1 | GHSA-25hc-qcg6-38wj |
| npm | socket.io | 4.6.2 | GHSA-25hc-qcg6-38wj |
Affected products (as reported)
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
- https://github.com/socketio/socket.io/security/advisories/GHSA-25hc-qcg6-38wj x_refsource_CONFIRM
- https://github.com/socketio/socket.io/commit/15af22fc22bc6030fcead322c106f07640336115 x_refsource_MISC
- https://github.com/socketio/socket.io/commit/d30630ba10562bf987f4d2b42440fc41a828119c x_refsource_MISC
- https://www.vicarius.io/vsociety/posts/unhandled-exception-in-socketio-cve-2024-38355