CVE-2021-33204

In the pg_partman (aka PG Partition Manager) extension before 4.5.1 for PostgreSQL, arbitrary code execution can be achieved via SECURITY DEFINER functions…

published May 19, 2021

CVSS
—
EPSS
2%
Percentile
82.4
In the wild
Unconfirmed
What it is

🚨 A single missed search path is enough to let an attacker execute arbitrary code through SECURITY DEFINER functions in pg_partman! 🔥 Think of pg_partman like a restaurant kitchen where the chef can use any ingredient from the pantry without checking labels. If someone sneaks in and adds a questionable item, it could lead to disastrous meals! If exploited, an attacker could potentially run any code they want, leading to unauthorized access, data leaks, or even complete control over the database. That's a recipe for chaos!

Put simply

Think of pg_partman like a restaurant kitchen where the chef can use any ingredient from the pantry without checking labels. If someone sneaks in and adds a questionable item, it could lead to disastrous meals! This vulnerability exists in pg_partman versions before 4.5.1 due to the lack of an explicit search_path, allowing attackers to manipulate the function's execution to run their own commands.

What to do

If exploited, an attacker could potentially run any code they want, leading to unauthorized access, data leaks, or even complete control over the database. That's a recipe for chaos! To protect your PostgreSQL instance, make sure to upgrade pg_partman to version 4.5.1 or later. It's also wise to review your use of SECURITY DEFINER functions and set a proper search_path to limit access. 🛡️ You've got this! By taking these steps, you'll keep your database safe and sound! 🚀

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02200 · 82.4th percentile
Published
2021-05-19T16:23Z
EPSS history
Timeline
  • 19 MAY 16:23Z
    In the pg_partman (aka PG Partition Manager) extension before 4.5.1 for PostgreSQL, arbitrary code execution can be achieved via SECURITY DEFINER functions…
    cvelistv5