{"id":"CVE-2024-37168","published":"2024-06-10T21:32:06Z","modified":"2024-08-02T03:50:55Z","title":"@grpc/grpc-js can allocate memory for incoming messages well above configured limits","vendor":"grpc","product":"grpc-node","tier":"tail","description":{"text":"@grpc/grps-js implements the core functionality of gRPC purely in JavaScript, without a C++ addon. Prior to versions 1.10.9, 1.9.15, and 1.8.22, 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: If an incoming message has a size on the wire greater than the configured limit, the entire message is buffered before it is discarded; and/or 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. This has been patched in versions 1.10.9, 1.9.15, and 1.8.22.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01029,"percentile":0.62848,"provenance":"source"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://github.com/grpc/grpc-node/security/advisories/GHSA-7v5v-9h63-cj86","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/grpc/grpc-node/commit/08b0422dae56467ecae1007e899efe66a8c4a650","tags":["x_refsource_MISC"]},{"url":"https://github.com/grpc/grpc-node/commit/674f4e351a619fd4532f84ae6dff96b8ee4e1ed3","tags":["x_refsource_MISC"]},{"url":"https://github.com/grpc/grpc-node/commit/a8a020339c7eab1347a343a512ad17a4aea4bfdb","tags":["x_refsource_MISC"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":12.57},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"grpc","affectedVersions":[{"vendor":"grpc","product":"grpc-node","versions":[">= 1.10.0, < 1.10.9",">= 1.9.0, < 1.9.15","< 1.8.22"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-06-11T14:03:13.988919Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@grpc/grpc-js","vulnerableRanges":[">=1.10.0, <1.10.9",">=1.9.0, <1.9.15","<1.8.22"],"patched":["1.10.9","1.9.15","1.8.22"],"from":["GHSA-7v5v-9h63-cj86"],"provenance":"source"}],"summary":{"text":"The @grpc/grpc-js package, a pure JavaScript implementation of gRPC in grpc-node, can allocate memory for incoming messages beyond the limit set by the grpc.max_receive_message_length channel option, both when a message's wire size exceeds that limit and when a within-limit message decompresses to a larger size. An attacker with network access can trigger this by sending oversized or highly compressible messages, requiring no authentication or user interaction and only a server or client configured to accept gRPC traffic.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:37Z"},"euvd":{"id":"EUVD-2024-1970","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-grpc-node-cve-2024-37168","children":[{"from":"CVE-2024-37168","to":"CVE-2026-101916","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/grpc-js/src/server-interceptors.ts","packages/grpc-js/src/transport.ts"],"commits":["https://github.com/grpc/grpc-node/commit/08b0422dae56467ecae1007e899efe66a8c4a650","https://github.com/grpc/grpc-node/commit/674f4e351a619fd4532f84ae6dff96b8ee4e1ed3","https://github.com/grpc/grpc-node/commit/2a84ec8b01b9db68ed9d2b117a53a81449edb8ee","https://github.com/grpc/grpc-node/commit/b4e0079c6d22a2adedfcac748e0bc083f783bc7c"],"basis":"shared function","functions":["BaseServerInterceptingCall","Http2Transport"]}]},{"from":"CVE-2024-37168","to":"CVE-2026-48068","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/grpc-js/src/server-call.ts","packages/grpc-js/src/server-interceptors.ts"],"commits":["https://github.com/grpc/grpc-node/commit/08b0422dae56467ecae1007e899efe66a8c4a650","https://github.com/grpc/grpc-node/commit/674f4e351a619fd4532f84ae6dff96b8ee4e1ed3","https://github.com/grpc/grpc-node/commit/058665a6c6dae445e2ab0f3f6259164fac52ee17","https://github.com/grpc/grpc-node/commit/1cf4bfa738b15e59cc3daf49ffa24c04f9b626f7"],"basis":"shared function","functions":["BaseServerInterceptingCall","Http2ServerCallStream"]}]}]}}