CVE-2024-37168: @grpc/grpc-js can allocate memory for incoming messages well above configured limits

Published Jun 10, 2024
·
Updated

@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.maxreceivemessagelength 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.

Other sources

Impact There are two separate code paths in which memory can be allocated per message in excess of the grpc.maxreceivemessagelength 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

GitHub

gRPC on Node.js is vulnerable to a denial of service, caused by a flaw with memory allocation with excessive size value. By sending specially crafted messages, a remote attacker could exploit this vulnerability to cause a denial of service condition.

IBM

Affected Software

5 affected componentsFixes available
npm/@grpc/grpc-js<1.8.22
1.8.22
npm/@grpc/grpc-js>=1.9.0<1.9.15
1.9.15
npm/@grpc/grpc-js>=1.10.0<1.10.9
1.10.9
IBM Cloud Pak for Security<=1.10.0.0 - 1.10.11.0
IBM QRadar Suite Software<=1.10.12.0 - 1.10.23.0

Event History

Jun 10, 2024
CVE Published
via MITRE·09:32 PM
Data Sourced
via MITRE·09:32 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:38 PM
Data Sourced
via NVD·10:15 PM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-37168?

CVE-2024-37168 has a severity rating that indicates it could potentially lead to denial of service due to memory allocation issues.

2

How do I fix CVE-2024-37168?

To remediate CVE-2024-37168, upgrade to versions 1.10.9, 1.9.15, or 1.8.22 of the @grpc/grpc-js package.

3

What systems are affected by CVE-2024-37168?

CVE-2024-37168 affects the @grpc/grpc-js package versions prior to 1.10.9, 1.9.15, and 1.8.22 as well as certain IBM products.

4

What are the potential consequences of CVE-2024-37168?

Exploitation of CVE-2024-37168 can result in excessive memory consumption and potential denial of service.

5

Is CVE-2024-37168 being actively exploited?

As of the latest information, there is no evidence to suggest that CVE-2024-37168 is actively being exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203