CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-63305

CVE-2026-63305: OS Command Injection in WWBN AVideo Standalone FFmpeg Script

Alon Barad
Alon Barad
Software Engineer

Nov 24, 2026·10 min read·1 visit

Executive Summary (TL;DR)

An OS command injection flaw in WWBN AVideo (<= 29.0) within plugin/API/standAlone/ffmpeg.json.php allows attackers with a valid encrypted payload to execute arbitrary shell commands via unsanitized notifyCode and callback parameters. The issue is resolved in version 29.1.0.

CVE-2026-63305 (GHSA-g9x9-q7qj-6mv5) is an operating system command injection vulnerability affecting WWBN AVideo (formerly YouPHPTube) versions up to and including 29.0. The defect resides in the standalone FFmpeg execution handler at plugin/API/standAlone/ffmpeg.json.php. When assembling asynchronous post-processing commands, the script concatenates the notifyCode and callback properties from a decrypted payload directly into a shell command string without sanitization. An attacker capable of providing or forging a valid encrypted execution payload can inject shell metacharacters to achieve remote code execution under the privileges of the web server user.

Vulnerability Overview

WWBN AVideo is an open-source video streaming and content management platform written in PHP. To handle resource-intensive media transcoding operations, AVideo provides a standalone API architecture that decouples FFmpeg processing from the core web application. The script plugin/API/standAlone/ffmpeg.json.php acts as the primary execution and monitoring endpoint for these asynchronous media processing tasks.

In AVideo versions 29.0 and earlier, plugin/API/standAlone/ffmpeg.json.php contains an OS command injection vulnerability tracked as CVE-2026-63305 (and GitHub Security Advisory GHSA-g9x9-q7qj-6mv5). The vulnerability is classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command). It occurs during the construction of a secondary PHP CLI notification command that is appended to the primary FFmpeg command string.

To queue a transcoding job, a client sends an HTTP GET or POST request containing an encrypted parameter named codeToExecEncrypted. The endpoint decrypts this blob into a structured configuration object containing the media command and completion hook metadata. While the application applies specific filtering to the primary FFmpeg command string, it fails to sanitize the notifyCode and callback metadata fields before interpolating them into the shell execution pipeline.

If an attacker can generate, capture, or forge a valid codeToExecEncrypted payload, they can inject arbitrary shell directives into the notifyCode or callback properties. When the assembled string is passed to the system shell for asynchronous background execution, the injected directives execute with the privileges of the underlying web server daemon (typically www-data or apache).

Root Cause Analysis

The root cause of CVE-2026-63305 is an incomplete input sanitization pattern where primary command strings are filtered, but chained command arguments derived from the same untrusted data object are trusted implicitly. The execution flow begins when plugin/API/standAlone/ffmpeg.json.php extracts the codeToExecEncrypted parameter from the incoming HTTP request via the getInput() helper function.

The encrypted string is passed to _decryptString(), which communicates with the internal AVideo API endpoint (plugin/API/get.json.php?APIName=decryptString) to validate and decrypt the payload. Upon successful decryption, the variable $codeToExec is populated as a PHP object containing several properties: ffmpegCommand, keyword, notifyCode, and callback.

The script first processes $codeToExec->ffmpegCommand through sanitizeFFmpegCommand(), a custom filtering routine designed to strip shell control operators such as ;, &, |, backticks, redirection operators, and subshell invocations ($()). Following this check, the script parses the target output file paths from the command to determine if an AVideo media destination path ($output['avideoPath']) is defined.

When $output['avideoPath'] is non-empty, the script appends a post-processing notification command using the logical AND (&&) shell operator. This secondary command invokes the PHP CLI binary to run ffmpeg.json.php again with completion arguments. In vulnerable versions, while the $outputJson argument and script path are properly sanitized with escapeshellarg(), the $codeToExec->notifyCode and $codeToExec->callback properties are concatenated directly into the string without escaping.

Finally, the composite $ffmpegCommand string is passed to execAsync($ffmpegCommand, $keyword). The execAsync() function wraps the command string inside a nohup sh -c "<command>" > /dev/null 2>&1 & envelope. Because the string is interpreted directly by /bin/sh, any unescaped shell metacharacters within notifyCode or callback break out of the argument context and execute as independent OS commands.

Code Analysis

In versions up to 29.0, the vulnerable code block resides around line 408 of plugin/API/standAlone/ffmpeg.json.php. After verifying that $output['avideoPath'] is populated and removing any pre-existing file at that destination, the script constructs the notification hook using raw string interpolation for the trailing arguments.

