{"id":"CVE-2026-63492","aliases":["GHSA-j44m-77cc-p3cc"],"title":"AVideo API vulnerable to OS command injection through an unescaped FFmpeg process keyword","originalDescription":"### 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","severity":{"cvss":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[{"ecosystem":"Packagist","name":"wwbn/avideo","range":"< 29.1.0","fixed":"29.1.0"}],"references":[{"url":"https://github.com/WWBN/AVideo/security/advisories/GHSA-j44m-77cc-p3cc","type":"other"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63492","type":"other"},{"url":"https://github.com/WWBN/AVideo/commit/7559ddf72f48684cc40ae78be9cebcaa07f5fa06","type":"other"},{"url":"https://github.com/WWBN/AVideo/releases/tag/v29.1.0","type":"other"},{"url":"https://github.com/advisories/GHSA-j44m-77cc-p3cc","type":"other"}],"sources":[{"name":"ghsa","at":"2026-11-24T20:41:14.132Z","url":"https://github.com/advisories/GHSA-j44m-77cc-p3cc","license":"CC-BY 4.0","firstSeenAt":"2026-11-23T22:38:50.467Z"}],"firstSeenAt":"2026-11-23T22:38:50.467Z","publishedAt":"2026-11-23T22:06:28.000Z","modifiedAt":"2026-11-23T22:06:29.000Z"}