Skip to content
Brief Security & Trust ·

Researcher shows low-privilege database accounts can run code on the server

Depthfirst published exploits for PostgreSQL, MySQL and ClickHouse and describes an Oracle chain that needs no login. All five flaws now have fixes.

In brief
  • Depthfirst showed that accounts with very few rights can run commands on PostgreSQL, MySQL and ClickHouse servers. It also says two Oracle flaws, chained, need no login.
  • All five flaws have vendor fixes, and no real attack has been seen. The full chains were not reproduced independently.

The Hacker News reported that Zheng Yu of Depthfirst published exploits on November 18. They show that a database account with very few rights can run commands on the server. The targets are PostgreSQL, MySQL and ClickHouse. Depthfirst says two Oracle flaws, chained together, need no login, only a reachable web endpoint. Depthfirst gave no Oracle walkthrough because the product is closed source. No real attack has been seen.

Depthfirst says SQL grants limit which tables an account can reach, yet every allowed query still runs through C and C++ engine code. In PostgreSQL, a query shortcut skips a final step, so the server reads a plain number as a memory address. PostgreSQL gives every role the TEMPORARY right by default. That lets an attacker build their own tables and indexes without touching production tables. All five flaws have vendor fixes, but the full chains were not reproduced independently.

Oracle's MySQL advisory rates its flaw as needing high privileges. The researcher still got code to run using an account that could only create temporary tables. Teams that treat a narrow grant as a security boundary should not assume it holds. Buyers can ask which roles hold temporary-table rights, and which patch level each engine runs.

A WebPulse Brief: a short report of an important event, written by the WebPulse Newsroom with AI assistance and checked against the reporting below. When there is more to explain, we follow up with a full story. How we use AI.

Reporting: Depthfirst (researcher Zheng Yu).