CVE-2026-44172

MariaDB: mysql_real_escape_string() incorrectly handled big5

Published Jun 12, 2026 CVSS 4.0 · 6.9 Medium EPSS 1.0% KEV · Not listed
Description
MariaDB server is a community developed fork of MySQL server. In versions 3.3.18 and 3.4.8, an application that was taking non-validated user input, escaping it with mysql_real_escape_string() and sending it to the database using text protocol and big5 character set was vulnerable to SQL injections, even though mysql_real_escape_string() was supposed to prevent them. This issue has been patched in versions 3.3.19 and 3.4.9.

Analysis

AI-generated

Technical impact

MariaDB server versions 3.3.18 and 3.4.8 incorrectly handled the big5 character set when escaping user input with mysql_real_escape_string(), permitting an attacker to inject malicious SQL. The flaw defeats the intended protection of the escape routine, allowing the attacker to read, modify, or delete data in the database, potentially compromising confidentiality and integrity of stored information. This vulnerability is categorized as a SQL injection flaw (CWE‑89).

Affected Systems

The issue affects MariaDB server 3.3.18 and 3.4.8. Affected applications are those that take untrusted input, use mysql_real_escape_string() for escaping, and send the data to the database over the text protocol with the big5 character set. The upgrade path is to 3.3.19 or 3.4.9, where the bug is fixed.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity and the EPSS score of less than 1% suggests a very low but non‑zero probability of exploitation. The vulnerability is not listed in the CISA KEV catalog, implying limited public exploitation. The likely attack vector involves an application layer interface where an attacker supplies crafted input that is not properly validated; the improper escaping can be exploited remotely through any component that delegates user input to the database using the text protocol with big5 encoding. The impact scope depends on the privileges of the database user called by the connection; if a privileged account is used, an attacker could gain full control of the database.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MariaDB to version 3.3.19 or 3.4.9, which contains the fix for this escape‐handling bug.
  • If an upgrade is not immediately feasible, disable or avoid the big5 character set on connections that use mysql_real_escape_string(); alternatively, remove or isolate any code paths that use this charset.
  • Ensure all applications that rely on mysql_real_escape_string() employ parameterized queries or modern prepared statement APIs, especially when handling non‑validated input, to eliminate the need for manual escaping.

Generated by OpenCVE AI on June 12, 2026 at 19:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8536-1 MariaDB vulnerabilities
History
Type Values Removed Values Added
First Time appeared Mariadb mariadb
CPEs cpe:2.3:a:mariadb:mariadb:3.3.18:*:*:*:*:*:*:*
cpe:2.3:a:mariadb:mariadb:3.4.8:*:*:*:*:*:*:*
Vendors & Products Mariadb mariadb
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mariadb
Mariadb server
Vendors & Products Mariadb
Mariadb server
Type Values Removed Values Added
Description MariaDB server is a community developed fork of MySQL server. In versions 3.3.18 and 3.4.8, an application that was taking non-validated user input, escaping it with mysql_real_escape_string() and sending it to the database using text protocol and big5 character set was vulnerable to SQL injections, even though mysql_real_escape_string() was supposed to prevent them. This issue has been patched in versions 3.3.19 and 3.4.9.
Title MariaDB: mysql_real_escape_string() incorrectly handled big5
Weaknesses CWE-89
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 17, 2026, 12:04 PM
Reserved
May 5, 2026, 2:39 PM
Status
Modified
Published
Jun 12, 2026, 6:16 PM
Modified
Oct 26, 2026, 11:10 AM
Severity
Important
Public date
Jun 12, 2026, 5:34 PM