Researcher Zheng Yu Demonstrates RCE Exploits in PostgreSQL, MySQL, Oracle and ClickHouse via Low-Privilege Accounts

A researcher at Depthfirst has published proof-of-concept exploits showing how low-privilege database accounts can achieve remote code execution on PostgreSQL, MySQL, Oracle and ClickHouse servers by triggering memory-corruption bugs in the engine code. The attacks rely on ordinary SQL permissions such as the ability to create temporary tables rather than access to application data. Four vulnerabilities now carry vendor CVEs and patches, including CVE-2026-116331 in PostgreSQL and CVE-2026-101786 in MySQL, while an Oracle chain requires no login at all. The work highlights that SQL grants do not restrict access to the memory-unsafe C and C++ code paths used to process queries. Operators are advised to review temporary-table privileges and apply the released updates promptly.

The Hacker NewsTranslated from English

Read at source

Security researcher Zheng Yu of Depthfirst has released proof-of-concept exploits demonstrating remote code execution against PostgreSQL, MySQL, Oracle Database and ClickHouse. The attacks show that low-privilege accounts, even those unable to read a single application table, can still run arbitrary code on the database server by reaching memory-corruption bugs through ordinary SQL operations.

The researcher argues that database permissions control only which tables and schemas an account may access, not the memory-unsafe C and C++ code the engine executes when reading, planning and running queries. Common grants such as PostgreSQL’s default TEMPORARY privilege or the right to create temporary tables in MySQL and ClickHouse provide enough access to trigger the flaws.

PostgreSQL

In PostgreSQL, CVE-2026-116331 allows an account that can create database objects to execute code as the operating-system user running the database. The flaw was fixed on November 12 in versions 18.7, 17.12, 16.16, 15.20 and 14.25. The researcher demonstrated a plain login role building required objects inside its own temporary schema and converting a type-confusion bug into full server control.

MySQL

MySQL Server and Cluster versions 26.7.0 to 26.7.1 contain CVE-2026-101786 in the query optimizer. Although Oracle rated the issue as requiring high privileges, the researcher achieved code execution using only an account permitted to create temporary tables.

Oracle Database

Oracle Database is the sole case where no account is required. A chain combining a bug in Oracle Text (CVE-2026-114819, CVSS 9.9) with a flaw in the GraphQL interface of Oracle REST Data Services (CVE-2026-91609) reaches the engine through an exposed web endpoint and executes commands before any login occurs. Both issues have been patched in recent Oracle updates.

ClickHouse

ClickHouse version 26.7.5.10 is affected by an integer-overflow write reachable by setting the single option format_binary_max_string_size to zero. No CVE has been assigned and no fixed version has been confirmed.

Beyond applying patches, administrators should review account privileges and revoke the TEMPORARY privilege and broad temporary-table rights from accounts that do not require them. The Oracle attack path cannot be mitigated by privilege reduction because it begins without any database account.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Vulns & Exploits

Microsoft Entra Connect Health Flaw Exploited to Access Tenant Metadata and Admin Emails
GnuPG Warns of Critical Double-Free Flaw in GPGME Exposing App Data to Malicious OpenPGP Keys
CISA Adds Four Critical Flaws in Apache Roller, Cisco Expressway, SAP NetWeaver, and VMware vCenter to Known Exploited Vulnerabilities Catalog