Bug 2041833 (CVE-2021-23436)

Summary: CVE-2021-23436 immer: type confusion vulnerability can lead to a bypass of CVE-2020-28477
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: alazarot, anstephe, emingora, gparvin, ibek, jramanat, jrokos, kaycoth, kverlaen, mnovotny, njean, pahickey, pjindal, rguimara, rrajasek, stcannon
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A prototype pollution flaw was found in the Node.js immer module. By adding or modifying properties of Object.prototype using a __proto__ or constructor payload, an attacker could execute arbitrary code on the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-03 17:43:05 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:    
Bug Blocks: 2041834    

Description Dhananjay Arunesh 2022-01-18 11:00:46 UTC
This affects the package immer before 9.0.6. A type confusion vulnerability can lead to a bypass of CVE-2020-28477 when the user-provided keys used in the path parameter are arrays. In particular, this bypass is possible because the condition (p === "__proto__" || p === "constructor") in applyPatches_ returns false if p is ['__proto__'] (or ['constructor']). The === operator (strict equality operator) returns false if the operands have different type.

References:
https://github.com/immerjs/immer/commit/fa671e55ee9bd42ae08cc239102b665a23958237

Comment 5 errata-xmlrpc 2022-10-05 10:45:08 UTC
This issue has been addressed in the following products:

  RHPAM 7.13.1 async

Via RHSA-2022:6813 https://access.redhat.com/errata/RHSA-2022:6813

Comment 8 Product Security DevOps Team 2023-05-03 17:43: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-2021-23436