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

Published Oct 16, 2026
·
Updated

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 jsonfile(), bsonfile(), jfilemake(), bfilemake(), and jbinfile() are affected because each does not enforce FILE privilege or the securefilepriv 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 Software

1 affected component
MariaDB MariaDB Server>=10.6.1<10.6.28, <10.11.19, <11.4.13, <11.8.9, <12.3.3, <13.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade MariaDB to a version that resolves this vulnerability.

    Fixed in 10.6.28
  2. Upgrade

    Upgrade MariaDB to a version that resolves this vulnerability.

    Fixed in 10.11.19
  3. Upgrade

    Upgrade MariaDB to a version that resolves this vulnerability.

    Fixed in 11.4.13
  4. Upgrade

    Upgrade MariaDB to a version that resolves this vulnerability.

    Fixed in 11.8.9
  5. Upgrade

    Upgrade MariaDB to a version that resolves this vulnerability.

    Fixed in 12.3.3
  6. Upgrade

    Upgrade MariaDB to a version that resolves this vulnerability.

    Fixed in 13.0.2

Event History

Oct 16, 2026
CVE Published
via MITRE·04:21 PM
Data Sourced
via MITRE·04:21 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

A low-privileged database attacker who can call the affected CONNECT engine file-access UDFs can trigger it. Actual file access remains constrained by the operating-system permissions of the MariaDB server process.

2

Does secure_file_priv prevent exploitation?

No. The affected UDFs do not enforce the secure_file_priv setting, so relying on that setting does not block their file access.

3

What can an attacker do after triggering the flaw?

They can supply filesystem paths to the affected UDFs and read or write files that the database account would not otherwise be authorized to access, subject to operating-system permissions.

4

Which versions contain the fix?

The issue is fixed in MariaDB 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203