Researcher Shows Low-Privilege Database Accounts Can Reach Code Execution on PostgreSQL, MySQL, Oracle and ClickHouse
A Depthfirst researcher published proofs of concept turning memory-corruption bugs into code execution from low-privilege accounts on four database engines; vendors have shipped fixes.
Editor's Note ·
- Correction:
- The article's "What We Don't Know" section states that The Hacker News's reporting does not specify the exact affected version ranges for the Oracle Database (Oracle Text) and Oracle REST Data Services flaws. In fact, The Hacker News's article includes a summary table giving exact ranges: Oracle Text (CVE-2026-114819) affects versions 19.3-19.32, 21.3-21.24, and 23.4.0-23.26.3; Oracle REST Data Services (CVE-2026-91609) affects versions 24.2.0 to 26.2.1.
Overview
A security researcher has published proof-of-concept exploits showing that database accounts without permission to read a single application table can still run code on the database server itself, by reaching memory-corruption bugs buried in the engine code that processes ordinary SQL, according to The Hacker News. The work, by Zheng Yu, a researcher at Depthfirst, covers proofs of concept against PostgreSQL, MySQL and ClickHouse, plus a separate Oracle Database attack chain that needs no login at all, the outlet reported. None of the five flaws has been seen in a real-world attack, according to the research as relayed by The Hacker News.
What We Know
The researcher’s central argument, as described by The Hacker News, is that a database account’s SQL permissions govern which tables and schemas it can touch, but not the memory-unsafe C and C++ code that the underlying engine runs to read, plan and execute a query. Common, low-level grants — PostgreSQL’s default TEMPORARY privilege, or the right to create temporary tables in MySQL and ClickHouse — give an account enough room to reach that engine code, letting it create objects or send input that triggers a memory bug.
PostgreSQL. The flaw tracked as CVE-2026-116331 is a type confusion in PostgreSQL’s min/max aggregate optimization. According to PostgreSQL’s own security advisory, it occurs when a user-defined aggregate sets a SORTOP option that causes the planner to treat the aggregate’s input and result as the same type when they actually differ, allowing an account that can create database objects to execute arbitrary code as the operating system user running the database. PostgreSQL’s advisory lists affected versions as PostgreSQL 18 before 18.7, 17 before 17.12, 16 before 16.16, 15 before 15.20, and 14 before 14.25, all fixed on November 12, 2026, and rates the flaw 8.8 on the CVSS 3.0 scale. The Hacker News reported that the CVE record credits the researcher for the report, and that the proof of concept has a plain login role build the objects it needs inside its own temporary schema — without touching any application data — before turning the type-confusion bug into control of the server.
MySQL. A similar flaw in MySQL’s query optimizer, CVE-2026-101786, affects Server and Cluster versions 26.7.0 to 26.7.1, according to The Hacker News, which reported that Oracle’s MySQL advisory for October rates the issue as requiring high privileges. The researcher, however, reached code execution on the 26.7.0 image using an account that could only create temporary tables and could not read existing ones — a narrower level of access than Oracle’s own rating suggests, the outlet reported.
Oracle Database. Oracle Database is the one case where an attacker needs no account at all, according to the researcher as cited by The Hacker News: a bug in Oracle Text, combined with a flaw in the GraphQL interface of Oracle REST Data Services, can be chained against an exposed web endpoint to reach the engine code and run commands before any login. The Hacker News reported that Oracle patched the Oracle Text bug, tracked as CVE-2026-114819 and rated 9.9, in its November security update, and the GraphQL flaw, CVE-2026-91609, in its October update — and that Oracle itself rates neither flaw as exploitable on its own without a login.
ClickHouse. The fourth target is ClickHouse, where the researcher reported an integer-overflow write triggered by setting a single configuration option, format_binary_max_string_size, to zero while the server reads a binary row format, reproducing a working shell on version 26.7.5.10, The Hacker News reported. This flaw has no assigned CVE. ClickHouse told the outlet that the bug was reported through its bug bounty program and that a fix shipped in early September; the open-source fix landed in version 26.9 and later, and was backported to the 26.8, 26.7, 26.6 and 26.3 release lines starting with builds 26.8.3.41, 26.7.7.30, 26.6.5.55 and 26.3.32.8.
All five flaws now have vendor fixes, four of them with assigned CVEs, though The Hacker News noted that the full attack chains were not reproduced independently of the researcher, and that the research reports no sign any of the five has been used in an actual attack.
What We Don’t Know
The Hacker News’s reporting does not specify the exact affected version ranges for the Oracle Database and Oracle REST Data Services flaws beyond noting when each was patched, and Oracle’s own advisory page was not independently accessible for this article. It also is not clear how long any of the bugs existed in the affected codebases before the researcher found them, or whether other database engines using similarly structured temporary-object or temporary-table privileges share related weaknesses.
Implications
The Hacker News reported that, beyond installing the available patches, the researcher’s broader recommendation is for administrators to review what accounts are permitted to do — not only what data they can read — and to strip the TEMPORARY privilege and broad temporary-table rights from accounts that do not need them. The outlet noted that this mitigation does not close the Oracle Database path, since that attack chain starts without any account at all.