CVE-2026-102523

Description

A flaw was found in MariaDB. When converting table partitions, the database server does not properly encode user-specified partition names before using them in filesystem path construction. An authenticated database user can exploit this issue by providing a specially crafted partition name to target table files they do not have permission to access. This can allow an attacker to read or modify unauthorized database tables.

Statement

This vulnerability is rated as having Important impact because an authenticated database user with basic table management rights can bypass schema authorization boundaries to read or modify arbitrary database files across the instance. In standard Red Hat Enterprise Linux shared or multi-tenant database environments, this allows unauthorized access to data belonging to other users or databases managed by the same daemon. Although exploitation requires legitimate database credentials, the severity is elevated to Important because it breaks relational isolation guarantees without requiring administrative privileges.

Mitigation

Limit network access to the MariaDB service to trusted client hosts or localhost, and ensure non-administrative database accounts do not possess table alteration privileges.

1. Restrict network reachability:
To restrict MariaDB network access to trusted management subnets using firewalld:
# firewall-cmd --permanent --zone=trusted --add-source=<trusted_ip_or_subnet>
# firewall-cmd --permanent --remove-service=mysql
# firewall-cmd --reload

Alternatively, configure the service to bind only to the local loopback interface by adding or editing the following directive in `/etc/my.cnf.d/mariadb-server.cnf` under the `[mysqld]` section:
bind-address = 127.0.0.1

Apply the configuration by restarting the service:
# systemctl restart mariadb

2. Restrict user privileges:
Revoke the ALTER privilege from untrusted database accounts directly within MariaDB:
REVOKE ALTER ON <database_name>.* FROM '<user>'@'<host>';
FLUSH PRIVILEGES;

Caveats:
Restricting network access blocks remote connections from disallowed hosts. Binding to localhost prevents all remote connections. Revoking ALTER privileges prevents affected users from altering table schemas or partition configurations, which can impact applications that perform dynamic schema changes.

Warning:
Restarting the MariaDB service via systemctl will drop active database connections and cause temporary service unavailability.

--- CME Mitigation Guidance (2026-11-06) ---
Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to encode user-specified partition names via tablename_to_filename during ALTER TABLE CONVERT PARTITION filesystem path construction: upgrade to MariaDB 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2 (or the fixed Mariadb builds), which passes translate as true to create_partition_name so that partition names are encoded using tablename_to_filename during convert-in and convert-out routines, closing ALTER TABLE CONVERT PARTITION statements using partition names requiring filename escaping. Until patched, this is a concern on MariaDB instances with partitioning enabled where non-administrative users have ALTER privileges, so revoke ALTER privileges from non-administrative accounts, restrict database network access to trusted management hosts or localhost, or disable partitioning with --skip-plugin-partition. As a compensating measure, restrict database table operations to strictly defined directory boundaries and log executed ALTER TABLE statements and administrative database actions to SIEM. These controls limit blast radius and contain exploitation, but they do not fix the underlying partition name encoding defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1301 Path Traversal Prevention (Canonicalization) (high)

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score8.8N/A8
Attack VectorNetworkN/ANetwork
Attack ComplexityLowN/ALow
Privileges RequiredLowN/ALow
User InteractionNoneN/ARequired
ScopeUnchangedN/AUnchanged
ConfidentialityHighN/AHigh
Integrity ImpactHighN/AHigh
Availability ImpactHighN/AHigh

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

cve.org: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Understanding the Weakness (CWE)

Integrity,Confidentiality

Technical Impact: Read Files or Directories

The application can operate on unexpected files, such as system files or configuration files. Confidentiality is violated when the targeted filename is not directly readable by the attacker.

Integrity,Confidentiality,Availability

Technical Impact: Modify Files or Directories; Execute Unauthorized Code or Commands

The application can operate on unexpected files. This may violate integrity if the filename is written to, or if the filename is for a program or other form of executable code.

Availability

Technical Impact: DoS: Crash, Exit, or Restart; DoS: Resource Consumption (Other)

The application can operate on unexpected files. Availability can be violated if the attacker specifies an unexpected file that the application modifies. Availability can also be affected if the attacker specifies a filename for a large file, or points to a special device or a file that does not have the format that the application expects.

Frequently Asked Questions

Want to get errata notifications? Sign up here.