Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 3 min read

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

CVE-2026-63305: OS Command Injection in WWBN AVideo Standalone FFmpeg Script Vulnerability ID: CVE-2026-63305 CVSS Score: 8.1 Published: 2026-11-24 CVE-2026-63305 (GHSA-g9x9-q7qj-6mv5) is an operating system command

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

Vulnerability ID: CVE-2026-63305
CVSS Score: 8.1
Published: 2026-11-24

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.

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.

Technical Details

  • Vulnerability Type: CWE-78: OS Command Injection
  • Affected Component: plugin/API/standAlone/ffmpeg.json.php
  • CVSS v3.1 / v4.0: 8.1 (High) / 9.2 (Critical)
  • EPSS Score: 1.77% (78.56th Percentile)
  • Attack Vector: Network (Requires valid encrypted payload)
  • Impact: Arbitrary Remote Command Execution
  • Patched Version: v29.1.0
  • CISA KEV Status: Not Listed

Affected Systems

  • WWBN AVideo <= 29.0
  • AVideo: <= 29.0 (Fixed in: 29.1.0)

Code Analysis

Commit: 56cd4e9

Escape notifyCode and callback parameters with escapeshellarg() in plugin/API/standAlone/ffmpeg.json.php

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);

Mitigation Strategies

  • Upgrade WWBN AVideo to version 29.1.0 or later to ensure all shell arguments in standalone FFmpeg hooks are properly escaped.
  • Restrict network access to plugin/API/standAlone/ffmpeg.json.php using web server ACLs or firewall rules so only authorized internal nodes can invoke it.
  • Rotate the AVideo installation salt and APISecret keys if unauthorized disclosure or token forgery is suspected.
  • Monitor FFmpeg execution logs (videos/ffmpegLogs/ffmpeg_*.log) and host process trees for anomalous subshell commands spawned by the web server user.

Remediation Steps:

  1. Back up the existing AVideo installation directory and database.
  2. Pull the latest release (v29.1.0 or higher) from the official WWBN/AVideo repository or apply commit 56cd4e90983bbd8f800f42be29718f7ee2ca3a5a directly to plugin/API/standAlone/ffmpeg.json.php.
  3. Verify that lines 411-414 of plugin/API/standAlone/ffmpeg.json.php wrap both $codeToExec->notifyCode and $codeToExec->callback in escapeshellarg((string)...).
  4. Audit videos/ffmpegLogs/ for any historical log entries containing shell metacharacters after notifyCode= or callback=.
  5. Configure web server directives (Apache/Nginx) to deny external public access to /plugin/API/standAlone/.

References

Read the full report for CVE-2026-63305 on our website for more details including interactive diagrams and full exploit analysis.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.