CVE-2026-63492
AVideo API vulnerable to OS command injection through an unescaped FFmpeg process keyword
- CVSS
- 8.1
- EPSS
- —
- Published
- 2026-11-23
- Age
- 5d old
- Modified
- 2026-11-23
- Product
- Packagist wwbn/avideo
- Aliases
- GHSA-j44m-77cc-p3cc
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
### 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 } e
Fixed in
29.1.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Packagist | wwbn/avideo | < 29.1.0 | 29.1.0 |
Sources
- GitHub Advisory Database · first seen 5d ago · CC-BY 4.0
References
- https://github.com/WWBN/AVideo/security/advisories/GHSA-j44m-77cc-p3cc other
- https://nvd.nist.gov/vuln/detail/CVE-2026-63492 other
- https://github.com/WWBN/AVideo/commit/7559ddf72f48684cc40ae78be9cebcaa07f5fa06 other
- https://github.com/WWBN/AVideo/releases/tag/v29.1.0 other
- https://github.com/advisories/GHSA-j44m-77cc-p3cc other