CVE-2025-64756: Foreground Child Shell True

Spawning child processes with 'shell: true' via 'foreground-child' can lead to OS command injection if arguments (like filenames) contain shell metacharacters. Ensure untrusted inputs are properly escaped, or avoid using 'shell: true' by passing arguments directly or correctly wrapping with a shell explicitly.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2025-64756-foreground-child-shell-true --engine opengrep

Description

Spawning child processes with 'shell: true' via 'foreground-child' can lead to OS command injection if arguments (like filenames) contain shell metacharacters. Ensure untrusted inputs are properly escaped, or avoid using 'shell: true' by passing arguments directly or correctly wrapping with a shell explicitly.