If you run a single MariaDB server behind your app, you can relax. If you run a Galera cluster, keep reading.
At a glance
- CVE: CVE-2026-49261. MariaDB’s advisory is GHSA-3p3m-4x7c-p4pw, tracked as MDEV-39721.
- Severity: 10.0 (Critical) in MariaDB’s advisory. NVD scores it 9.8 and Red Hat 9.0, both Critical.
- Affected: MariaDB Server 10.6.1–10.6.26, 10.11.1–10.11.17, 11.4.1–11.4.11, 11.8.1–11.8.7 and 12.3.1, but only Galera cluster setups with
wsrep_notify_cmdconfigured. - Known exploited: Not on CISA’s KEV list.
What’s going on
Galera (MariaDB Cluster) can run a script of your choice whenever the cluster’s membership or status changes. That’s what wsrep_notify_cmd is for. To build that script’s command line, MariaDB pasted in each member’s node name (its wsrep_node_name) and incoming address exactly as given, then ran the whole thing through sh -c.
So a node joining the cluster with shell metacharacters in either field could run its own commands on every member that has wsrep_notify_cmd set. In other words, someone could run whatever they like on your database servers without ever needing a database login. The fix checks both fields first: if they contain characters that mean something to the shell, MariaDB skips the notification instead of running it.
Who should care? Only Galera clusters with wsrep_notify_cmd turned on. The attacker has to be a node joining your cluster, so it comes down to who can reach and join it. A standalone MariaDB server, which is what most web apps use, isn’t affected by this one.
MariaDB fixed this alongside two more Galera bugs (CVE-2026-48165 and CVE-2026-48163, both about unsafe parameter handling during state transfers) and told Galera users to upgrade as soon as possible.
Timeline
- Fixed in MariaDB’s tracker: 2026-05-22 (MDEV-39721)
- Patch released: 2026-05-26 for 10.6.27, 10.11.18, 11.4.12 and 11.8.8 (that’s when they reached MariaDB’s repositories), and 2026-05-28 for 12.3.2
- Advisory published: 2026-06-02 (GitHub advisory, plus MariaDB’s corrective-release announcement)
- Published on NVD: 2026-06-11
- MariaDB 10.6 end-of-life: 2026-07-06
== UPDATE ==
There’s a fix on every supported branch, plus a one-line workaround if you need breathing room.
- Patch available: Yep.
- Fixed in: MariaDB 10.6.27, 10.11.18, 11.4.12, 11.8.8 and 12.3.2. Newer maintenance releases have come out since (10.11.19, 11.4.13, 11.8.9 and 12.3.3, on 2026-08-24), so go straight to the latest on your series. MariaDB 10.6 reached end-of-life on 2026-07-06. Its final release, 10.6.28, is the one to run while you move to a newer long-term series.
- How to apply: Update the MariaDB server packages through your package manager or MariaDB’s own repository, then restart the nodes one at a time so the cluster stays up. Distro packages may carry the fix under their own version numbers, so check your distro’s security tracker for CVE-2026-49261.
- If you can’t patch yet: MariaDB’s official workaround is to disable
wsrep_notify_cmd. Remove or comment it out in your server config and restart the node. It’s also worth making sure only your own cluster members can reach the Galera ports.
References
- https://github.com/MariaDB/server/security/advisories/GHSA-3p3m-4x7c-p4pw
- https://jira.mariadb.org/browse/MDEV-39721
- https://mariadb.org/mariadb-community-server-corrective-releases/
- https://mariadb.com/docs/release-notes/community-server/12.3/12.3.2
- https://mariadb.org/mariadb-server-12-3-11-8-11-4-and-10-11-q3-2026-maintenance-releases-and-goodbye-10-6/
- https://nvd.nist.gov/vuln/detail/CVE-2026-49261
- https://access.redhat.com/security/cve/CVE-2026-49261