Skip to main content
← All vulnerabilities
CVE-2026-55855GHSA-G5XC-5W98-JFVMBIT-MARIADB-2026-55855BIT-MARIADB-MIN-2026-55855BIT-MYSQL-CLIENT-2026-55855

MariaDB Connector/Node.js: Possible SQL injection in Buffer parameter escaping under big5/gbk/sjis/cp932/gb18030 client charsets

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.2.4, 3.3.3, 3.4.6, 3.5.3, 3.3.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. Prior to 3.2.4, 3.3.3, 3.4.6, and 3.5.3, MariaDB Connector/Node.js permits SQL injection when attacker-controlled Buffer parameters are escaped client-side under the big5, gbk, sjis, cp932, or gb18030 client character sets. PacketOutputStream.writeBufferEscape in lib/io/packet-output-stream.js escaped bytes without the charset-aware getMbRecognizer logic in lib/misc/charset-mb.js. The server SQL lexer runs my_ismbchar before escape processing, so an attacker-controlled lead byte can consume the inserted 0x5C backslash as a multibyte trail byte and leave the following 0x27 quote unescaped, terminating the string literal and allowing arbitrary SQL. The default utf8mb4 character set and parameters sent through the execute binary prepared-statement path are not affected. Successful exploitation can expose or modify data available to the database account. This issue is fixed in versions 3.2.4, 3.3.3, 3.4.6, and 3.5.3.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • mariadb-corporation mariadb-connector-nodejs

    fixed in 3.2.4; From 3.3.0 · fixed in 3.3.3; From 3.4.0 · fixed in 3.4.6; From 3.5.0 · fixed in 3.5.3

  • mariadbnpm

    fixed in 3.2.4

  • mariadbnpm

    From 3.3.0 · fixed in 3.3.4

  • mariadbnpm

    From 3.4.0 · fixed in 3.4.6

  • mariadbnpm

    From 3.5.0 · fixed in 3.5.3

References 10

GitHub · mariadb-corporation/mariadb-connector-nodejs

jira.mariadb.org