CVE-2026-63304
### Summary The helper `listFFmpegProcesses($keyword)` in `plugin/API/standAlone/functions.php` builds a shell pipeline by interpolating `$keyword` inside single quotes and running it with `exec()`: ```php $command .= " | grep '$keyword'"; exec($command, $output, $status); ``` The two callers in `plugin/API/standAlone/ffmpeg.json.php` (the `list` mode and the `isKeywordRunning` mode) pass the RAW decrypted `codeToExec` field, not the sanitized `$keyword` variable that the endpoint allowlists elsewhere. Because the value is placed inside a single-quoted shell context with no escaping, a payload that closes the quote (for example `x'; touch /tmp/marker #`) breaks out and injects an arbitrary command that runs via `exec()`'s `/bin/sh -c`. An attacker who can craft a valid encrypted payload achieves OS command execution as the web-server user. ### Vulnerable code Sink — `plugin/API/standAlone/functions.php`, `listFFmpegProcesses()` (around lines 139-147): ```php function listFFmpegProcesses($keyword = '') { $command = "ps -eo pid,etime,%cpu,%mem,cmd | grep '[f]fmpeg'"; if (!empty($keyword)) { $command .= " | grep '$keyword'"; // $keyword interpolated inside single quotes, unescaped } exec($command, $output, $status); // runs via /bin/sh -c ``` Callers — `plugin/API/standAlone/ffmpeg.json.php` pass the RAW decrypted field, bypassing the allowlisting applied to the local `$keyword` variable. That local variable is built at line ~136 as `$keyword = preg_replace('/[^a-zA-Z0-9_-]/', '', $codeToExec->keyword)`, but the two callers below never use it: ```php // list mode (line ~221) $list = listFFmpegProcesses($codeToExec->keyword); // isKeywordRunning mode (line ~341) $list = listFFmpegProcesses($codeToExec->isKeywordRunning); ``` Neither mode is gated by the `$isStandAlone` check that guards the `deleteFolder` / `deleteFile` modes, so both run on any AVideo instance. ### Reachability Reached by sending a `codeToExec` payload with
Properties
- Severity
- high
- Summary
- AVideo API vulnerable to OS command injection through an unescaped FFmpeg process keyword
- Cvss score
- 8.1
- Retrieved at
- 2026-11-24T21:08:41+00:00
- Ghsa published
- 2026-11-23T22:06:28Z
- Source url
- https://github.com/advisories/GHSA-j44m-77cc-p3cc
- Ghsa updated
- 2026-11-24T20:54:45Z
- Ghsa id
- GHSA-j44m-77cc-p3cc
- Last source
- GitHub Advisory Database
- Cve id
- CVE-2026-63304
- Cvss vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- First seen by Signal
- 2026-11-24T21:08:41+00:00
- Is ghsa only
- false
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph