Bug 2264582 (CVE-2024-21892) - CVE-2024-21892 nodejs: code injection and privilege escalation through Linux capabilities
Summary: CVE-2024-21892 nodejs: code injection and privilege escalation through Linux ...
Keywords:
Status: NEW
Alias: CVE-2024-21892
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2264584 2264585 2264586 2264808 2264809 2264810 2264811
Blocks: 2264565
TreeView+ depends on / blocked
 
Reported: 2024-02-16 18:02 UTC by Robb Gatica
Modified: 2024-04-22 01:09 UTC (History)
3 users (show)

Fixed In Version: node 18.19.1, node 20.11.1, node 21.6.2
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Node.js. On Linux, Node.js ignores certain environment variables if an unprivileged user has set them while the process is running with elevated privileges, except for CAP_NET_BIND_SERVICE. Due to a bug in the implementation of this exception, Node.js incorrectly applies this exception even when other capabilities have been set. This flaw allows unprivileged users to inject code that inherits the process's elevated privileges.
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:1528 0 None None None 2024-03-26 15:30:53 UTC
Red Hat Product Errata RHBA-2024:1587 0 None None None 2024-04-01 20:32:25 UTC
Red Hat Product Errata RHBA-2024:1695 0 None None None 2024-04-08 12:30:25 UTC
Red Hat Product Errata RHBA-2024:1702 0 None None None 2024-04-08 22:46:22 UTC
Red Hat Product Errata RHBA-2024:1709 0 None None None 2024-04-09 11:15:41 UTC
Red Hat Product Errata RHBA-2024:1710 0 None None None 2024-04-09 11:12:48 UTC
Red Hat Product Errata RHBA-2024:1711 0 None None None 2024-04-09 11:21:50 UTC
Red Hat Product Errata RHBA-2024:1712 0 None None None 2024-04-09 11:25:15 UTC
Red Hat Product Errata RHBA-2024:1745 0 None None None 2024-04-10 01:13:42 UTC
Red Hat Product Errata RHBA-2024:1749 0 None None None 2024-04-10 08:48:58 UTC
Red Hat Product Errata RHBA-2024:1774 0 None None None 2024-04-10 19:45:56 UTC
Red Hat Product Errata RHBA-2024:1776 0 None None None 2024-04-11 07:02:51 UTC
Red Hat Product Errata RHSA-2024:1510 0 None None None 2024-03-26 09:22:52 UTC
Red Hat Product Errata RHSA-2024:1687 0 None None None 2024-04-08 09:04:56 UTC
Red Hat Product Errata RHSA-2024:1688 0 None None None 2024-04-08 08:50:00 UTC
Red Hat Product Errata RHSA-2024:1880 0 None None None 2024-04-18 02:08:52 UTC
Red Hat Product Errata RHSA-2024:1932 0 None None None 2024-04-22 01:09:13 UTC

Description Robb Gatica 2024-02-16 18:02:54 UTC
On Linux, Node.js ignores certain environment variables if those may have been set by an unprivileged user while the process is running with elevated privileges with the only exception of CAP_NET_BIND_SERVICE. Due to a bug in the implementation of this exception, Node.js incorrectly applies this exception even when certain other capabilities have been set. This allows unprivileged users to inject code that inherits the process's elevated privileges.

This vulnerability affects all users in all active release lines: 18.x, 20.x, and 21.x.

References:
https://nodejs.org/en/blog/release/v18.19.1
https://nodejs.org/en/blog/vulnerability/february-2024-security-releases/#code-injection-and-privilege-escalation-through-linux-capabilities-cve-2024-21892---high

Comment 1 Robb Gatica 2024-02-16 18:05:45 UTC
Created nodejs tracking bugs for this issue:

Affects: epel-all [bug 2264584]


Created nodejs18 tracking bugs for this issue:

Affects: fedora-all [bug 2264585]


Created nodejs20 tracking bugs for this issue:

Affects: fedora-all [bug 2264586]

Comment 5 Sandipan Roy 2024-02-19 04:19:53 UTC
Created nodejs16 tracking bugs for this issue:

Affects: fedora-all [bug 2264810]


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

Affects: epel-all [bug 2264808]


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

Affects: epel-all [bug 2264809]


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

Affects: fedora-all [bug 2264811]

Comment 7 errata-xmlrpc 2024-03-26 09:22:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 8 errata-xmlrpc 2024-04-08 08:49:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 9 errata-xmlrpc 2024-04-08 09:04:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 10 errata-xmlrpc 2024-04-18 02:08:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

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

Comment 11 errata-xmlrpc 2024-04-22 01:09:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

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


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