CVE-2025-5273: Exec Shell Command Injection

Constructing shell commands using string interpolation or concatenation and executing them via `exec` can lead to command injection if variables contain unsanitized user input. Prefer `execFile` where arguments are passed as an array to bypass shell interpretation entirely.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2025-5273-exec-shell-command-injection --engine opengrep

Description

Constructing shell commands using string interpolation or concatenation and executing them via `exec` can lead to command injection if variables contain unsanitized user input. Prefer `execFile` where arguments are passed as an array to bypass shell interpretation entirely.