CVE-2026-63304: Wwbn/avideo AVideo API Vulnerable To OS Vulnerability
HIGHCVE-2026-63304 is a HIGH (CVSS 8.1) avideo api vulnerable to os vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Wwbn/avideo libraries in the Packagist ecosystem. The issue involves avideo api vulnerable to os command injection through an unescaped ffmpeg process keyword. Remediation is available by upgrading affected packages to version 29.1.0.
CVE-2026-63304 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-63304
To remediate this vulnerability, upgrade all affected Wwbn/avideo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade wwbn/avideo to 29.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for wwbn/avideo
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-63304, inspect your project dependencies for Wwbn/avideo:
inspect dependencies for wwbn/avideo
Analyze the terminal output to locate any version of Wwbn/avideo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 29.1.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Wwbn/avideo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-63304 Affected Wwbn/avideo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
wwbn/avideo
|
Packagist |
< 29.1.0
|
29.1.0
|
References
Frequently Asked Questions
What is CVE-2026-63304?
Which Wwbn/avideo versions are affected?
What version fixes CVE-2026-63304?
Is wwbn/avideo affected?
What is the CVSS score of CVE-2026-63304?
What CWE is associated with CVE-2026-63304?
How can I check Packagist dependencies for CVE-2026-63304?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j44m-77cc-p3cc",
"modified" : "2026-11-24T20:54:44Z",
"published" : "2026-11-23T22:06:28Z",
"aliases" : [ "CVE-2026-63304" ],
"summary" : "AVideo API vulnerable to OS command injection through an unescaped FFmpeg process keyword",
"details" : "### Summary\n\nThe helper `listFFmpegProcesses($keyword)` in `plugin/API/standAlone/functions.php` builds a shell pipeline by interpolating `$keyword` inside single quotes and running it with `exec()`:\n\n```php\n$command .= \" | grep '$keyword'\";\nexec($command, $output, $status);\n```\n\nThe 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.\n\n### Vulnerable code\n\nSink — `plugin/API/standAlone/functions.php`, `listFFmpegProcesses()` (around lines 139-147):\n\n```php\nfunction listFFmpegProcesses($keyword = '')\n{\n $command = \"ps -eo pid,etime,%cpu,%mem,cmd | grep '[f]fmpeg'\";\n\n if (!empty($keyword)) {\n $command .= \" | grep '$keyword'\"; // $keyword interpolated inside single quotes, unescaped\n }\n\n exec($command, $output, $status); // runs via /bin/sh -c\n```\n\nCallers — `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:\n\n```php\n// list mode (line ~221)\n$list = listFFmpegProcesses($codeToExec->keyword);\n\n// isKeywordRunning mode (line ~341)\n$list = listFFmpegProcesses($codeToExec->isKeywordRunning);\n```\n\nNeither mode is gated by the `$isStandAlone` check that guards the `deleteFolder` / `deleteFile` modes, so both run on any AVideo instance.\n\n### Reachability\n\nReached by sending a `codeToExec` payload with either `list = 1` and a malicious `keyword`, or with a malicious `isKeywordRunning` value. Both modes call `listFFmpegProcesses()` with the raw field before any allowlist is applied to it.\n\n### Privilege required\n\nSame trust boundary as the parent command-injection fix in this endpoint: an attacker who can craft a valid encrypted `codeToExec` payload with a valid `APISecret`. `_decryptString()` calls the platform `decryptString` API (AES-256-CBC; key = `hash('sha256', $global['saltV2'])`, iv = `substr(hash('sha256', $global['systemRootPath']), 0, 16)`), and the payload is accepted when `payload->time` is within the last 30 seconds. No interactive login is required.\n\n### Reproduction (end-to-end, against master HEAD)\n\nDeployed the master HEAD source (commit `8eaca9d5`, dated 2026-06-30) in a PHP 8.2 / Apache container backed by MySQL 8.0, ran the genuine platform installer, enabled the API plugin, and confirmed the `decryptString` / `isAPISecretValid` platform APIs live over HTTP. `APISecret` is `md5($global['salt'] . $global['systemRootPath'] . 'API')`.\n\nA `codeToExec` was encrypted (`encryptString()`) with:\n- `time` = now\n- `list` = 1\n- `keyword` = `x'; touch /tmp/avideo_kw_rce_1782909694_20509 #`\n\nPOST:\n\n```\ncurl -s -X POST \"http://<host>/plugin/API/standAlone/ffmpeg.json.php\" \\\n --data-urlencode \"APISecret=<APISecret>\" \\\n --data-urlencode \"codeToExecEncrypted=<encrypted codeToExec>\"\n```\n\nVerbatim response (normal list output while the injection ran as a side effect):\n\n```\n{\"error\":false,\"msg\":\"\",\"list\":[]}\n```\n\nThe injected `touch` ran (marker created by the web-server user):\n\n```\n-rw-r--r-- 1 www-data www-data 0 Jul 1 12:41 /tmp/avideo_kw_rce_1782909694_20509\n```\n\nSame result through the `isKeywordRunning` mode (payload `x'; touch /tmp/avideo_ikr_rce_1782909715_3303 #`):\n\n```\n{\"error\":true,\"msg\":\"No FFmpeg process found with the given keyword\",\"isRunning\":false,\"keyword\":\"x'; touch /tmp/avideo_ikr_rce_1782909715_3303 #\"}\n-rw-r--r-- 1 www-data www-data 0 Jul 1 12:41 /tmp/avideo_ikr_rce_1782909715_3303\n```\n\nNegative control (benign alphanumeric keyword `benignkw123`, `list` mode): same code path, marker NOT created:\n\n```\n{\"error\":false,\"msg\":\"\",\"list\":[]}\nls: cannot access '/tmp/avideo_kwneg_1782909713_28529': No such file or directory\n```\n\nPatched re-run (after applying `escapeshellarg()` as below): the injection is neutralized and the marker is NOT created:\n\n```\n{\"error\":false,\"msg\":\"\",\"list\":[]}\nls: cannot access '/tmp/avideo_kw_rce_PATCHED_1782909782_8294': No such file or directory\n```\n\n### Impact\n\nArbitrary OS command execution on the AVideo host as the web-server user (the account that owns the application files, configuration, database credentials, and `saltV2`). An attacker can read and modify site data, pivot to the database, and persist. This is a distinct sink (the `grep` single-quote breakout in `listFFmpegProcesses`) from the completion-hook concatenation elsewhere in the same endpoint, and it is reachable through two different modes.\n\n### Suggested fix\n\nEscape the keyword at the shell boundary in `listFFmpegProcesses()`:\n\n```php\nif (!empty($keyword)) {\n $command .= \" | grep \" . escapeshellarg($keyword);\n}\n```\n\nAlternatively, have the `list` / `isKeywordRunning` callers pass the already-allowlisted `$keyword` value instead of the raw decrypted field. Escaping inside `listFFmpegProcesses()` is preferred because it protects every caller.\n\n### Credit\n\nReported by tonghuaroot.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "wwbn/avideo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "29.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/WWBN/AVideo/security/advisories/GHSA-j44m-77cc-p3cc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-63304"
}, {
"type" : "WEB",
"url" : "https://github.com/WWBN/AVideo/commit/7559ddf72f48684cc40ae78be9cebcaa07f5fa06"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/WWBN/AVideo"
}, {
"type" : "WEB",
"url" : "https://github.com/WWBN/AVideo/releases/tag/v29.1.0"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/avideo-through-os-command-injection-via-listffmpegprocesses"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-23T22:06:28Z",
"nvd_published_at" : "2026-11-03T18:18:03Z"
}
}