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.
Published: 2026-10-16
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized File Access
Action: Patch Now
AI Analysis

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.

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

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 yet.

History

Tue, 20 Oct 2026 15:45:00 +0000

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

Sun, 18 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Mariadb
Mariadb server
Vendors & Products Mariadb
Mariadb server

Sat, 17 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-552
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 16 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 16 Oct 2026 16:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-16T17:05:42.975Z

Reserved: 2026-09-04T19:17:36.245Z

Link: CVE-2026-85985

cve-icon Vulnrichment

Updated: 2026-10-16T16:49:40.065Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-16T17:17:51.620

Modified: 2026-10-20T15:32:46.490

Link: CVE-2026-85985

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-16T16:21:14Z

Links: CVE-2026-85985 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T14:30:13Z

Weaknesses
  • CWE-552

    Files or Directories Accessible to External Parties

  • CWE-862

    Missing Authorization