CVE-2026-136124 in ffmate
Summary
by MITRE • 11/24/2026
ffmate before 2.1.0 contains an argument injection vulnerability in wildcardReplacer that allows attackers to inject ffmpeg or script arguments via crafted file names. Attackers who can create files in a watchfolder can break out of quoting to add network inputs or output paths that overwrite files writable by ffmate.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/24/2026
The vulnerability identified in versions of ffmate prior to 2.1.0 represents a critical argument injection flaw located within the wildcardReplacer component. This security defect arises from insufficient sanitization and validation of user-supplied input, specifically when processing file names that contain special characters or wildcards. The core technical issue lies in how the application constructs command-line arguments for ffmpeg without properly escaping metacharacters such as spaces, quotes, semicolons, or pipe symbols. When a crafted filename is processed by the wildcardReplacer function, it fails to adhere to strict quoting rules, allowing an attacker to break out of the intended argument boundaries. This lack of proper input validation enables the injection of arbitrary ffmpeg arguments directly into the execution context of the media processing tool.
From an operational perspective, this vulnerability poses a severe risk because ffmate typically operates with permissions sufficient to read and write files within its designated watchfolders. An attacker who gains the ability to create or manipulate files in these monitored directories can exploit this flaw to execute unintended commands. By injecting specific ffmpeg arguments, such as network input sources like rtsp:// or http:// streams, an attacker can force ffmate to pull malicious content from external servers. Alternatively, by specifying output paths that point to writable locations on the local file system, the attacker can overwrite critical application files, configuration settings, or other sensitive data stored in accessible directories. This capability effectively transforms a media processing utility into a vector for arbitrary code execution and unauthorized file modification.
The impact of this vulnerability extends beyond simple command injection. Because ffmpeg is often used to handle multimedia streams that may contain malicious payloads designed to exploit vulnerabilities within the codec libraries themselves, an attacker could potentially trigger remote code execution through crafted video or audio files processed by ffmate. Furthermore, the ability to overwrite writable files allows for persistence mechanisms or privilege escalation if those overwritten files are executed with higher privileges later in a system workflow. This aligns closely with CWE-78 Improper Neutralization of Special Elements used in an OS Command and CWE-94 Improper Control of Generation of Code, highlighting fundamental failures in input validation and command construction practices common in applications that interface with external binaries.
To mitigate this risk, immediate action is required to upgrade ffmate to version 2.1.0 or later where the wildcardReplacer logic has been hardened against such injection techniques. In environments where upgrading is not immediately feasible, administrators should implement strict file naming policies within watchfolders to prevent the creation of files containing special characters that could be interpreted as command delimiters. Additionally, applying principle of least privilege by running ffmate with restricted filesystem permissions can limit the damage caused by successful exploitation, ensuring that even if an attacker injects arguments to overwrite files, they cannot target critical system or application binaries outside a limited sandboxed directory. Monitoring logs for unusual ffmpeg invocation patterns and restricting network access from the host running ffmate can also reduce the attack surface associated with remote input vectors.