// Vulnerable code in plugin/API/standAlone/ffmpeg.json.php (<= v29.0)
if (!empty($output['avideoPath'])) {
    if (file_exists($output['avideoPath'])) {
        unlink($output['avideoPath']);
    }
    $outputJson = escapeshellarg(json_encode($output));
    // VULNERABILITY: $codeToExec->notifyCode and $codeToExec->callback are interpolated directly
    $ffmpegCommand .= " && php " . escapeshellarg(__DIR__ . "/ffmpeg.json.php") . " notify={$outputJson} notifyCode={$codeToExec->notifyCode} callback={$codeToExec->callback}";
}
$ffmpegCommand .= " 2>&1";
file_put_contents($logFile, $ffmpegCommand . PHP_EOL . PHP_EOL);
$pid = execAsync($ffmpegCommand, $keyword);

Notice the inconsistency within the single concatenation statement. The developer recognized the need to escape both __DIR__ . "/ffmpeg.json.php" and json_encode($output) using escapeshellarg(), as JSON strings contain quotes and braces that interfere with shell parsing. However, notifyCode and callback were assumed to be benign alphanumeric tokens or harmless identifiers, allowing arbitrary characters to pass straight into the shell buffer.

Commit 56cd4e90983bbd8f800f42be29718f7ee2ca3a5a, authored by Daniel Neto, addresses this flaw by explicitly casting both properties to strings and passing them through PHP's native escapeshellarg() function before concatenation.

File: plugin/API/standAlone/ffmpeg.json.php
@@ -408,7 +408,10 @@
         unlink($output['avideoPath']);
     }
     $outputJson = escapeshellarg(json_encode($output));
-    $ffmpegCommand .= " && php " . escapeshellarg(__DIR__ . "/ffmpeg.json.php") . " notify={$outputJson} notifyCode={$codeToExec->notifyCode} callback={$codeToExec->callback}";
+    $ffmpegCommand .= " && php " . escapeshellarg(__DIR__ . "/ffmpeg.json.php")
+        . " notify=" . $outputJson
+        . " notifyCode=" . escapeshellarg((string)$codeToExec->notifyCode)
+        . " callback=" . escapeshellarg((string)$codeToExec->callback);
 }
 $ffmpegCommand .= " 2>&1";
 file_put_contents($logFile, $ffmpegCommand . PHP_EOL . PHP_EOL);

