MariaDB Server crash via oversized packet in caching_sha2_password authentication

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-35549?

CVE-2026-35549 is a vulnerability classified as Memory Allocation with Excessive Size Value, affecting MariaDB (affected versions: < 11.4.10, 11.5.0 – < 11.8.6, and other affected versions). This vulnerability is rated Medium, with a CVSS score of 6.5. Current sources do not report this vulnerability as exploited.

Overview

Original source data

An issue was discovered in MariaDB Server before 11.4.10, 11.5.x through 11.8.x before 11.8.6, and 12.x before 12.2.2. If the caching_sha2_password authentication plugin is installed, and some user accounts are configured to use it, a large packet can crash the server because sha256_crypt_r uses alloca.

Affected products and scope

MariaDB Server is affected. The record lists several ranges across the 11 and 12 release trains, each with its own fixed build; the exact boundaries are rendered alongside this entry rather than repeated here. Within those ranges, exposure depends on configuration: the caching_sha2_password authentication plugin must be installed, and at least one user account must be configured to authenticate with it. The record marks the product default as unaffected, which matches that conditional description. A server without the plugin installed, or with the plugin present but no accounts using it, does not meet the precondition.

Technical details

The weakness is a memory allocation driven by an attacker-supplied size value (CWE-789). MariaDB Server's caching_sha2_password authentication plugin performs its hashing work in sha256_crypt_r, and that routine uses alloca, which reserves memory on the current stack frame instead of the heap. A large packet arriving on the authentication path can drive an allocation big enough to exhaust the thread's stack, at which point the server process terminates. The record does not describe the exact packet contents, the precise size threshold, or the code path between packet receipt and the allocation, so the mechanism can only be stated at this level. The precondition is narrow and configuration-dependent: the plugin must be installed and at least one account must be set up to authenticate through it.

Exploitability

The vector is remote over the network, with low privileges required and no user interaction, so the crash can be triggered by anyone who can open a connection and complete enough of the authentication exchange to reach the affected code. The record reports no known exploitation in the wild and no public exploit, and the exploit prediction is in the lowest band. That reflects current evidence, not a guarantee; the precondition of an installed plugin with accounts using it limits the population of exposed servers, which is part of why the record rates the issue medium rather than critical.

Technical impact

An attacker gains the ability to terminate the database server process. Nothing in the record suggests memory corruption, code execution, privilege escalation, data disclosure or data modification; the scoring reflects a high availability impact with no confidentiality or integrity impact. The practical limit is that the crash is a denial of service only. Recovery depends entirely on how the deployment is managed: a supervised process or orchestrated container may come back automatically, while a standalone instance stays down until an operator restarts it.

Business impact

A database that can be stopped by one oversized connection is an availability problem, and availability of the database is usually availability of everything sitting on top of it. The record requires only low privileges to trigger the crash, which means a holder of an ordinary application or reporting account, or anyone who has obtained one, is enough. The cost is downtime for dependent applications, dropped sessions, restart time, and whatever recovery or failover procedure the operator has. If the server does not restart on its own, the outage lasts until someone notices and intervenes. Teams running MariaDB Server with the caching_sha2_password plugin enabled, particularly where accounts are shared across applications or where the database is reachable from less trusted networks, should treat this as a patching item rather than an emergency. There is no data exposure or data modification implied by the record.

Remediation

Upgrade to the fixed build for your release train. A patch exists for every affected range, and moving to the current build in your branch removes the flaw entirely. If an upgrade has to wait, remove the precondition: either do not install the caching_sha2_password plugin, or move accounts off it onto another authentication method so that no account authenticates through the affected code path. That is a mitigation, not a fix, and it changes how clients authenticate, so plan it rather than doing it blind. After either step, confirm that the plugin is not installed or not in use on instances that were previously exposed.

Detection

Check the inventory first: which MariaDB Server instances have the caching_sha2_password plugin installed, and which accounts are configured to authenticate with it. Instances that satisfy both conditions are the ones worth watching. On the monitoring side, alert on unexpected database process restarts, crash recovery in the error log, and abrupt connection drops clustered at the authentication stage. Connection-level or network logging that records packet or payload sizes for database traffic is useful where it already exists, since the trigger is an unusually large packet, but be aware that the record gives no specific size threshold to filter on. Treat a crash preceded by authentication traffic from a low-privileged account as worth investigating rather than dismissing as a routine restart.

Sources (8)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.