
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-44172 is a SQL injection vulnerability in the MariaDB Connector/C library (libmariadb) where mysql_real_escape_string() fails to correctly handle the big5 character set, allowing attackers to bypass the escaping function and inject arbitrary SQL commands. It affects libmariadb versions 3.3.18 and 3.4.8, and was discovered by Jun Rong at Calif.io, published on May 18, 2026, with patches released in versions 3.3.19 and 3.4.9 (GitHub Advisory). The vulnerability carries a CVSS v3.1 base score of 9.8 (Critical) and a CVSS v4.0 base score of 6.9 (Medium) (GitHub Advisory).
The root cause is classified as CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), specifically in how libmariadb's mysql_real_escape_string() processes multi-byte characters in the big5 encoding. The big5 character set uses two-byte sequences where the second byte can coincide with ASCII special characters (e.g., backslash \x5c), causing the escape function to misinterpret the byte stream and leave SQL metacharacters unescaped. Exploitation requires an application that: (1) accepts non-validated user input, (2) escapes it with mysql_real_escape_string(), (3) uses the text protocol (not prepared statements), and (4) connects to the database with the big5 character set configured (GitHub Advisory). The vulnerability is tracked in MariaDB's issue tracker as CONC-819 (GitHub Advisory).
An unauthenticated remote attacker who can supply input to a vulnerable application can inject arbitrary SQL commands, enabling unauthorized reading of sensitive database contents, modification or deletion of data, and potentially operating system command execution if the database account has elevated privileges such as FILE or SUPER (GitHub Advisory). The confidentiality, integrity, and availability impacts are all rated High under CVSS v3.1, reflecting the potential for full database compromise and lateral movement depending on the deployment context.
libmariadb) versions 3.3.18 or 3.4.8 and accept user-supplied input in database queries.0x5c (backslash). When mysql_real_escape_string() processes this, it misinterprets the byte boundary and fails to escape the trailing SQL metacharacter (e.g., a single quote '), leaving it unescaped in the final query.UNION SELECT, OR 1=1, ; DROP TABLE) to extract data, modify records, or escalate privileges depending on the database user's permissions (GitHub Advisory).UNION SELECT, OR 1=1, stacked queries (;), or comment sequences (--, #) originating from application-layer parameters; application error logs showing SQL syntax errors from user-supplied fields.INTO OUTFILE, LOAD_FILE, xp_cmdshell equivalents).INTO OUTFILE statements; new or modified files in the MariaDB data directory.sys_exec) (GitHub Advisory).Upgrade libmariadb (MariaDB Connector/C) to version 3.3.19 or 3.4.9, which contain the fix for this vulnerability (GitHub Advisory). If immediate patching is not possible, two workarounds are available: (1) switch the database connection character set from big5 to gbk or another unaffected encoding, or (2) refactor application code to use parameterized queries (prepared statements) instead of string escaping with mysql_real_escape_string(). SUSE has also released security updates addressing this vulnerability for affected Linux distributions (SUSE Advisory).
SUSE issued security update announcements (SUSE-SU-2026:2282-1 and SUSE-SU-2026:2330-1) addressing this vulnerability for their enterprise Linux distributions (SUSE Advisory). The vulnerability has been picked up by Linux security news outlets and vulnerability aggregators including Tenable (Nessus plugins 319629 and 321069), Alpine Linux, Debian, and openSUSE security channels. The advisory credits Jun Rong at Calif.io as the discoverer (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."