ffmpeg-vapoursynth
Fail
Audited by Gen Agent Trust Hub on Jun 27, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The helper script
scripts/vspipe.pygenerates temporary Python scripts (.vpy) to be executed by the VapourSynth engine. Thesource_snippetfunction (lines 94-107) uses f-strings to embed the user-suppliedinput_pathdirectly into the generated code (e.g.,f'clip = core.ffms2.Source(r"{input_path}")'). This allows an attacker to terminate the string and inject arbitrary Python commands using a crafted file path (e.g.,path/to/video.mkv")\nimport os;os.system("id")#). - [COMMAND_EXECUTION]: The skill uses
subprocess.callandsubprocess.Popeninscripts/vspipe.py(functionsrun_cmdandrun_pipe) to execute system commands likevspipeandffmpeg. While these commands are invoked using lists rather than raw shells, the script accepts arbitrary extra arguments via the--ffmpeg-extraflag (usingnargs=argparse.REMAINDER), which could be misused if the AI agent passes untrusted input into these parameters. - [DYNAMIC_EXECUTION]: The core functionality of the skill involves the dynamic generation and execution of Python scripts. As noted in the
SKILL.mddocumentation,.vpyfiles are full Python scripts that execute in the user's environment, representing a significant attack surface if the script generation logic is flawed or if the agent is instructed to run external scripts.
Recommendations
- AI detected serious security threats
Audit Metadata