Skip to content
OpenAdvisories
High · 7.3 Public exploit CVE-2024-38355 EUVD-2024-1878GHSA-25hc-qcg6-38wj

Unhandled 'error' event in socket.io

Published Jun 19, 2024 · Updated Sep 3, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
socketio socket.io < 2.5.1, >= 3.0.0,< 4.6.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 3 pgadmin4 8.5-150600.3.6.1 SUSE-SU-2024:3771-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 pgadmin4 8.5-150600.3.6.1 SUSE-SU-2024:3771-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm socket.io < 2.5.1 2.5.1 GHSA-25hc-qcg6-38wj
npm socket.io >= 3.0.0, < 4.6.2 4.6.2 GHSA-25hc-qcg6-38wj

Advisories 5

References