Arbitrary Code Injection Affecting nodejs-debugsource package, versions <1:18.18.2-1.amzn2023.0.2


Severity

Recommended
0.0
high
0
10

Based on Amazon 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-AMZN2023-NODEJSDEBUGSOURCE-6476677
  • published22 Mar 2024
  • disclosed20 Feb 2024

Introduced: 20 Feb 2024

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

How to fix?

Upgrade Amazon-Linux:2023 nodejs-debugsource to version 1:18.18.2-1.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2024-569.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs-debugsource package and not the nodejs-debugsource package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 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