Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-pv9p-5w55-55jm

Опубликовано: 18 мая 2026
Источник: github
Github: Не прошло ревью

Описание

mysql_real_escape_string() incorrectly handled big5

Impact

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.

Workarounds

Switching to gbk character set can be used as a workaround. Changing the application to use prepared statements as opposite to interpolating escaped parameters in the query string is always preferable as a general solution to SQL injections.

References

https://jira.mariadb.org/browse/CONC-819

Discovered by

Jun Rong at Calif.io

Пакеты

Наименование

mariadb

mariadb
Затронутые версииВерсия исправления

3.3.18

3.3.19

Наименование

mariadb

mariadb
Затронутые версииВерсия исправления

3.4.8

3.4.9

EPSS

Процентиль: 44%
0.00577
Низкий

Дефекты

CWE-89

Связанные уязвимости

CVSS3: 9.1
ubuntu
около 2 месяцев назад

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.

CVSS3: 9.1
redhat
около 2 месяцев назад

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.

CVSS3: 9.1
nvd
около 2 месяцев назад

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.

CVSS3: 9.1
debian
около 2 месяцев назад

MariaDB server is a community developed fork of MySQL server. In versi ...

suse-cvrf
9 дней назад

Security update for mariadb-connector-c

EPSS

Процентиль: 44%
0.00577
Низкий

Дефекты

CWE-89