Bug 1897154 (CVE-2020-7768)

Summary: CVE-2020-7768 nodejs-grpc: Prototype Pollution via loadPackageDefinition
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bmontgom, dbecker, eparis, jburrell, jjoyce, jokerman, jschluet, lhh, lpeer, mburns, nstielau, sclewis, sergey.avseyev, slinaber, sponnaga
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nodejs-grpc 1.24.4 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in nodejs-grpc, where the package @grpc/grpc-js is vulnerable to Prototype Pollution via the loadPackageDefinition. The highest threat from this vulnerability is to system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-18 11:28:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1897155, 1910525    
Bug Blocks: 1897164    

Description Guilherme de Almeida Suckevicz 2020-11-12 13:02:58 UTC
The package grpc before 1.24.4; the package @grpc/grpc-js before 1.1.8 are vulnerable to Prototype Pollution via loadPackageDefinition.

Reference:
https://snyk.io/vuln/SNYK-JS-GRPC-598671

Upstream patches:
https://github.com/grpc/grpc-node/pull/1605
https://github.com/grpc/grpc-node/pull/1606

Comment 1 Guilherme de Almeida Suckevicz 2020-11-12 13:03:39 UTC
Created grpc tracking bugs for this issue:

Affects: fedora-all [bug 1897155]

Comment 2 Przemyslaw Roguski 2020-11-13 15:06:13 UTC
External References:

https://snyk.io/vuln/SNYK-JS-GRPC-598671

Comment 3 Przemyslaw Roguski 2020-11-13 15:20:08 UTC
Statement:

This vulnerability is related to the Node.js grpc package (grpc-node and a new version of it @grpc/grpc-js). OpenShift Container Platform (OCP) delivers the grpc package but it is the C based gRPC version which contains source code for gRPC libraries, therefore not affected by this vulnerability.

Comment 4 Product Security DevOps Team 2020-11-18 11:28:42 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-7768

Comment 6 Tomas Hoger 2021-01-04 15:27:20 UTC
The grpc packages in Fedora are for the grpc code from the main repo https://github.com/grpc/grpc and they do not contain code from grpc-node from https://github.com/grpc/grpc-node that is affected by this issue.  The grpc-node does not seem to be packaged in Fedora at this time.