Lucene search

K
githubGitHub Advisory DatabaseGHSA-4PCG-WR6C-H9CQ
HistoryNov 07, 2022 - 9:13 p.m.

fastify/websocket vulnerable to uncaught exception via crash on malformed packet

2022-11-0721:13:57
CWE-248
GitHub Advisory Database
github.com
8
fastify
websocket
vulnerability
crash
malformed packet
patch
deprecated
error handler
upgrade
marcolanaro

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

0.001 Low

EPSS

Percentile

38.6%

Impact

Any application using @fastify/websocket could crash if a specific, malformed packet is sent.

All versions of fastify-websocket are also impacted. That module is deprecated, so it will not be patched.

Patches

This has been patched in v7.1.1 (fastify v4) and v5.0.1 (fastify v3).

Workarounds

No known workaround is available. However, it should be possible to attach the error handler manually.
The recommended path is upgrading to the patched versions.

Credits

marcolanaro for finding and patching this vulnerability

For more information

If you have any questions or comments about this advisory:

Affected configurations

Vulners
Node
fastifywebsocketRange<5.0.1
OR
fastifywebsocketRange4.3.0
OR
fastifywebsocketRange6.0.0
OR
fastifywebsocketRange<7.1.1

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

0.001 Low

EPSS

Percentile

38.6%

Related for GHSA-4PCG-WR6C-H9CQ