subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"-pix_fmt", "yuv420p", "-an", str(dst), ] print(f" {sid}: {printed} + sub") r = subprocess.run(cmd, capture_output=True, text=True) if r.returncode != 0: print(r.stderr[-1000:]) sys.exit(1)- Confidence
- 84% confidence
- Finding
- The ffmpeg invocation embeds untrusted subtitle text and a user-controllable font path into a complex filter string. While subprocess shell injection is avoided, ffmpeg filter parsing has its own metacharacter rules; insufficient escaping of text/filter values can break filter boundaries, cause unintended file access through filter options like textfile/fontfile, or produce unsafe behavior when handling adversarial content.
