CVE-2026-85985
JSON

5.4medium

MariaDB: Unauthorized file access via CONNECT engine UDFs

Severity
5.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.45% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-MARIADB-2026-85985BIT-MARIADB-MIN-2026-85985BIT-MYSQL-CLIENT-2026-85985GHSA-2245-9hm3-wxf6

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.

Affected

Product or packageVersionsReported by
MariaDB server>= 10.6.1, < 10.6.28, >= 10.11.1, < 10.11.19, >= 11.4.1, < 11.4.13, >= 11.8.1, < 11.8.9, >= 12.3.1, < 12.3.3, >= 13.0.1, < 13.0.2CVE List
mariadb mariadbfrom 10.6.1 before 10.6.28, from 10.11.1 before 10.11.19, from 11.4.1 before 11.4.13, from 11.8.1 before 11.8.9, from 12.3.1 before 12.3.3, 13.0.1NVD
mariadb (Bitnami)from 10.6.1 before 10.6.28, from 10.11.0 before 10.11.19, from 11.4.0 before 11.4.13, from 11.8.0 before 11.8.9, from 12.3.0 before 12.3.3, from 13.0.0 before 13.0.2Bitnami Vulnerability Database
mariadb-min (Bitnami)from 10.6.1 before 10.6.28, from 10.11.0 before 10.11.19, from 11.4.0 before 11.4.13, from 11.8.0 before 11.8.9, from 12.3.0 before 12.3.3, from 13.0.0 before 13.0.2Bitnami Vulnerability Database
mysql-client (Bitnami)from 10.6.1 before 10.6.28, from 10.11.0 before 10.11.19, from 11.4.0 before 11.4.13, from 11.8.0 before 11.8.9, from 12.3.0 before 12.3.3, from 13.0.0 before 13.0.2Bitnami Vulnerability Database

All scores

GitHub_M5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-862

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

https://github.com/MariaDB/server/security/advisories/GHSA-2245-9hm3-wxf6advisory, vendor-advisory
https://github.com/MariaDB/server/commit/4f66ca1b69daf1b7e6a562ca8e86d77a6a70abfefix, patch
https://github.com/MariaDB/server/releases/tag/mariadb-10.11.19article, release-notes
https://github.com/MariaDB/server/releases/tag/mariadb-10.6.28article, release-notes
https://github.com/MariaDB/server/releases/tag/mariadb-11.4.13article, release-notes
https://github.com/MariaDB/server/releases/tag/mariadb-11.8.9article, release-notes
https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3article, release-notes
https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2article, release-notes
https://jira.mariadb.org/browse/MDEV-40323issue-tracking, report
https://nvd.nist.gov/vuln/detail/CVE-2026-85985web

Sources

SourceRecordLicence
CVE ListCVE-2026-85985 changed 2026-10-16CVE Terms of Use
NVDCVE-2026-85985 changed 2026-10-20Public domain
Bitnami Vulnerability DatabaseBIT-MARIADB-2026-85985 changed 2026-10-22Apache-2.0
Bitnami Vulnerability DatabaseBIT-MARIADB-MIN-2026-85985 changed 2026-10-22Apache-2.0
Bitnami Vulnerability DatabaseBIT-MYSQL-CLIENT-2026-85985 changed 2026-10-22Apache-2.0