{"id":"GHSA-7v5v-9h63-cj86","revision":"28dd76b20d8540e5966a8dcccb029077","records":[{"revision":"28dd76b20d8540e5966a8dcccb029077","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-7v5v-9h63-cj86","aliases":["CVE-2024-37168"],"title":"@grpc/grpc-js can allocate memory for incoming messages well above configured limits","description":"### 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\n","state":0,"publishedAt":"2024-06-10T21:38:05+00:00","modifiedAt":"2026-09-10T03:50:15.1357855+00:00","affected":[{"ecosystem":"npm","name":"@grpc/grpc-js","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.10.0"},{"kind":"fixed","version":"1.10.9"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@grpc/grpc-js","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.9.0"},{"kind":"fixed","version":"1.9.15"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@grpc/grpc-js","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.8.22"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/grpc/grpc-node/security/advisories/GHSA-7v5v-9h63-cj86","https://nvd.nist.gov/vuln/detail/CVE-2024-37168","https://github.com/grpc/grpc-node/commit/08b0422dae56467ecae1007e899efe66a8c4a650","https://github.com/grpc/grpc-node/commit/674f4e351a619fd4532f84ae6dff96b8ee4e1ed3","https://github.com/grpc/grpc-node/commit/a8a020339c7eab1347a343a512ad17a4aea4bfdb","https://github.com/grpc/grpc-node"],"sourceUrl":"https://github.com/advisories/GHSA-7v5v-9h63-cj86","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7v5v-9h63-cj86","identifiers":["GHSA-7v5v-9h63-cj86","CVE-2024-37168"]},"retained":false,"historicalAffected":[]}],"coverage":[]}