Bug 2171935 (CVE-2023-23918)

Summary: CVE-2023-23918 Node.js: Permissions policies can be bypassed via process.mainModule
Product: [Other] Security Response Reporter: Zack Miele <zmiele>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amackenz, amasferr, chazlett, hhorak, jorton, jstanek, mkudlej, nodejs-maint, tjochec, zsvetlik
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Node.js 19.6.1, Node.js 18.14.1, Node.js 16.19.1, Node.js 14.21.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 20:46:33 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: 2172149, 2172150, 2172151, 2172148, 2172152, 2172153, 2172154, 2172155, 2172156, 2172157, 2172158, 2172159, 2172160, 2172161, 2175841, 2175842, 2175843, 2175844, 2178107, 2178108, 2178109, 2178110, 2178111, 2178112, 2178113, 2178114, 2178153, 2178154, 2178155    
Bug Blocks: 2171920    

Description Zack Miele 2023-02-20 22:12:52 UTC
It was possible to bypass Permissions and access non authorized modules by using process.mainModule.require(). This only affects users who had enabled the experimental permissions option with --experimental-policy.

Comment 1 Zack Miele 2023-02-21 15:28:41 UTC
Created nodejs tracking bugs for this issue:

Affects: epel-all [bug 2172149]
Affects: fedora-all [bug 2172148]


Created nodejs:13/nodejs tracking bugs for this issue:

Affects: epel-all [bug 2172151]


Created nodejs:14/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 2172152]


Created nodejs:16-epel/nodejs tracking bugs for this issue:

Affects: epel-all [bug 2172150]


Created nodejs:16/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 2172153]


Created nodejs:18/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 2172154]

Comment 5 errata-xmlrpc 2023-03-30 12:36:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Extended Update Support

Via RHSA-2023:1533 https://access.redhat.com/errata/RHSA-2023:1533

Comment 6 errata-xmlrpc 2023-04-04 09:48:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:1582 https://access.redhat.com/errata/RHSA-2023:1582

Comment 7 errata-xmlrpc 2023-04-04 09:48:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:1583 https://access.redhat.com/errata/RHSA-2023:1583

Comment 8 errata-xmlrpc 2023-04-12 14:58:53 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2023:1742 https://access.redhat.com/errata/RHSA-2023:1742

Comment 9 errata-xmlrpc 2023-04-12 14:59:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:1743 https://access.redhat.com/errata/RHSA-2023:1743

Comment 10 errata-xmlrpc 2023-04-12 15:07:41 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2023:1744 https://access.redhat.com/errata/RHSA-2023:1744

Comment 11 errata-xmlrpc 2023-05-09 11:46:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2654 https://access.redhat.com/errata/RHSA-2023:2654

Comment 12 errata-xmlrpc 2023-05-09 11:46:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2655 https://access.redhat.com/errata/RHSA-2023:2655

Comment 13 Product Security DevOps Team 2023-05-09 20:46:30 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-2023-23918