subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"-c:a", "copy", video_out, ] subprocess.run(cmd, check=True, capture_output=True) return video_out- Confidence
- 88% confidence
- Finding
- The ffmpeg invocation is executed without shell=True, which avoids classic shell injection, but it still passes user-influenced file paths into ffmpeg's subtitle filter. FFmpeg parses filter arguments itself, and only partial escaping is applied to the SRT path, so crafted paths or output locations can cause option/filter misparsing, arbitrary file overwrite in attacker-chosen locations, or unexpected processing behavior.
