{"answers":{"affected":"6 open source packages ship an affected version, including @grpc/grpc-js.","exploited":"There is no known exploitation of CVE-2024-37168 in the wild and no public exploit code.","fix":"Upgrade @grpc/grpc-js to a fixed version for your release line: 1.8.22, 1.10.9 or 1.9.15.","what":"CVE-2024-37168 is a medium-severity denial of service vulnerability in grpc-node, published on 10 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-37168 and fix it if it is affected.\n\nWhat it is: CVE-2024-37168 is a medium-severity denial of service vulnerability in grpc-node, published on 10 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-37168 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @grpc/grpc-js (npm): affected all versions; fixed in 1.8.22\n- @grpc/grpc-js (npm): affected all versions; fixed in 1.8.22\n- @grpc/grpc-js (npm): affected from 1.10.0; fixed in 1.10.9\n- @grpc/grpc-js (npm): affected from 1.10.0; fixed in 1.10.9\n- @grpc/grpc-js (npm): affected from 1.9.0; fixed in 1.9.15\n- @grpc/grpc-js (npm): affected from 1.9.0; fixed in 1.9.15\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-37168/ (Markdown: https://insights.sbomify.com/CVE-2024-37168/index.md)","id":"CVE-2024-37168","markdown":"https://insights.sbomify.com/CVE-2024-37168/index.md","name":"CVE-2024-37168","record":{"aliases":["CLEANSTART-2026-QB50814","ECHO-066d-8cdc-cc6a","GHSA-7v5v-9h63-cj86","MINI-fhw2-2jg6-whjw","ROOT-APP-NPM-CVE-2024-37168"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"gRPC JavaScript library","requires_auth":"none","summary":"Attackers can cause excessive memory allocation in @grpc/grpc-js by sending large or compressed messages, leading to denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"description":"@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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"@grpc/grpc-js can allocate memory for incoming messages well above configured limits","id":"CVE-2024-37168","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":6,"n_references":4,"next":{"headline":"@jmondi/url-to-png arbitrary file read via Playwright's screenshot feature exploiting file wrapper","id":"CVE-2024-37169"},"packages":[{"ecosystem":"npm","fixed":["1.8.22"],"introduced":["0"],"last_affected":[],"package":"@grpc/grpc-js","purl":null,"source":"GHSA-7v5v-9h63-cj86"},{"ecosystem":"npm","fixed":["1.8.22"],"introduced":["0"],"last_affected":[],"package":"@grpc/grpc-js","purl":"pkg:npm/%40grpc/grpc-js","source":"GHSA-7v5v-9h63-cj86"},{"ecosystem":"npm","fixed":["1.10.9"],"introduced":["1.10.0"],"last_affected":[],"package":"@grpc/grpc-js","purl":null,"source":"GHSA-7v5v-9h63-cj86"},{"ecosystem":"npm","fixed":["1.10.9"],"introduced":["1.10.0"],"last_affected":[],"package":"@grpc/grpc-js","purl":"pkg:npm/%40grpc/grpc-js","source":"GHSA-7v5v-9h63-cj86"},{"ecosystem":"npm","fixed":["1.9.15"],"introduced":["1.9.0"],"last_affected":[],"package":"@grpc/grpc-js","purl":null,"source":"GHSA-7v5v-9h63-cj86"},{"ecosystem":"npm","fixed":["1.9.15"],"introduced":["1.9.0"],"last_affected":[],"package":"@grpc/grpc-js","purl":"pkg:npm/%40grpc/grpc-js","source":"GHSA-7v5v-9h63-cj86"}],"prev":{"headline":"Tuleap has improper permissions of the backlog items","id":"CVE-2024-37167"},"products":["grpc-node"],"published":"2024-06-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["grpc"]},"summary":"Attackers can cause excessive memory allocation in @grpc/grpc-js by sending large or compressed messages, leading to denial of service.","url":"https://insights.sbomify.com/CVE-2024-37168/"}