Context-Inappropriate Capability
Medium
- Confidence
- 98% confidence
- Finding
- The code interpolates a user-controlled file path into a shell command passed to execSync. Although the path is wrapped in double quotes, shell metacharacters such as command substitution ($()) inside double quotes can still be evaluated, enabling command injection if an attacker supplies a crafted --input-image value.
