Context-Inappropriate Capability
Medium
- Confidence
- 95% confidence
- Finding
- The code builds shell command strings using untrusted file paths and passes them to child_process.exec, which invokes a shell. In convertSilkToMp3, silkPath and pcmPath are embedded inside a Python one-liner with single quotes, and in both conversion functions paths are interpolated into ffmpeg commands; crafted filenames containing shell metacharacters or quote-breaking characters can lead to command injection and arbitrary command execution.
