subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"-c:a", "aac", "-b:a", CONFIG['audio_bitrate'], output_path ] ok = subprocess.run(cmd, capture_output=True, text=True).returncode == 0 if os.path.exists(list_file): os.remove(list_file) return ok- Confidence
- 89% confidence
- Finding
- The concatenation flow writes unescaped file paths into an ffmpeg concat list using the syntax file '...'. If a clip path contains a single quote, newline, or specially crafted content, ffmpeg may misparse the list and ingest unintended files or directives, creating a file-format injection issue at the tool boundary.
