← Advisories

Apache Doris 4.1.5 JDBC Catalog Arbitrary File Read

Medium
Advisory ID
ZSL-2026-6023
Release Date
16 October 2026
Vendor
The Apache Software Foundation - https://www.apache.org
Affected Version
4.1.5
CVE
N/A
Tested On
MySQL Connector/J 8.0.33, Doris FE 4.1.5, JDK 17
Summary

Apache Doris is a high-performance, real-time analytical database based on the MPP architecture. Known for being efficient, simple, and unified, it returns query results over massive datasets within sub-second latency, and a single system supports both high-concurrency point queries and high-throughput complex analytics.

Description

Apache Doris (Frontend) suffers from an arbitrary local file read through its JDBC catalog feature, and exposes an unsafe-deserialization option to the same attack surface. Connection properties for a JDBC catalog are passed to the MySQL driver without a safe allow-list (handleJdbcUrl() forces only benign params), so a user who can define or point a catalog at an attacker-controlled MySQL endpoint can enable dangerous driver options that the FE's JDBC client will honor. With allowLoadLocalInfile=true, a rogue MySQL server can answer any query with a LOCAL INFILE request and read arbitrary files from the FE host (fe/conf/fe.conf secrets, keytab, id_rsa).

Additionally, because autoDeserialize is not forced off, a malicious server can return a crafted blob that the driver deserializes. This can lead to remote code execution only if a suitable gadget is present on the Doris classpath.

Proof of Concept
Disclosure Timeline
13.08.2026Vulnerability discovered.
18.08.2026Contact with the vendor.
19.08.2026Vendor decided to not consider this as a security vulnerability. Recommends to open a PR for hardening.
20.08.2026Replied to the vendor.
21.08.2026Vendor asks us to continue the conversation on the public dev list.
21.08.2026Replied to the vendor.
16.10.2026Public security advisory released.
Credits
Vulnerability discovered by Gjoko Krstic
References
Changelog
16.10.2026Initial release