{"id":"CVE-2024-37168","aliases":["CVE-2024-37168","GHSA-7v5v-9h63-cj86"],"related":[],"kind":"vulnerability","state":"published","title":"@grpc/grpc-js can allocate memory for incoming messages well above configured limits","summary":"@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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThere are two separate code paths in which memory can be allocated per message in excess of the `grpc.max_receive_message_length` channel option:\n\n 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.\n 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.\n\n### Patches\n\nThis has been patched in versions 1.10.9, 1.9.15, and 1.8.22","format":"markdown","source":"ghsa"},{"lang":"es","text":"@grpc/grps-js implementa la funcionalidad principal de gRPC exclusivamente en JavaScript, sin un complemento de C++. Antes de las versiones 1.10.9, 1.9.15 y 1.8.22, existen dos rutas de código separadas en las que se puede asignar memoria por mensaje que exceda la opción de canal `grpc.max_receive_message_length`: si un mensaje entrante tiene un tamaño en el cable es mayor que el límite configurado, todo el mensaje se almacena en el búfer antes de descartarlo; y/o si un mensaje entrante tiene un tamaño dentro del límite del cable pero se descomprime a un tamaño mayor que el límite, el mensaje completo se descomprime en la memoria y no se descarta en el servidor. Esto se ha parcheado en las versiones 1.10.9, 1.9.15 y 1.8.22.","source":"nvd"}],"published":"2024-06-10T21:32:06.403Z","modified":"2026-09-10T03:50:15.135Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-789"],"affected":[{"ranges":[{"version":">= 1.10.0, < 1.10.9","status":"affected"},{"version":">= 1.9.0, < 1.9.15","status":"affected"},{"version":"< 1.8.22","status":"affected"}],"vendor":"grpc","product":"grpc-node","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"1.10.0","fixed":"1.10.9","status":"affected"},{"type":"custom","introduced":"1.9.0","fixed":"1.9.15","status":"affected"},{"type":"custom","introduced":"0","fixed":"1.8.22","status":"affected"}],"vendor":"grpc","product":"grpc","cpe":"cpe:2.3:a:grpc:grpc:1.10.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.10.0","status":"affected","fixed":"1.10.9"}],"ecosystem":"npm","package":"@grpc/grpc-js","purl":"pkg:npm/%40grpc/grpc-js","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.9.0","status":"affected","fixed":"1.9.15"}],"ecosystem":"npm","package":"@grpc/grpc-js","purl":"pkg:npm/%40grpc/grpc-js","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.22"}],"ecosystem":"npm","package":"@grpc/grpc-js","purl":"pkg:npm/%40grpc/grpc-js","source":"ghsa"}],"references":[{"url":"https://github.com/grpc/grpc-node/security/advisories/GHSA-7v5v-9h63-cj86","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/grpc/grpc-node/commit/08b0422dae56467ecae1007e899efe66a8c4a650","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/grpc/grpc-node/commit/674f4e351a619fd4532f84ae6dff96b8ee4e1ed3","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/grpc/grpc-node/commit/a8a020339c7eab1347a343a512ad17a4aea4bfdb","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37168","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/grpc/grpc-node","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-06-11T14:03:13.988Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-37168","url":"https://www.cve.org/CVERecord?id=CVE-2024-37168","licence":"CVE Terms of Use","modified":"2024-08-02T03:50:55.550Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7v5v-9h63-cj86","url":"https://github.com/advisories/GHSA-7v5v-9h63-cj86","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:15.135Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-37168","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37168","licence":"Public domain","modified":"2026-06-17T07:37:53.100Z"}],"updatedAt":"2026-11-25T22:58:41.656Z","epss":{"score":0.00677,"percentile":0.53565,"date":"2026-12-01T12:00:22.000Z"}}