What’s Vulnerable › Vulnerabilities
CVE-2026-85985: MariaDB: Unauthorized file access via CONNECT engine UDFs
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-16 · updated 2026-10-20
- Weakness: CWE-862
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 products
- MariaDB: from 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.1 (and their updates) — fixed in 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3
How to fix
Upgrade to a fixed version: MariaDB 10.6.28, 10.11.19, 11.4.13, 11.8.9. Check the vendor advisory for mitigations.
References
- https://github.com/MariaDB/server/commit/4f66ca1b69daf1b7e6a562ca8e86d77a6a70abfe
- https://github.com/MariaDB/server/releases/tag/mariadb-10.11.19
- https://github.com/MariaDB/server/releases/tag/mariadb-10.6.28
- https://github.com/MariaDB/server/releases/tag/mariadb-11.4.13
- https://github.com/MariaDB/server/releases/tag/mariadb-11.8.9
- https://github.com/MariaDB/server/releases/tag/mariadb-12.3.3
- https://github.com/MariaDB/server/releases/tag/mariadb-13.0.2
- https://github.com/MariaDB/server/security/advisories/GHSA-2245-9hm3-wxf6
- https://jira.mariadb.org/browse/MDEV-40323
Get alerted when CVE-2026-85985 or the next vulnerability affects your stack