Description
mcp-ffmpeg through 1.0.5 contains an OS command injection vulnerability that allows attackers to run shell commands by supplying crafted videoPath or outputDir values to the resize-video, extract-audio and get-video-info tools. Attackers can embed $(), backticks or a closing double quote in an existing file or directory name to break out of the child_process.exec command string and execute commands as the MCP server user.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
bitscorp-mcp mcp-ffmpeg
Default version status: unaffected
0 to ≤ 1.0.5affected
pkg:npm/mcp-ffmpegReferences
- https://github.com/bitscorp-mcp/mcp-ffmpeg/issues/8 ↗
- https://github.com/bitscorp-mcp/mcp-ffmpeg ↗
- https://github.com/bitscorp-mcp/mcp-ffmpeg/blob/2ec04e44850cc5ee5354c40643be8bc91c218654/src/mcp-ffmpeg.ts#L184 ↗
- https://www.vulncheck.com/advisories/mcp-ffmpeg-through-1.0.5-os-command-injection-via-videopath-and-outputdir ↗