CVE-2024-27980 Affecting nodejs-21 package, versions <21.7.3-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

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 IDSNYK-CHAINGUARDLATEST-NODEJS21-6595513
  • published10 Apr 2024
  • disclosed9 Jan 2025

Introduced: 10 Apr 2024

CVE-2024-27980  (opens in a new tab)

How to fix?

Upgrade Chainguard nodejs-21 to version 21.7.3-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs-21 package and not the nodejs-21 package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

Due to the improper handling of batch files in child_process.spawn / child_process.spawnSync, a malicious command line argument can inject arbitrary commands and achieve code execution even if the shell option is not enabled.