Arbitrary Code Injection Affecting nodejs:18/npm package, versions <1:10.2.4-1.18.19.1.1.module+el9.2.0+21594+a052107e


Severity

Recommended
0.0
high
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL9-NODEJS-6675270
  • published27 Apr 2024
  • disclosed16 Feb 2024

Introduced: 16 Feb 2024

CVE-2024-21892  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade RHEL:9 nodejs:18/npm to version 1:10.2.4-1.18.19.1.1.module+el9.2.0+21594+a052107e or higher.
This issue was patched in RHSA-2024:1932.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs:18/npm package and not the nodejs:18/npm package as distributed by RHEL. See How to fix? for RHEL:9 relevant fixed versions and status.

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.

CVSS Scores

version 3.1