CVE-2024-38355
HIGH 7.3CVSS 3.1socket.io has an unhandled 'error' event
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.
- Published
- 19 Jun 2024
- Last modified
- 24 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-20CWE-754
- Also known as
- GHSA-25hc-qcg6-38wj
- Sources
- NVDJSONOSV GHSA-25hc-qcg6-38wjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | socket.io | < 2.5.1 | 2.5.1 |
| OSV | npm | socket.io | >= 3.0.0, < 4.6.2 | 4.6.2 |
References
- https://github.com/socketio/socket.io/commit/15af22fc22bc6030fcead322c106f07640336115 · WEB
- https://github.com/socketio/socket.io/commit/d30630ba10562bf987f4d2b42440fc41a828119c · WEB
- https://github.com/socketio/socket.io/security/advisories/GHSA-25hc-qcg6-38wj · WEB
- https://www.vicarius.io/vsociety/posts/unhandled-exception-in-socketio-cve-2024-38355
- https://nvd.nist.gov/vuln/detail/CVE-2024-38355 · ADVISORY
- https://github.com/socketio/socket.io · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 19 Jun 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 19 Jun 2024)