Nov 23, 2026·9 min read·0 visits
An OS command injection vulnerability in WWBN AVideo through v29.0 (tracked canonically as CVE-2026-63304 and GHSA-j44m-77cc-p3cc; rejected duplicate CVE-2026-63492) allows remote attackers with knowledge of the platform's cryptographic secrets to execute arbitrary shell commands via the standalone FFmpeg API endpoint. The issue was patched in v29.1.0 by wrapping the parameter in escapeshellarg().
CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.
WWBN AVideo (formerly known as YouPHPTube) is an open-source video sharing and streaming platform written in PHP. To manage media transcoding and background streaming operations, AVideo provides a standalone API component located under the plugin/API/standAlone/ directory. This interface allows external services and internal workers to monitor, invoke, and terminate ffmpeg processes running on the host system.
CVE-2026-63492 was originally assigned by GitHub (GitHub_M) to track an operating system command injection flaw within this standalone API component. Following standard deduplication procedures by the National Vulnerability Database (NVD) and CVE.org, CVE-2026-63492 was formally marked as REJECTED on November 3, 2026, because it duplicates CVE-2026-63304 (assigned by VulnCheck) and GitHub Security Advisory GHSA-j44m-77cc-p3cc. Security teams and vulnerability management scanners should reference CVE-2026-63304 as the authoritative canonical identifier for this flaw.
The vulnerability is classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command). Specifically, the helper function listFFmpegProcesses() in plugin/API/standAlone/functions.php accepts a $keyword parameter and concatenates it directly into a shell command string enclosed in single quotes before passing it to PHP's exec() function. Because the input is not sanitized or escaped using escapeshellarg(), an attacker can supply a payload containing a single quote (') to break out of the intended argument context and append arbitrary shell commands.
The attack surface is exposed over the network via the HTTP endpoint plugin/API/standAlone/ffmpeg.json.php. While the endpoint does not require an interactive user session or standard application login credentials, it enforces a cryptographic verification boundary based on the target instance's internal configuration parameters (salt, saltV2, and systemRootPath). If an adversary acquires or derives these configuration secrets, they can achieve remote code execution under the context of the web server process user (typically www-data).
The root cause of the vulnerability is a combination of unsafe string interpolation in a shell execution sink and a variable pass-through error in the calling endpoint handler. In plugin/API/standAlone/functions.php, the listFFmpegProcesses($keyword = '') function queries active ffmpeg tasks on the server by executing a piped shell command (ps -eo pid,etime,%cpu,%mem,cmd | grep '[f]fmpeg'). When a non-empty $keyword argument is provided, the function appends an additional filter stage to the pipeline: $command .= " | grep '$keyword'";.
In PHP, calling exec($command, $output, $status) spawns a subshell (/bin/sh -c) to parse and execute the command string. Relying solely on literal single quotes ('$keyword') inside a double-quoted PHP string does not prevent command injection if the interpolated variable itself contains a single quote character. When /bin/sh encounters an unescaped single quote within the injected string, it interprets it as the closing delimiter for the grep pattern argument, allowing any subsequent characters—such as a semicolon (;), pipe (|), or logical operator (&&)—to be parsed as new shell commands.
Compounding this flaw in the sink is a logic error in the caller script plugin/API/standAlone/ffmpeg.json.php. Upon receiving an encrypted request payload (codeToExecEncrypted), the script decrypts the JSON structure into an object named $codeToExec. The developer attempted to sanitize the input parameter by stripping non-alphanumeric characters and storing the result in a local variable $keyword:
$keyword = preg_replace('/[^a-zA-Z0-9_-]/', '', $codeToExec->keyword);However, when the endpoint dispatches execution to listFFmpegProcesses(), it fails to pass the sanitized $keyword local variable. Instead, two distinct execution paths inside ffmpeg.json.php pass the raw, unvalidated properties directly from the deserialized $codeToExec object:
list mode (around line 221): $list = listFFmpegProcesses($codeToExec->keyword);isKeywordRunning mode (around line 341): $list = listFFmpegProcesses($codeToExec->isKeywordRunning);Because both caller branches bypass the preg_replace() allowlist filter and pass raw object properties directly to listFFmpegProcesses(), all special characters remain intact when reaching the exec() sink.
The vulnerable code resides in plugin/API/standAlone/functions.php at line 141. Prior to version 29.1.0, the implementation of listFFmpegProcesses() constructed the shell pipeline using direct string concatenation without invoking any shell-escaping routines.
// Vulnerable implementation in plugin/API/standAlone/functions.php (<= v29.0)
function listFFmpegProcesses($keyword = '')
{
$command = "ps -eo pid,etime,%cpu,%mem,cmd | grep '[f]fmpeg'"; // Get PID, elapsed time, CPU & memory usage
if (!empty($keyword)) {
// VULNERABLE SINK: Direct interpolation of $keyword inside single quotes
$command .= " | grep '$keyword'";
}
exec($command, $output, $status);
// ... subsequent parsing of $output ...
}On July 1, 2026, the upstream maintainer addressed the vulnerability in commit 7559ddf72f48684cc40ae78be9cebcaa07f5fa06 by replacing the manual single-quote interpolation with PHP's built-in escapeshellarg() function.
--- a/plugin/API/standAlone/functions.php
+++ b/plugin/API/standAlone/functions.php
@@ -141,7 +141,7 @@ function listFFmpegProcesses($keyword = '')
$command = "ps -eo pid,etime,%cpu,%mem,cmd | grep '[f]fmpeg'"; // Get PID, elapsed time, CPU & memory usage
if (!empty($keyword)) {
- $command .= " | grep '$keyword'";
+ $command .= " | grep " . escapeshellarg($keyword); // FIX: Enclose and escape single quotes safely
}
exec($command, $output, $status);On POSIX-compliant operating systems, escapeshellarg() wraps the input string in single quotes and replaces any existing single quote (') with the sequence '\'' (closing the current single-quoted string, appending an escaped literal single quote, and opening a new single-quoted string). This guarantees that the entire output of escapeshellarg($keyword) is treated by /bin/sh as a single literal argument to grep, completely neutralizing command separators such as ;, |, &, $(), and backticks.
> [!NOTE]
> Fix Completeness Assessment: While escapeshellarg() completely prevents shell command breakout and arbitrary command execution via /bin/sh, the patched command grep " . escapeshellarg($keyword) does not include the standard POSIX end-of-options delimiter (--). If an attacker supplies a $keyword string beginning with a hyphen (e.g., -f /etc/passwd or --help), grep will interpret the escaped argument as a command-line flag rather than a search pattern. While this does not allow direct shell injection in standard grep implementations, defensive coding best practices dictate using grep -- " . escapeshellarg($keyword) and updating the callers in ffmpeg.json.php to pass the strictly allowlisted $keyword variable.
Exploiting CVE-2026-63304 / CVE-2026-63492 requires bypassing the custom cryptographic authentication barrier implemented by plugin/API/standAlone/ffmpeg.json.php. The endpoint does not validate user session cookies; instead, it verifies two request parameters: APISecret and codeToExecEncrypted. These parameters are derived from values stored in the application's primary configuration file (videos/configuration.php):
APISecret: Computed as md5($global['salt'] . $global['systemRootPath'] . 'API').codeToExecEncrypted: A JSON payload encrypted using AES-256-CBC via AVideo's encryptString() helper, where the encryption key is hash('sha256', $global['saltV2']) and the initialization vector (IV) is substr(hash('sha256', $global['systemRootPath']), 0, 16).time integer field whose value is within 30 seconds of the target server's current system clock.An attacker who obtains the target server's salt, saltV2, and systemRootPath—for example, through an arbitrary file read vulnerability, exposed configuration backup, database disclosure, or predictable default deployment scripts—can construct a valid encrypted payload. To trigger the vulnerability via the list execution mode, the attacker crafts the following plaintext JSON object:
{
"time": 1782909694,
"list": 1,
"keyword": "x'; touch /tmp/avideo_kw_rce_1782909694_20509 #"
}Alternatively, the attacker can target the isKeywordRunning execution mode using an identical breakout structure:
{
"time": 1782909715,
"isKeywordRunning": "x'; touch /tmp/avideo_ikr_rce_1782909715_3303 #"
}Once encrypted into codeToExecEncrypted, the attacker submits the payload via an HTTP POST request:
curl -s -X POST "http://<target-host>/plugin/API/standAlone/ffmpeg.json.php" \
--data-urlencode "APISecret=<computed_api_secret>" \
--data-urlencode "codeToExecEncrypted=<aes_256_cbc_encrypted_payload>"When ffmpeg.json.php decrypts the payload and invokes listFFmpegProcesses(), the string passed to exec() evaluates to:
ps -eo pid,etime,%cpu,%mem,cmd | grep '[f]fmpeg' | grep 'x'; touch /tmp/avideo_kw_rce_1782909694_20509 #'The leading x' closes the single-quoted argument to the second grep command. The semicolon (;) terminates the pipeline and starts a new command (touch /tmp/avideo_kw_rce_1782909694_20509). Finally, the octothorpe (#) causes /bin/sh to treat the trailing single quote (') appended by listFFmpegProcesses() as an inline comment, preventing a shell syntax error.
Successful exploitation of this vulnerability grants the attacker arbitrary operating system command execution with the privileges of the web server daemon (commonly www-data, apache, or nginx). From this vantage point, an adversary can read and modify all application source files, extract database credentials from videos/configuration.php, dump or alter the backend MySQL database, access stored media files, and pivot laterally within the internal network.
Under CVSS v3.1, the vulnerability is rated at a base score of 8.1 (High) with the vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. The Attack Vector is Network (AV:N) and Privileges Required is None (PR:N) because the standalone endpoint is directly accessible over HTTP/HTTPS without an authenticated application user account. However, Attack Complexity is rated High (AC:H) because the attacker must possess or derive the server's internal cryptographic parameters (salt, saltV2, and systemRootPath) to pass the APISecret check and encrypt the codeToExecEncrypted payload within the 30-second timestamp window.
Under CVSS v4.0 (assessed by VulnCheck under the canonical record CVE-2026-63304), the vulnerability receives a base score of 9.2 (Critical) with the vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. The AT:P (Attack Requirements: Present) metric explicitly reflects the prerequisite knowledge of the platform's cryptographic secrets required to reach the vulnerable code path.
According to FIRST.org Exploit Prediction Scoring System (EPSS) data, the vulnerability carries an EPSS score of 0.01732 (1.732%), placing it at the 78.22nd percentile of all scored vulnerabilities. While a functional proof-of-concept was published in the upstream GitHub advisory by security researcher tonghuaroot, the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and no automated exploitation in the wild has been recorded.
Administrators operating WWBN AVideo instances should upgrade immediately to version 29.1.0 or later, which incorporates commit 7559ddf72f48684cc40ae78be9cebcaa07f5fa06. This update applies escapeshellarg() to the $keyword argument inside listFFmpegProcesses(), neutralizing single-quote breakout attempts across all calling functions.
For environments where a full platform upgrade cannot be executed immediately, administrators can apply a manual hotfix directly to plugin/API/standAlone/functions.php. Locate the listFFmpegProcesses() function around line 141 and update the command construction logic to include both escapeshellarg() and the -- option delimiter:
if (!empty($keyword)) {
$command .= " | grep -- " . escapeshellarg($keyword);
}In addition to patching the sink, security engineers can harden plugin/API/standAlone/ffmpeg.json.php by ensuring the callers pass the pre-sanitized $keyword variable rather than the raw $codeToExec object properties. If the standalone FFmpeg API (plugin/API/standAlone/ffmpeg.json.php) is not required for distributed transcoding workflows, access to /plugin/API/standAlone/ should be restricted at the web server or reverse proxy level (e.g., via Apache .htaccess or Nginx location blocks) to trusted internal IP addresses only.
Finally, if any unauthorized disclosure of videos/configuration.php is suspected, administrators must rotate the $global['salt'] and $global['saltV2'] values immediately after patching to invalidate any pre-computed APISecret tokens or encryption keys.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
AVideo WWBN | <= 29.0 | 29.1.0 |
| Attribute | Detail |
|---|---|
| CVE Status | REJECTED (Duplicate of CVE-2026-63304 / GHSA-j44m-77cc-p3cc) |
| Weakness Class | CWE-78: OS Command Injection |
| Attack Vector | Network (HTTP POST to /plugin/API/standAlone/ffmpeg.json.php) |
| CVSS v3.1 / v4.0 | 8.1 (High) / 9.2 (Critical) |
| EPSS Score | 1.732% (78.22nd Percentile) |
| Impact | Arbitrary OS Command Execution as Web Server User (www-data) |
| Exploit Status | Public Proof-of-Concept Available |
| CISA KEV Status | Not Listed |
The software 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.
CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.
CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.
CVE-2026-133469 is an improper authentication and input type validation vulnerability in the xo-server component of Vates Xen Orchestra and Xen Orchestra Appliance (XOA). Due to Express cookie-parser JSON deserialization combined with loose truthiness validation and unvalidated Redis query construction, an unauthenticated attacker can supply an empty JSON object cookie (authenticationToken=j:{}) to bypass authentication and hijack the first valid active session token stored in the database. This flaw is actively exploited in the wild to gain administrative control over Xen Orchestra deployments and execute root-level commands on underlying XCP-ng and XenServer hypervisors.
CVE-2026-22816 (GHSA-w78c-w6vf-rw82) is a high-severity flaw in Gradle's dependency resolution engine affecting versions prior to 8.14.4 and versions 9.0.0 through 9.2.1. Due to improper error handling when transient network errors or connection failures exhaust their retry limits, Gradle fails to mark unreachable repositories as disabled and does not abort the resolution queue. Instead, it silently falls through to subsequent repositories configured in the build script. This behavior enables dependency confusion and supply chain attacks when an internal or primary repository experiences connectivity issues, unresolvable DNS, or domain registration lapses.
Gradle versions prior to 8.14.4 and 9.3.0 fail to classify certain fatal network transport exceptions, such as UnknownHostException and NoHttpResponseException, as critical failures during dependency resolution. When these exceptions occur and retry thresholds are exhausted, Gradle fails to disable the unreachable primary repository and instead falls through to subsequent repositories configured in the build script. An attacker capable of disrupting connectivity to an upstream repository can force the build tool to fetch malicious artifacts with matching coordinates from a downstream, untrusted repository.
NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.