A Researcher Found Code Execution Bugs in PostgreSQL, MySQL, Oracle, and ClickHouse Using Only Low-Privilege Accounts

Depthfirst's Zheng Yu showed that routine, low-level database permissions can be enough to reach memory-corruption bugs and achieve remote code execution across four major database engines.

Get a summary in:
Abstract cybersecurity visualization representing database vulnerability research
Follow Teck Hustlers on Google
Add Teck Hustlers as a preferred source to see more of our stories in Google Top Stories.
Add as preferred source on Google

TL;DR: Security researcher Zheng Yu of Depthfirst published findings showing that low-privilege database accounts, the kind that can’t even read application tables, can still trigger memory-corruption bugs deep in the C and C++ code that processes SQL queries. The research covers five separate flaws across PostgreSQL, MySQL, Oracle Database, Oracle REST Data Services, and ClickHouse. All five have vendor patches, and The Hacker News reports no evidence any of them have been exploited in a real attack, but the underlying technique, using routine grants like temporary-table rights as a stepping stone to full code execution, is the kind of thing that changes how database administrators should think about least-privilege accounts.

Person working across multiple computer screens analyzing code for vulnerabilities

The core insight driving this research is one that a lot of database security models don’t fully account for: the privileges that control what data an account can read are not the same as the privileges that control what code paths an account can trigger. A database account with almost no meaningful access to application data can still be allowed to create temporary objects or run certain query patterns, and those seemingly harmless permissions can be enough to reach bugs buried in the database engine’s own native code, far below the layer where access-control rules normally apply.

Across PostgreSQL, the researcher found a type-confusion bug tracked as CVE-2026-116331, where an account with permission to create database objects could use that access to execute code as the operating system user running the database. PostgreSQL has shipped fixes across five release lines: 18.7, 17.12, 16.16, 15.20, and 14.25, so patching coverage spans everything from the newest major version down to releases that are several years old. For MySQL Server and Cluster, a query optimizer flaw tracked as CVE-2026-101786 affected versions 26.7.0 through 26.7.1 and was fixed on October 20. Oracle’s own severity rating for that bug assumes an attacker needs high privileges to exploit it, but the researcher demonstrated code execution on 26.7.0 using nothing more than an account that could create temporary tables, a far lower bar than Oracle’s rating implies.

The Oracle Database findings are arguably the most serious of the batch because they chain together into something that needs no valid login at all. An Oracle Text bug, CVE-2026-114819, carries a 9.9 severity score and was fixed in November, but Oracle doesn’t rate it as exploitable without authentication when considered alone. Chained with a separate GraphQL flaw in Oracle REST Data Services, CVE-2026-91609, fixed back in October, the combination becomes an unauthenticated attack path, meaning an attacker wouldn’t need any database credentials at all to potentially reach code execution. That’s a meaningfully different risk profile from the PostgreSQL and MySQL findings, which at least require some kind of account to start from.

ClickHouse rounds out the list with an integer-overflow bug in its binary row format reader, triggered by setting the format_binary_max_string_size parameter to zero. The researcher reproduced a working shell on version 26.7.5.10. ClickHouse says the report came through its bug bounty program and shipped a fix back in September, with the patch covering version 26.9 and later, plus backports to 26.8.3.41, 26.7.7.30, 26.6.5.55, and 26.3.32.8, a fairly wide backport net that suggests ClickHouse took the severity seriously even without a formally assigned CVE.

What this means if you run any of these databases

The immediate action is the obvious one: apply the vendor patches for whichever of these engines you run, since fixes already exist for all five flaws. But the more durable lesson here is about how database permissions get granted in practice. Teams often focus access reviews on what tables and schemas an account can read or write, because that’s the layer most audit tooling checks by default. This research is a reminder to also look at what an account is allowed to do structurally, creating temporary tables, defining objects, running certain query types, because those permissions sit closer to the database engine’s native code than most people assume, and a seemingly minor grant can turn into a much bigger problem than it looks on paper.

For the Oracle chain specifically, patching doesn’t fully close the gap on its own, since the bug chain requires no account to begin with. That makes network exposure and access controls around Oracle REST Data Services endpoints just as important as applying the patch itself. None of the five vulnerabilities have been confirmed as actively exploited, which gives defenders a real window to patch before attackers catch up, but that window tends to close faster once public write-ups like this one start circulating.

The bottom line

Every one of these five bugs already has a fix available, which is the best-case scenario for disclosures like this. The harder work is reviewing whether your own database accounts carry more structural privilege than they need, since the pattern here, using routine grants to reach deep engine bugs, isn’t specific to any one vendor and is worth checking for regardless of which database you’re running.

Follow Teck Hustlers on Google
Add Teck Hustlers as a preferred source to see more of our stories in Google Top Stories.
Add as preferred source on Google
About

The Teck Hustlers Editorial Team covers technology, business, finance and gaming news for readers who want the story behind the headline. Every article is researched, written and edited by our in-house team, checked against company announcements, filings and reputable reporting, and updated when new facts emerge. We focus on what each development means for founders, professionals, investors and everyday users. Have a tip or a correction? Reach us through our contact page.

Up next: A 300,000-Domain Study Found llms.txt Does Basically Nothing for AI Citations