CVE-2024-27980 Affecting nodejs-20 package, versions <20.12.2-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

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 IDSNYK-WOLFILATEST-NODEJS20-6595568
  • published10 Apr 2024
  • disclosed9 Jan 2025

Introduced: 10 Apr 2024

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

How to fix?

Upgrade Wolfi nodejs-20 to version 20.12.2-r0 or higher.

NVD Description

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