The CVE text says “MariaDB server”, but this bug actually lives in the client library your app uses to talk to the database.
At a glance
- CVE: CVE-2026-44172. MariaDB’s advisory is GHSA-pv9p-5w55-55jm, tracked as CONC-819 in the MariaDB Connector/C project.
- Severity: 9.1 (Critical) at NVD and Red Hat (Red Hat calls it Important). MariaDB rates it Moderate (6.9 on CVSS 4.0, and 5.0 in its server release notes).
- Affected: MariaDB Connector/C (
libmariadb) 3.3.1–3.3.18 and 3.4.1–3.4.8, and only when your app uses the big5 character set on the connection. - Known exploited: Not on CISA’s KEV list.
What’s going on
First, the “which product?” question: this is MariaDB Connector/C, the C client library also known as libmariadb. It isn’t the database server. MariaDB’s server releases bundle that library, and the server release notes list this CVE too, but the bug is on the client side.
mysql_real_escape_string() is the classic way to make user input safe to drop into an SQL string. It escapes quotes and backslashes so they can’t end the string early. With the big5 character set (a multi-byte encoding for Traditional Chinese), the function got some byte sequences wrong. MariaDB’s test case for the fix pairs a big5 lead byte with a single quote, exactly the kind of input that should come out safely escaped. Get that wrong, and an attacker’s quote can close the string and the rest of their input runs as SQL. In other words, a classic SQL injection, even though the code did “the right thing” and escaped its input.
Who should care? You need all of these at once:
- your app (or the driver it uses) is built on Connector/C,
- the connection uses the big5 character set,
- you escape input with
mysql_real_escape_string()and build text-protocol queries instead of using prepared statements.
If your connections use utf8mb4, or you use prepared statements, this one doesn’t touch you.
Timeline
- Reported to MariaDB: 2026-04-21 (CONC-819, fixed 2026-04-22, discovered by Jun Rong at Calif.io)
- Fixed in bundled server releases: 2026-05-18 (MariaDB 10.6.26, 10.11.17, 11.4.11 and 11.8.7), and 2026-05-28 for 12.3.2
- Advisory published: 2026-05-18
- Standalone Connector/C 3.3.19 and 3.4.9 released: 2026-06-10
- Published on NVD: 2026-06-12
== UPDATE ==
Fixed in both maintained Connector/C branches, and the advisory comes with two workarounds.
- Patch available: Yep.
- Fixed in: MariaDB Connector/C 3.3.19 and 3.4.9. MariaDB bundles 3.3.19 with server 10.6.26, 10.6.27, 10.11.17 and 10.11.18, and 3.4.9 with server 11.4.11, 11.4.12, 11.8.7 and 11.8.8. The 12.3.2 server release notes list this CVE as fixed too.
- How to apply: Update the Connector/C library wherever your app runs, through your package manager (on Red Hat systems it’s the
mariadb-connector-cpackage) or from MariaDB’s Connector/C downloads. Then restart your app so it loads the new library, and rebuild anything that links it statically. If your client library comes from MariaDB’s server packages, updating those to one of the releases above does the job. - If you can’t patch yet: MariaDB suggests two workarounds. Switch the connection’s character set from big5 to gbk, or, better, move to prepared statements instead of interpolating escaped values into query strings. Prepared statements are the safer habit for SQL injection in general.
References
- https://github.com/MariaDB/server/security/advisories/GHSA-pv9p-5w55-55jm
- https://jira.mariadb.org/browse/CONC-819
- https://mariadb.com/docs/release-notes/connectors/c/3.4/3.4.9
- https://mariadb.com/resources/blog/mariadb-connector-c-3-4-9-and-3-3-19-now-available/
- https://mariadb.com/docs/release-notes/community-server/11.8/11.8.7
- https://mariadb.com/docs/release-notes/community-server/12.3/12.3.2
- https://nvd.nist.gov/vuln/detail/CVE-2026-44172
- https://access.redhat.com/security/cve/CVE-2026-44172