⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

CVE-2026-144662: MariaDB CONNECT Engine Stack Buffer Overflow | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-144662: MariaDB CONNECT Engine Stack Buffer Overflow

Executive summary

MariaDB Server contains a stack-based buffer overflow in OEMDEF::GetXdef() within storage/connect/reldef.cpp. The vulnerable code is reached through the CONNECT storage engine when a table of type OEM is opened. A user who has the FILE privilege can create such a table with a SUBTYPE value longer than 36 characters, causing an oversized value to be written into a fixed-size stack buffer and crashing mariadbd.

The practical impact is server denial of service. The available record does not confirm a public proof of concept, exploitation in the wild, or a reliable path to arbitrary code execution. Exploitation is further constrained by the need for an authenticated account with FILE privilege and a server that has the CONNECT engine installed.

The vulnerability was published in the National Vulnerability Database on 2026-12-04 and carries a CVSS score of 4.4.

Affected systems

The following MariaDB Server branches are affected according to the provided NVD record:

  • MariaDB Server before 10.6.26

  • MariaDB Server 10.7 through 10.11.x before 10.11.17

  • MariaDB Server 11.0 through 11.4.x before 11.4.11

  • MariaDB Server 11.5 through 11.8.x before 11.8.7

  • MariaDB Server 12.0 through 12.3.x before 12.3.2

Only installations with the CONNECT storage engine loaded are exposed to this code path. The supplied material does not establish availability of fixes in particular downstream Linux distributions, MariaDB Enterprise builds, or managed cloud services; those package maintainers should be consulted for deployment-specific guidance.

Vulnerability details

The defect exists in OEMDEF::GetXdef(), where the SUBTYPE option associated with a CONNECT OEM table is converted to uppercase and copied into a 40-byte stack buffer. The buffer already contains the three-character prefix Get, and the copy is performed without the length check used by the corresponding logic in OEMColumns().

According to the NVD description, exploitation involves the following conditions:

  1. The MariaDB server has the CONNECT engine installed.

  1. The attacker holds the FILE privilege.

  1. The attacker creates an OEM table whose MODULE option identifies an existing shared library in the plugin directory.

  1. The SUBTYPE option contains more than 36 characters.

  1. The table is subsequently opened or accessed.

Opening the table triggers OEMDEF::GetXdef(), writes beyond the intended stack buffer, and crashes the server. The supplied source describes server crashing as the supported impact. Although stack corruption can sometimes create opportunities for control-flow hijacking, the available information does not demonstrate that this vulnerability can be used for reliable remote code execution.

Real-world exploitability

The vulnerability is network-reachable in common MariaDB deployments, but it is not unauthenticated. An attacker must first obtain credentials for an account with FILE privilege. That requirement materially narrows the exposure in properly segmented production databases, while potentially increasing risk in shared-hosting, multi-tenant, or weakly governed database environments.

No exploitation evidence is recorded in the supplied context. The issue is not identified as listed in the CISA Known Exploited Vulnerabilities catalog, and the material does not mention a public proof of concept, active exploitation campaign, or vendor acknowledgment of in-the-wild use. Exploit availability therefore remains unknown.

The confirmed outcome is denial of service through a database-server crash. Confidentiality loss, data modification beyond the crash, and arbitrary code execution are not substantiated by the available record.

Mitigation

Apply the available fixes

Upgrade affected installations to a fixed release in the corresponding branch:

  • 10.6.26 or later

  • 10.11.17 or later

  • 11.4.11 or later

  • 11.8.7 or later

  • 12.3.2 or later

Patch availability for downstream distributions and managed services is not specified in the provided context and should be verified with the relevant package maintainer.

Reduce exposure when an upgrade is pending

  • Disable or unload the CONNECT storage engine where it is not required.

  • Review FILE grants and remove them from accounts that have no legitimate need for filesystem access.

  • Restrict access to the creation of CONNECT OEM tables, particularly for untrusted or lower-trust accounts.

  • Limit MariaDB network access to trusted hosts and enforce strong authentication and TLS where appropriate.

Detection guidance

  • Monitor for mariadbd crashes involving OEMDEF::GetXdef() or storage/connect/reldef.cpp.

  • Review database audit logs for creation of OEM tables by FILE-privileged accounts, especially records with an unusually long SUBTYPE option and a MODULE value referencing the plugin directory.

  • Inventory MariaDB instances to determine whether the CONNECT engine is installed or loaded.

  • Correlate database events with plugin-directory monitoring where that visibility is available.

Expert insight

The inconsistency between OEMDEF::GetXdef() and the bounded equivalent logic in OEMColumns() illustrates how a missing defensive check can survive in a less frequently exercised storage-engine path. The exploit conditions are unusually specific, but they align with a common database attack pattern: abuse of a powerful privilege to define an object that reaches unsafe native-code handling.

The issue should still receive prompt operational attention in environments where untrusted tenants can hold FILE privileges, because a server crash affects every workload hosted by the same mariadbd process. Conversely, the privilege gate and absence of known exploitation make broad emergency escalation less justified on systems where CONNECT is absent and FILE is tightly controlled. The supplied evidence supports assessing this as a low-impact vulnerability in practice despite the medium CVSS score.

منابع

·
← اخبار