Saltar al contenido
DayZeroHub
Crítica Sin redactarCVSS 9.2GHSA-g9x9-q7qj-6mv5CVE-2026-63305

CVE-2026-63305: AVideo API FFmpeg process permits OS command injection via notifyCode/callback

WWBN AVideo

Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.

Resumen

CVE-2026-63305: vulnerabilidad de severidad alta (CVSS 8.1) en wwbn/avideo.

Qué ocurre

Descripción original de la fuente (en inglés): ### Summary The standalone FFmpeg execution endpoint `plugin/API/standAlone/ffmpeg.json.php` builds a shell command string that is passed to `execAsync()` and run via `nohup sh -c "<command>"`. When the decrypted `codeToExec` payload produces a non-empty `avideoPath`, the endpoint appends a completion hook of the form: ``` && php <script> notify=<escaped-json> notifyCode=<codeToExec->notifyCode> callback=<codeToExec->callback> ``` The `notify` value on this line is wrapped with `escapeshellarg()`, but the two adjacent fields `notifyCode` and `callback` are concatenated raw. Both fields originate from the same decrypted, attacker-controlled `codeToExec` object as `ffmpegCommand`, but neither passes through the `sanitizeFFmpegCommand()` denylist (only `ffmpegCommand` does) and neither is shell-escaped. An attacker who can craft a valid encrypted payload can therefore inject arbitrary shell commands into the `sh -c` context by placing shell metacharacters in `callback` or `notifyCode`, achieving OS command execution as the web-server user. This is a residual sibling of the recently hardened `sanitizeFFmpegCommand()` denylist: the denylist now strips `; | ` < > & $ ( ) \n \r { }` from `ffmpegCommand`, but the two sibling fields on the same completion-hook line were never routed through it nor escaped, even though the `notify` value beside them on the very same line already is escaped. ### Vulnerable code `plugin/API/standAlone/ffmpeg.json.php` (master HEAD, around lines 406-412): ```php if (!empty($output['avideoPath'])) { if (file_exists($output['avideoPath'])) { unlink($output['avideoPath']); } $outputJson = escapeshellarg(json_encode($output)); $ffmpegCommand .= " && php…

Por qué importa

Severidad alta, CVSS 8.1.

Productos y versiones afectados

wwbn/avideo < 29.1.0 (corregido en 29.1.0)

ProductoVersionesCorregido en
wwbn/avideo< 29.1.029.1.0
WWBN AVideo< 29.1.0—

Acción recomendada por la fuente

Actualizar a una versión corregida: 29.1.0.

Corregido en: 29.1.0

Información tomada de la fuente o del proveedor. Verificala en el enlace original antes de actuar.

Fuentes y referencias

Debilidades (CWE): CWE-78

Historial de cambios relevantes

  1. Cambio de severidad

    La severidad cambió de high a critical.

  2. Publicado

    Aviso preliminar publicado.