Skip to content
DayZeroHub
Critical Not yet writtenCVSS 9.2GHSA-j44m-77cc-p3ccCVE-2026-63492CVE-2026-63304

CVE-2026-63304: AVideo API vulnerable to OS command injection through an unescaped FFmpeg process keyword

WWBN AVideo

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-63304: high-severity vulnerability (CVSS 8.1) in wwbn/avideo.

What happened

Original description from the source: ### 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 = list…

Why it matters

High severity, CVSS 8.1.

Affected products and versions

wwbn/avideo < 29.1.0 (fixed in 29.1.0)

ProductVersionsFixed in
wwbn/avideo< 29.1.029.1.0
WWBN AVideo< 29.1.0—

Action recommended by the source

Upgrade to a fixed version: 29.1.0.

Fixed in: 29.1.0

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-78

Relevant change history

  1. Severity changed

    Severity changed from high to critical.

  2. Published

    Preliminary advisory published.