POJIA破甲
地图 / Pre-authentication `size_t` integer underflow → out-of-bounds read / server crash in MariaDB `caching_sha2_password` (auth_mysql_sha2) via an RSA-OAEP

Pre-authentication `size_t` integer underflow → out-of-bounds read / server crash in MariaDB `caching_sha2_password` (auth_mysql_sha2) via an RSA-OAEP

内存破坏 / Integer Underflow / #3781201

厂商
MariaDB
严重程度
低危 · CVSS 5.7
赏金
—
弱点
Integer Underflow
研究员
@vnth4nhnt
披露日期
2026-10-07
资产
MariaDB Server & Connectors - Denial of Service
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(9105 字符中的一小部分)
Summary The `caching_sha2_password` server plugin, on a plaintext TCP connection, RSA-decrypts the client's password reply and sets `pkt_len = (int)plain_text_len` without checking for an empty plaintext. It then calls `sha256_crypt_r(pkt, pkt_len - 1, ...)` where the second parameter is `size_t`. …
原文中的代码
unsigned char plain_text[1025];
size_t plain_text_len = sizeof(plain_text) - 1;
...
if (vio_info.protocol == MYSQL_VIO_TCP && !vio_info.tls) {     // plaintext TCP + RSA keys
    ...                                                        // (server serves public key on request '\2')
    if …

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

时间线

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

同类报告

Access Violation Reading in libfaad_pluginVLC (European Commission - DIGIT) · 2019-07-24 · $1,121Integer Underflow in src/var.ccurl · 2026-01-26Interger overflow in eval trigger write out of boundInternet Bug Bounty · 2017-12-11Integer Underflow @ ossl_cipher_pkcs5_keyivgenRuby · 2018-02-23