> [!NOTE] > In POSIX environments (such as standard Linux distributions), escapeshellarg() encloses the string in single quotes (') and escapes any existing single quotes by replacing them with '\''. Because the POSIX shell treats everything inside single quotes literally, metacharacters like ;, |, &, and $() cannot trigger command separation or subshell evaluation.

From a patch completeness standpoint, wrapping the arguments in escapeshellarg() effectively prevents shell breakout on Linux deployments. However, two architectural caveats remain:

  1. On Windows systems running under cmd.exe, PHP's escapeshellarg() replaces double quotes and wraps strings in double quotes, which does not prevent environment variable expansion (%VAR%) and can exhibit parsing anomalies when interacting with certain command-line parsers.
  2. The broader codebase continues to rely on string concatenation and shell wrapping (sh -c) via execAsync() rather than using parameterized process creation APIs like proc_open() with an argument array, which would bypass the system shell entirely.

Exploitation

Exploiting CVE-2026-63305 requires meeting two specific prerequisites. First, the standalone endpoint plugin/API/standAlone/ffmpeg.json.php must be reachable over the network by the attacker. Second, because the script processes the input through _decryptString($codeToExecEncrypted), the attacker must possess a valid encrypted payload. This prerequisite is reflected in the CVSS v3.1 High Attack Complexity (AC:H) and CVSS v4.0 Attack Requirements Present (AT:P) metrics.

An attacker can satisfy the encryption requirement through several avenues: compromising or guessing a weak system installation salt or APISecret, abusing an authenticated session or adjacent API endpoint that acts as an encryption oracle, or extracting the cryptographic secret via a separate arbitrary file read or SQL injection vulnerability within the AVideo ecosystem.

To trigger the vulnerable code branch, the decrypted payload must also cause $output['avideoPath'] to evaluate as non-empty. The script populates $output['avideoPath'] by inspecting $codeToExec->ffmpegCommand for a recognizable AVideo video storage directory pattern (such as /videos/). Furthermore, because the injection resides after the && operator in the command string, either the preceding ffmpeg command must succeed (return exit code 0), or the attacker must structure the injected string using a command separator like ; or || so execution proceeds regardless of whether the dummy ffmpeg invocation succeeds.

{
  "ffmpegCommand": "ffmpeg -version /var/www/html/videos/user/output.mp4",
  "keyword": "transcode_job",
  "notifyCode": "1; id > /var/www/html/videos/rce.txt; #",
  "callback": "default"
}

When the JSON structure above is encrypted into codeToExecEncrypted and submitted to plugin/API/standAlone/ffmpeg.json.php, the application decrypts the object, verifies that /videos/user/output.mp4 matches the expected path structure, and builds the following raw command string:

ffmpeg -version /var/www/html/videos/user/output.mp4 && php '/var/www/html/plugin/API/standAlone/ffmpeg.json.php' notify='{"avideoPath":"/var/www/html/videos/user/output.mp4"}' notifyCode=1; id > /var/www/html/videos/rce.txt; # callback=default 2>&1

When execAsync() passes this string to nohup sh -c, the shell parses the command sequence:

  1. If ffmpeg returns exit status 0 (or if the attacker injects a semicolon 1; id... which the shell evaluates unconditionally as a separate statement in the pipeline), the shell begins executing the php CLI notification command with notifyCode=1.
  2. Upon reaching the unescaped ;, the shell terminates the php command line and executes id > /var/www/html/videos/rce.txt as a standalone command.
  3. The # character comments out the remainder of the line (callback=default 2>&1), preventing syntax errors from trailing arguments.

Impact Assessment

Successful exploitation of CVE-2026-63305 grants the attacker arbitrary remote command execution on the host operating system under the security context of the web server user (e.g., www-data, nginx, or apache). In a standard AVideo deployment, this level of access results in a complete compromise of the application and its hosted media assets.

With shell access as the web server user, an attacker can read the platform's configuration file (videos/configuration.php), which stores plaintext database credentials, the system encryption salt ($global['salt']), and internal API secrets. Using these credentials, the attacker can dump or modify the backend MySQL/MariaDB database, hijack administrative accounts, access private video streams, or plant persistent PHP web shells within the web root.

In distributed architectures where ffmpeg.json.php is deployed on dedicated standalone transcoding worker nodes, the compromise is initially scoped to the transcoding server. However, because standalone nodes communicate back to the primary AVideo instance using shared secrets and notification callbacks, an attacker can leverage credentials recovered from the worker node to pivot to the main application server.

The National Vulnerability Database (NVD) rates this vulnerability at a CVSS v3.1 base score of 8.1 (High) (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H), while the assigning CNA (VulnCheck) assigns a CVSS v4.0 base score of 9.2 (Critical) (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). Both scores reflect the complete loss of confidentiality, integrity, and availability on the target system, balanced by the precondition of obtaining a valid encrypted payload. As of current threat intelligence tracking, the EPSS score is 0.01768 (78.56th percentile), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Remediation

To remediate CVE-2026-63305, administrators should upgrade all WWBN AVideo installations and standalone transcoding nodes to version 29.1.0 or later. Release v29.1.0 incorporates commit 56cd4e90983bbd8f800f42be29718f7ee2ca3a5a, which neutralizes the injection vector by applying escapeshellarg() to both notifyCode and callback.

For environments where a full version upgrade cannot be performed immediately, operators should manually patch plugin/API/standAlone/ffmpeg.json.php by applying the changes from commit 56cd4e90983bbd8f800f42be29718f7ee2ca3a5a. Verify that $codeToExec->notifyCode and $codeToExec->callback are explicitly cast to (string) and enclosed within escapeshellarg() calls prior to command concatenation.

As a defense-in-depth measure, access to the standalone API directory (plugin/API/standAlone/) should be restricted at the network or web server layer. If standalone transcoding is not utilized, remove or disable plugin/API/standAlone/ffmpeg.json.php. If standalone transcoding is required, configure Nginx or Apache access control lists (ACLs) to permit requests to ffmpeg.json.php only from trusted internal application IP addresses or 127.0.0.1.

# Example Nginx configuration restricting access to standalone FFmpeg endpoint
location ~ ^/plugin/API/standAlone/ffmpeg\.json\.php$ {
    allow 127.0.0.1;
    allow 10.0.0.0/24; # Replace with trusted internal AVideo node subnet
    deny all;
    include fastcgi_params;
    fastcgi_pass unix:/var/run/php/php-fpm.sock;
}

Finally, security teams should audit historical FFmpeg execution logs stored in videos/ffmpegLogs/ffmpeg_*.log. Because ffmpeg.json.php writes the exact constructed $ffmpegCommand string to $logFile immediately before calling execAsync(), any exploitation attempt will leave a direct forensic trace in these log files containing unexpected shell operators (;, |, `, $()) following the notifyCode= or callback= parameters. If compromise or secret exposure is suspected, rotate the system installation salt and APISecret immediately.

Official Patches

WWBNGitHub commit fixing OS command injection in plugin/API/standAlone/ffmpeg.json.php
WWBNWWBN AVideo v29.1.0 official release
GitHubGitHub Security Advisory GHSA-g9x9-q7qj-6mv5

Fix Analysis (1)

Technical Appendix

CVSS Score
8.1/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Probability
1.77%
Top 21% most exploited

Affected Systems

WWBN AVideo <= 29.0

Affected Versions Detail

Product
Affected Versions
Fixed Version
AVideo
WWBN
<= 29.029.1.0
AttributeDetail
Vulnerability TypeCWE-78: OS Command Injection
Affected Componentplugin/API/standAlone/ffmpeg.json.php
CVSS v3.1 / v4.08.1 (High) / 9.2 (Critical)
EPSS Score1.77% (78.56th Percentile)
Attack VectorNetwork (Requires valid encrypted payload)
ImpactArbitrary Remote Command Execution
Patched Versionv29.1.0
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1059Command and Scripting Interpreter
Execution
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

The software constructs all or part of an OS command using externally-influenced input from an upstream component, but does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when sent to a downstream component.

Vulnerability Timeline

Fix commit 56cd4e90983bbd8f800f42be29718f7ee2ca3a5a committed by Daniel Neto to WWBN/AVideo
2026-07-01
GitHub Security Advisory GHSA-g9x9-q7qj-6mv5 and CVE-2026-63305 published by VulnCheck
2026-07-16
National Vulnerability Database (NVD) published CVE-2026-63305 and initial CVSS v3.1 assessment
2026-07-16
CVE record updated with finalized metadata and CNA references
2026-07-20
NVD record modified and finalized
2026-10-24

References & Sources

  • [1]GitHub Security Advisory: GHSA-g9x9-q7qj-6mv5
  • [2]VulnCheck Advisory: AVideo OS Command Injection via ffmpeg.json.php
  • [3]GitHub Fix Commit: 56cd4e90983bbd8f800f42be29718f7ee2ca3a5a
  • [4]WWBN AVideo Release v29.1.0
  • [5]NVD - CVE-2026-63305
  • [6]CVE.org Record: CVE-2026-63305
  • [7]CVE List V5 Entry: CVE-2026-63305.json

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 3 hours ago•CVE-2026-59192
6.9

CVE-2026-59192: Unsafe Deserialization in CakePHP TwigView UtilsExtension

The cakephp/twig-view plugin integrates the Twig templating engine into the CakePHP framework. Prior to versions 1.3.3 and 2.1.2, the UtilsExtension class exposes PHP's native unserialize() function as a Twig filter without restricting allowed classes. When untrusted data is passed into the unserialize filter within a template, an attacker can trigger PHP Object Injection and execute Property-Oriented Programming (POP) gadget chains, leading to arbitrary code execution or data manipulation.

Alon Barad
Alon Barad
3 views•8 min read
•about 19 hours ago•CVE-2026-63402
5.9

CVE-2026-63402: Prototype-Chain Traversal and Shared Built-in Corruption in i18next

CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 20 hours ago•CVE-2026-58262
7.1

CVE-2026-58262: BLS Signature Quorum Bypass via PubKeysBitmap Padding Bits in Klever-Go

CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.

Alon Barad
Alon Barad
4 views•14 min read
•about 21 hours ago•CVE-2026-77423
7.5

CVE-2026-77423: Regular Expression Denial of Service (ReDoS) in JLine Built-in Less Viewer

CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.

Alon Barad
Alon Barad
5 views•10 min read
•about 22 hours ago•CVE-2026-63492
8.1

CVE-2026-63492 (Duplicate of CVE-2026-63304): OS Command Injection in WWBN AVideo Standalone API

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.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 23 hours ago•CVE-2026-63476
4.3

CVE-2026-63476: Unbounded Memory Allocation and Denial of Service in isomorphic-git Packfile Delta Parser

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.

Amit Schendel
Amit Schendel
6 views•10 min read