CVE-2026-144664: MariaDB Server Spider Engine Stack Exhaustion via Loop-Detection User Variable
MariaDB Server before 10.6.25, 10.7 through 10.11.x before 10.11.16, 11.0 through 11.4.x before 11.4.10, 11.5 through 11.8.x before 11.8.6, and 12.0 through 12.2.x before 12.2.2 contains an uncontrolled stack allocation in spiderconnqueueloopcheck() in storage/spider/spdconn.cc. The Spider storage engine reads its loop-detection user variable (@spiderlc<table path>) from the session and used alloca() to allocate stack buffers sized by the length of its value. Authenticated users who can query a Spider table can set this variable to a very long string in their own session and then access the table, exhausting the thread stack and crashing the server.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated user must be able to query a table that uses the Spider storage engine. The attacker can set the affected user variable within their own database session before accessing that Spider table.
What is the likely impact of successful exploitation?
A successful attack can exhaust the database thread's stack and crash the MariaDB Server, resulting in a denial of service. The provided vector indicates no confidentiality or integrity impact.
Are all MariaDB Server deployments affected by default?
The issue requires use of a Spider table and an authenticated user with permission to query it. Deployments without accessible Spider tables do not meet the stated exploitation conditions.
Which versions need remediation?
Affected releases are versions before 10.6.25; 10.7 through 10.11.x before 10.11.16; 11.0 through 11.4.x before 11.4.10; 11.5 through 11.8.x before 11.8.6; and 12.0 through 12.2.x before 12.2.2.