Bug 1874606 (CVE-2020-7720)

Summary: CVE-2020-7720 nodejs-node-forge: prototype pollution via the util.setPath function
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: alegrand, anpicker, bmontgom, eparis, erooth, hvyas, jburrell, jokerman, kakkoyun, lcosic, mcooper, mloibl, nstielau, pkrupa, sponnaga, surbania
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nodejs-node-forge 0.10.0 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in nodejs-node-forge. A Prototype Pollution via the util.setPath function is possible.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-18 07:31:02 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: 1869944, 1875399, 1875400, 1875401, 1875402, 1875403, 1875901    
Bug Blocks: 1874607    

Description Guilherme de Almeida Suckevicz 2020-09-01 17:53:07 UTC
All versions of package node-forge before 0.10.0 are vulnerable to Prototype Pollution via the util.setPath function.

References:
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-609293
https://snyk.io/vuln/SNYK-JS-NODEFORGE-598677

Comment 1 Mark Cooper 2020-09-02 23:57:40 UTC
Upstream patch - https://github.com/digitalbazaar/forge/commit/6a1e3ef74f6eb345bcff1b82184201d1e28b6756

Removing the vulnerable util.setPath function

Comment 3 Mark Cooper 2020-09-04 02:43:50 UTC
External References:

https://snyk.io/vuln/SNYK-JS-NODEFORGE-598677

Comment 6 Mark Cooper 2020-09-06 21:36:39 UTC
Statement:

In Red Hat Openshift Container Storage 4 the noobaa-core container includes the affected version of node-forge as a dependency of google-p12-pem, however the vulnerable function `util.setPath` is not being used and hence this issue has been rated as having a security impact of Low.

In OpenShift Container Platform (OCP) the prometheus container is behind OpenShift OAuth restricting access to the vulnerable node-forge library to authenticated users only, therefore the impact is Low.

Comment 7 errata-xmlrpc 2020-12-17 06:22:25 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Storage 4.6.0 on RHEL-8

Via RHSA-2020:5605 https://access.redhat.com/errata/RHSA-2020:5605

Comment 8 Product Security DevOps Team 2020-12-18 07:31:02 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-7720