← VULNERABILITIES

CVE-2026-63492

AVideo API vulnerable to OS command injection through an unescaped FFmpeg process keyword

High · 8.1Fix available
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

EcosystemPackageRangeFixed
Packagistwwbn/avideo< 29.1.029.1.0

Sources

References

JSON