Bug 2299281 (CVE-2024-36137) - CVE-2024-36137 nodejs: fs.fchown/fchmod bypasses permission model
Summary: CVE-2024-36137 nodejs: fs.fchown/fchmod bypasses permission model
Keywords:
Status: NEW
Alias: CVE-2024-36137
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2299331
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-22 14:05 UTC by Robb Gatica
Modified: 2024-09-03 14:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Node.js, affecting users of the experimental permission model when the --allow-fs-write flag is used. The Node.js Permission Model does not operate on file descriptors. However, operations such as fs.fchown or fs.fchmod can use a "read-only" file descriptor to change the owner and permissions of a file.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:5900 0 None None None 2024-08-27 13:46:34 UTC
Red Hat Product Errata RHBA-2024:5925 0 None None None 2024-08-28 10:06:13 UTC
Red Hat Product Errata RHBA-2024:5947 0 None None None 2024-08-28 16:06:17 UTC
Red Hat Product Errata RHBA-2024:5950 0 None None None 2024-08-28 17:05:25 UTC
Red Hat Product Errata RHBA-2024:5954 0 None None None 2024-08-28 17:37:23 UTC
Red Hat Product Errata RHBA-2024:6231 0 None None None 2024-09-03 14:24:02 UTC
Red Hat Product Errata RHSA-2024:5814 0 None None None 2024-08-26 08:29:06 UTC
Red Hat Product Errata RHSA-2024:5815 0 None None None 2024-08-26 08:06:26 UTC

Description Robb Gatica 2024-07-22 14:05:18 UTC
A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-write flag is used.

Node.js Permission Model do not operate on file descriptors, however, operations such as fs.fchown or fs.fchmod can use a "read-only" file descriptor to change the owner and permissions of a file.

This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 22.

Comment 2 errata-xmlrpc 2024-08-26 08:06:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:5815 https://access.redhat.com/errata/RHSA-2024:5815

Comment 3 errata-xmlrpc 2024-08-26 08:29:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:5814 https://access.redhat.com/errata/RHSA-2024:5814


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