---
id: "CVE-2026-117568"
kind: "vulnerability"
aliases: ["CVE-2026-117568"]
title: "mcp-ffmpeg: crafted file paths let attackers run shell commands"
severity: "high"
cvss: 7.3
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: []
ecosystems: []
tags: ["ai-tooling", "ffmpeg", "mcp", "node", "self-hosted"]
not_affected_if: ["fixed-paths-only", "mcp-ffmpeg-not-installed"]
published_at: "2026-10-27T14:16:39+00:00"
first_seen_at: "2026-10-27T14:32:19+00:00"
updated_at: "2026-10-27T14:32:57+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-117568", "first_seen_at": "2026-10-27T14:32:19+00:00"}]
---

# mcp-ffmpeg: crafted file paths let attackers run shell commands

mcp-ffmpeg through 1.0.5 passes videoPath and outputDir values into a shell command string via child_process.exec in the resize-video, extract-audio and get-video-info tools. An attacker who controls a file or directory name can embed $(), backticks or a double quote to run commands as the MCP server user.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed mcp-ffmpeg version, for example with `npm ls mcp-ffmpeg`, and see whether it is `1.0.5` or earlier.
- Look for the mcp-ffmpeg server in your MCP client configuration and confirm which tools it exposes.

## Fix

- Upgrade mcp-ffmpeg to a version later than `1.0.5`; the sources do not name the fixed release, so check the package registry.
- Until patched, stop exposing the resize-video, extract-audio and get-video-info tools to untrusted input and avoid running the server on directories that untrusted users can name.

## Timeline

- 2026-10-27T14:32:19+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-117568

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
