Skip to content
Heist/ feed
Back to feed
MediumFix available

MariaDB: Unauthorized file access via CONNECT engine UDFs

Type: advisorySources: OSV

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.

Products
mysql-client
Affected versions
Not specified
Fixed versions
10.11.19, 10.6.28, 11.4.13, 11.8.9, 12.3.3, 13.0.2
CVEs
CVE-2026-85985
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 17:58 UTC · Revision 1

Source evidence

MariaDB: Unauthorized file access via CONNECT engine UDFs

core-osv · Original source

Published 21 Oct 2026, 08:56 UTC

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.

osv:BIT-mysql-client-2026-85985

mysql-client

Fixed versions: 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2

Complete source record
{
  "id": "04e89f78681eae601355ebed6affacf438d8e4c13718bcf5486b606b2db18d82",
  "url": "https://osv.dev/vulnerability/BIT-mysql-client-2026-85985",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "MariaDB: Unauthorized file access via CONNECT engine UDFs",
    "summary": "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.",
    "evidence": "osv:BIT-mysql-client-2026-85985",
    "products": [
      {
        "name": {
          "value": "mysql-client",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.6.28",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "10.11.19",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "11.4.13",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "11.8.9",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "12.3.3",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "13.0.2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "BIT-mysql-client-2026-85985",
      "aliases": [
        "BIT-mariadb-2026-85985",
        "BIT-mariadb-min-2026-85985",
        "BIT-mysql-client-2026-85985",
        "CVE-2026-85985",
        "GHSA-2245-9hm3-wxf6"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "10.6.1"
                },
                {
                  "fixed": "10.6.28"
                },
                {
                  "introduced": "10.11.0"
                },
                {
                  "fixed": "10.11.19"
                },
                {
                  "introduced": "11.4.0"
                },
                {
                  "fixed": "11.4.13"
                },
                {
                  "introduced": "11.8.0"
                },
                {
                  "fixed": "11.8.9"
                },
                {
                  "introduced": "12.3.0"
                },
                {
                  "fixed": "12.3.3"
                },
                {
                  "introduced": "13.0.0"
                },
                {
                  "fixed": "13.0.2"
                }
              ]
            }
          ],
          "package": {
            "name": "mysql-client",
            "purl": "pkg:bitnami/mysql-client",
            "ecosystem": "Bitnami"
          },
          "severity": [
            {
              "type": "CVSS_V3",
              "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
            }
          ],
          "database_specific": {
            "source": "https://github.com/bitnami/vulndb/tree/main/data/mysql-client/BIT-mysql-client-2026-85985.json"
          }
        }
      ],
      "modified": "2026-10-22T09:00:03.308468792Z",
      "provider": "osv",
      "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",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-85985"
      ],
      "provider_metadata": {
        "cpes": [
          "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*"
        ],
        "severity": "Medium"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-85985",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 405338,
  "published_at": "2026-10-21T08:56:39.215+00:00"
}