POJIA破甲
地图 / Stack buffer overflow in 9 of 10 Connector/ODBC catalog functions via unbounded name

Stack buffer overflow in 9 of 10 Connector/ODBC catalog functions via unbounded name

内存破坏 / 栈溢出 / #3891319

厂商
MariaDB
严重程度
低危 · CVSS 5.7
赏金
—
弱点
栈溢出
研究员
@fg0x0
披露日期
2026-11-04
资产
MariaDB Server & Connectors - Data corruption, exfiltration, disclosure
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(9738 字符中的一小部分)
Nine of the ten catalog functions in MariaDB Connector/ODBC escape an application-supplied identifier into a fixed 513-byte stack buffer without checking its length. Any name longer than 256 bytes overflows that buffer with attacker-controlled bytes. `SQLColumns`, `SQLPrimaryKeys`, `SQLStatistics`, …
原文中的代码
static int AddPvCondition(MADB_Dbc *dbc, void* buffer, size_t bufferLen, char* value, SQLSMALLINT len)
{
  char escaped[2*NAME_LEN + 1];
  /* We should probably compare to SQL_NTS, and throw error if just < 0, but I think this way it will work just fine */
  if (len < 0)
  {
    len= …

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 MariaDB 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @fg0x0 · 版权归作者与 MariaDB 所有

同类报告

Stack overflow in XML ParsingNotepad++ · 2019-08-25Malformed playlist.txt in GoldSrc games leads to Access Violation & arbitrary code executionValve · 2019-09-17 · $1,000VLC 4.0.0 - Stack Buffer Overflow (SEH)VLC (European Commission - DIGIT) · 2020-02-10 · $2,817Buffer overflow In hl.exe's launch -game argument allows an attacker to execute arbitrary code locally or from browserValve · 2020-08-19Stack Buffer Overflow in mariadb-dump quote_name() Allows Malicious Server to Execute Arbitrary Code on ClientMariaDB · 2026-09-08Stack overflow affecting "ext" field on stylers.xml configuration fileNotepad++ · 2019-08-25
Stack buffer overflow in 9 of 10 Connector/ODBC catalog functions via unbounded name · 破甲 POJIA