Bug 1918162 (CVE-2020-28477) - CVE-2020-28477 nodejs-immer: prototype pollution may lead to DoS or remote code execution
Summary: CVE-2020-28477 nodejs-immer: prototype pollution may lead to DoS or remote co...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-28477
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1918654 1925117
Blocks: 1918163
TreeView+ depends on / blocked
 
Reported: 2021-01-20 08:36 UTC by Marian Rehak
Modified: 2023-08-31 00:06 UTC (History)
37 users (show)

Fixed In Version: nodejs-immer 8.0.1
Clone Of:
Environment:
Last Closed: 2021-04-14 16:46:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2021-01-20 08:36:40 UTC
When the source object contains a property named _proto_ defined with Object.defineProperty() , the condition that checks if the property exists and is an object on both the target and the source passes and the merge recurses with the target, being the prototype of Object and the source of Object as defined by the attacker. Properties are then copied on the Object prototype.

Reference:

https://github.com/immerjs/immer/blob/master/src/plugins/patches.ts%23L213
https://snyk.io/vuln/SNYK-JS-IMMER-1019369

Comment 5 Przemyslaw Roguski 2021-01-21 12:20:32 UTC
External References:

https://snyk.io/vuln/SNYK-JS-IMMER-1019369

Comment 11 Przemyslaw Roguski 2021-02-04 12:57:12 UTC
Statement:

Red Hat Virtualization includes affected version of nodejs-immer, however the usage does not meet the conditions required to exploit the flaw, therefore the impact is Low.

In OpenShift Container Platform 4.6 (OCP) the openshift4/ose-prometheus container ships the vulnerable version of the nodejs-immer, however the Prometheus react-ui is disabled, hence this flaw cannot be exploited. As openshift4/ose-prometheus container still packages the vulnerable code, this component is affected with impact Low. This may be fixed in a future release.

Comment 15 errata-xmlrpc 2021-04-14 11:39:52 UTC
This issue has been addressed in the following products:

  Red Hat Virtualization Engine 4.4

Via RHSA-2021:1169 https://access.redhat.com/errata/RHSA-2021:1169

Comment 16 Product Security DevOps Team 2021-04-14 16:46:46 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-28477


Note You need to log in before you can comment on or make changes to this bug.