Description
MariaDB Server before 10.6.26, 10.7 through 10.11.x before 10.11.17, 11.0 through 11.4.x before 11.4.11, 11.5 through 11.8.x before 11.8.7, and 12.0 through 12.3.x before 12.3.2 contains a stack-based buffer overflow in OEMDEF::GetXdef() in storage/connect/reldef.cpp. When opening a CONNECT table of type OEM, the function copied the table's SUBTYPE option, upper-cased, into a 40-byte stack buffer after the prefix "Get" without checking its length, unlike the equivalent check in OEMColumns(). Users with the FILE privilege on a server with the CONNECT engine installed can create an OEM table whose MODULE names an existing shared library in the plugin directory and whose SUBTYPE is longer than 36 characters, then access the table to overflow the buffer and crash the server.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- Administrator
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
Weakness type (CWE)
- CWE-121 Stack-based Buffer Overflow
References
- jira.mariadb.org/browse/MDEV-39281
- github.com/MariaDB/server/commit/04e993f0bff982d134f87af51667466c47cbd248
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.