Improper Encoding or Escaping of Output Affecting mariadb package, versions <3.5.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.31% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-MARIADB-19432139
  • published30 Aug 2026
  • disclosed28 Aug 2026
  • creditfg0x0

Introduced: 28 Aug 2026

NewCVE-2026-55855  (opens in a new tab)
CWE-116  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade mariadb to version 3.5.3 or higher.

Overview

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output in the client-side escaping of Buffer parameters under certain multi-byte client character sets, specifically big5, gbk, sjis, cp932, or gb18030. An attacker can gain unauthorized access to or modify data by supplying crafted input that manipulates the escaping process, causing the intended string literal to be terminated and arbitrary SQL to be executed.

Note: This is only exploitable if the connection's client character set is set to one of the affected multi-byte charsets and untrusted data is bound as a Buffer parameter.

Workaround

This vulnerability can be mitigated by using server-side prepared statements (execute) so parameters are bound via the binary protocol, or by avoiding passing untrusted data as Buffer parameters under the affected charsets.

CVSS Base Scores

version 4.0
version 3.1