[NPM:GHSA-7V5V-9H63-CJ86] @grpc/grpc-js can allocate memory for incoming messages well above configured limits
Severity
Moderate
Affected Packages
3
Fixed Packages
3
CVEs
1
Impact
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.
- 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
Affected
Package | Affected Version |
---|---|
pkg:npm/%40grpc/grpc-js | < 1.8.22 |
pkg:npm/%40grpc/grpc-js | >= 1.9.0, < 1.9.15 |
pkg:npm/%40grpc/grpc-js | >= 1.10.0, < 1.10.9 |
Fixed
Package | Fixed Version |
---|---|
pkg:npm/%40grpc/grpc-js | = 1.8.22 |
pkg:npm/%40grpc/grpc-js | = 1.9.15 |
pkg:npm/%40grpc/grpc-js | = 1.10.9 |
- ID
- NPM:GHSA-7V5V-9H63-CJ86
- Severity
- moderate
- URL
- https://github.com/advisories/GHSA-7v5v-9h63-cj86
- Published
-
2024-06-10T21:38:05
(7 months ago) - Modified
-
2024-06-11T21:44:12
(7 months ago) - Rights
- NPM Security Team
Type | Package URL | Namespace | Name / Product | Version | Distribution / Platform | Arch | Patch / Fix |
---|---|---|---|---|---|---|---|
Affected | pkg:npm/%40grpc/grpc-js | @grpc | grpc-js | < 1.8.22 | |||
Fixed | pkg:npm/%40grpc/grpc-js | @grpc | grpc-js | = 1.8.22 | |||
Affected | pkg:npm/%40grpc/grpc-js | @grpc | grpc-js | >= 1.9.0 < 1.9.15 | |||
Fixed | pkg:npm/%40grpc/grpc-js | @grpc | grpc-js | = 1.9.15 | |||
Affected | pkg:npm/%40grpc/grpc-js | @grpc | grpc-js | >= 1.10.0 < 1.10.9 | |||
Fixed | pkg:npm/%40grpc/grpc-js | @grpc | grpc-js | = 1.10.9 |
# CVE | Description | CVSS | EPSS | EPSS Trend (30 days) | Affected Products | Weaknesses | Security Advisories | Exploits | PoC | Pubblication Date | Modification Date |
---|---|---|---|---|---|---|---|---|---|---|---|
# CVE | Description | CVSS | EPSS | EPSS Trend (30 days) | Affected Products | Weaknesses | Security Advisories | PoC | Pubblication Date | Modification Date |