vipinsun / blockchain-carbon-accounting

Apache License 2.0
0 stars 0 forks source link

CVE-2024-37168 (Medium) detected in grpc-js-1.2.5.tgz, grpc-js-1.3.7.tgz #257

Open mend-bolt-for-github[bot] opened 2 months ago

mend-bolt-for-github[bot] commented 2 months ago

CVE-2024-37168 - Medium Severity Vulnerability

Vulnerable Libraries - grpc-js-1.2.5.tgz, grpc-js-1.3.7.tgz

grpc-js-1.2.5.tgz

gRPC Library for Node - pure JS implementation

Library home page: https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.2.5.tgz

Path to dependency file: /utility-emissions-channel/docker-compose-setup/package.json

Path to vulnerable library: /utility-emissions-channel/docker-compose-setup/node_modules/@grpc/grpc-js/package.json

Dependency Hierarchy: - fabric-shim-2.2.1.tgz (Root Library) - :x: **grpc-js-1.2.5.tgz** (Vulnerable Library)

grpc-js-1.3.7.tgz

gRPC Library for Node - pure JS implementation

Library home page: https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.3.7.tgz

Path to dependency file: /utility-emissions-channel/typescript_app/package.json

Path to vulnerable library: /utility-emissions-channel/typescript_app/node_modules/@hyperledger/cactus-plugin-ledger-connector-fabric/node_modules/@grpc/grpc-js/package.json,/utility-emissions-channel/chaincode/node/node_modules/@grpc/grpc-js/package.json,/utility-emissions-channel/chaincode/typescript/node_modules/@grpc/grpc-js/package.json

Dependency Hierarchy: - fabric-shim-2.2.2.tgz (Root Library) - :x: **grpc-js-1.3.7.tgz** (Vulnerable Library)

Found in HEAD commit: d388e16464e00b9ce84df0d247029f534a429b90

Found in base branch: main

Vulnerability Details

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

Publish Date: 2024-06-10

URL: CVE-2024-37168

CVSS 3 Score Details (5.3)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/grpc/grpc-node/security/advisories/GHSA-7v5v-9h63-cj86

Release Date: 2024-06-10

Fix Resolution (@grpc/grpc-js): 1.8.22

Direct dependency fix Resolution (fabric-shim): 2.2.2

Fix Resolution (@grpc/grpc-js): 1.8.22

Direct dependency fix Resolution (fabric-shim): 2.2.3


Step up your Open Source Security Game with Mend here