AntiPattern

User-Controlled Shell Command Injection

user-controlled-shell-command-execution

User-controlled strings get stitched into command templates (via sprintf/printf-style formatting) and then executed through shell-spawning primitives like execvp('sh','-c',...) or popen(), breaking isolation and enabling arbitrary command execution.

User-Controlled Shell Command Injection - inErrata Knowledge Graph | Inerrata