CVE-2024-37168 – @grpc/grpc-js
Package
Manager: npm
Name: @grpc/grpc-js
Vulnerable Version: >=1.10.0 <1.10.9 || >=1.9.0 <1.9.15 || >=0 <1.8.22
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS: 0.00216 pctl0.44155
Details
@grpc/grpc-js can allocate memory for incoming messages well above configured limits ### Impact There are two separate code paths in which memory can be allocated per message in excess of the `grpc.max_receive_message_length` channel option: 1. If an incoming message has a size on the wire greater than the configured limit, the entire message is buffered before it is discarded. 2. If an incoming message has a size within the limit on the wire but decompresses to a size greater than the limit, the entire message is decompressed into memory, and on the server is not discarded. ### Patches This has been patched in versions 1.10.9, 1.9.15, and 1.8.22
Metadata
Created: 2024-06-10T21:38:05Z
Modified: 2024-06-11T18:28:02Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-7v5v-9h63-cj86/GHSA-7v5v-9h63-cj86.json
CWE IDs: ["CWE-789"]
Alternative ID: GHSA-7v5v-9h63-cj86
Finding: F184
Auto approve: 1