CVE-2026-85985

MariaDB: Unauthorized file access via CONNECT engine UDFs

Published Oct 16, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
MariaDB server is a community developed fork of MySQL server. From 10.6.1 until 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2, the CONNECT engine plugin file-access UDFs json_file(), bson_file(), jfile_make(), bfile_make(), and jbin_file() are affected because each does not enforce FILE privilege or the secure_file_priv setting. A low-privileged attacker can trigger the issue by calling a CONNECT file-access UDF with a filesystem path, then invoke a CONNECT file-access UDF to access a filesystem path and read or write files that the database account is not authorized to access, subject to operating-system permissions. This issue is fixed in versions 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2.

Analysis

AI-generated

Technical impact

The vulnerability exists in the CONNECT engine file‑access user‑defined functions (UDFs) such as json_file, bson_file, jfile_make, bfile_make, and jbin_file. These functions fail to enforce the FILE privilege and ignore the secure_file_priv configuration, allowing a low‑privileged user to specify arbitrary filesystem paths. By calling the UDFs, an attacker can read or write files on the host that the database account is not normally authorized to access, limited only by the operating‑system permissions of the database process.

Affected Systems

MariaDB server versions 10.6.1 through 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2 are affected.

Risk and Exploitability

The CVSS score is 5.4, indicating moderate severity. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector requires the attacker to be able to execute a UDF within the database, meaning any database user with access can exploit it. While the flaw does not permit arbitrary code execution, it allows unauthorized reading or writing of files, which could expose confidential data or modify system files, thereby potentially facilitating further attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MariaDB server to version 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2, or later to apply the fix.
  • Disable the CONNECT engine plugin UDFs if the functions are not required for business functionality.
  • Ensure that the FILE privilege is not granted to unprivileged database accounts and configure the secure_file_priv option to restrict file access to a dedicated directory.

Generated by OpenCVE AI on October 17, 2026 at 01:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Mariadb mariadb
CPEs cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*
cpe:2.3:a:mariadb:mariadb:13.0.1:*:*:*:*:*:*:*
Vendors & Products Mariadb mariadb
Type Values Removed Values Added
First Time appeared Mariadb
Mariadb server
Vendors & Products Mariadb
Mariadb server
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description MariaDB server is a community developed fork of MySQL server. From 10.6.1 until 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2, the CONNECT engine plugin file-access UDFs json_file(), bson_file(), jfile_make(), bfile_make(), and jbin_file() are affected because each does not enforce FILE privilege or the secure_file_priv setting. A low-privileged attacker can trigger the issue by calling a CONNECT file-access UDF with a filesystem path, then invoke a CONNECT file-access UDF to access a filesystem path and read or write files that the database account is not authorized to access, subject to operating-system permissions. This issue is fixed in versions 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2.
Title MariaDB: Unauthorized file access via CONNECT engine UDFs
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-552

    Files or Directories Accessible to External Parties

  • CWE-862

    Missing Authorization

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 16, 2026, 5:05 PM
Reserved
Sep 4, 2026, 7:17 PM
Status
Analyzed
Published
Oct 16, 2026, 5:17 PM
Modified
Oct 20, 2026, 3:32 PM
Severity
Moderate
Public date
Oct 16, 2026, 4:21 PM