POJIA破甲
地图 / Heap Memory Disclosure via Integer Underflow in Item_func_json_arrayagg::cut_max_length in MariaDB Server

Heap Memory Disclosure via Integer Underflow in Item_func_json_arrayagg::cut_max_length in MariaDB Server

内存破坏 / 缓冲区越界读 / #3771139

厂商
MariaDB
严重程度
未评级
赏金
—
弱点
缓冲区越界读
研究员
@lukas_kupczyk
披露日期
2026-09-15
资产
MariaDB Server & Connectors - Data corruption, exfiltration, disclosure
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(4724 字符中的一小部分)
An integer underflow in MariaDB's `JSON_ARRAYAGG` aggregate function allows any authenticated user to read arbitrary heap memory from the server process. When using a single-byte character set (latin1, binary, or ascii), the `Item_func_json_arrayagg::cut_max_length` override subtracts 1 from …
原文中的代码
void Item_func_json_arrayagg::cut_max_length(String *result,
       uint old_length, uint max_length) const
{
  if (result->length() == 0)
    return;
  if (result->ptr()[result->length() - 1] != '"' || max_length == 0)
  {
    Item_func_group_concat::cut_max_length(result, old_length, max_length); …

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

时间线

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

同类报告

Heap Buffer Overflow (READ: 4) in phar_parse_pharfileInternet Bug Bounty · 2020-10-10Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflowInternet Bug Bounty · 2020-10-12 · $1,500CVE-2024-7264: ASN.1 date parser overreadcurl · 2024-08-01CVE-2024-7347: Buffer overread in the ngx_http_mp4_moduleInternet Bug Bounty · 2024-08-27 · $2,142apache access.log leakage via long request on https://rapida.ru/QIWI · —CVE-2025-9086: Out of bounds read for cookie pathcurl · 2025-09-10