CVE-2026-2361CWE-427

Improper search_path protection in PostgreSQL Anonymizer 2.5 allows any user with create privilege to gain superuser privileges

High · published February 11, 2026

CVSS v3.1
8.0
EPSS
0%
Percentile
24.0
In the wild
Unconfirmed
What it is

⚡ A crafty function in PostgreSQL Anonymizer could let users elevate to superuser privileges just by making a temporary view! 🔥 Think of it like a restaurant where a diner can sneak into the kitchen by pretending to be a chef — once inside, they can change recipes, steal ingredients, or even serve up anything they want! This vulnerability could allow an attacker to execute malicious code with full superuser privileges, leading to catastrophic data exposure or manipulation. Imagine a rogue diner distributing poison among the dishes — it could compromise the entire establishment!

Put simply

Think of it like a restaurant where a diner can sneak into the kitchen by pretending to be a chef — once inside, they can change recipes, steal ingredients, or even serve up anything they want! This privilege escalation flaw allows users with CREATE privileges in PostgreSQL 15 and later to execute malicious code via the anon.get_tablesample_ratio function, gaining unrestricted access. The risk is amplified in PostgreSQL 14 or upgraded instances where the public schema permissions are too lax.

What to do

This vulnerability could allow an attacker to execute malicious code with full superuser privileges, leading to catastrophic data exposure or manipulation. Imagine a rogue diner distributing poison among the dishes — it could compromise the entire establishment! To patch this issue, upgrade to PostgreSQL Anonymizer version 3.0.1 or later immediately. Additionally, review user permissions in your databases to ensure that only trusted users have the CREATE privilege. Tighten schema permissions to prevent unauthorized access. You've got this! Follow these steps, and you’ll secure your PostgreSQL instance in no time! 🛡️

The record
Technical detail
CVSS v3.1
8.0 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00322 · 24.0th percentile
Weakness
CWE-427 · Uncontrolled Search Path Element
Published
2026-02-11T17:48Z
EPSS history
Timeline
  • 11 FEB 17:48Z
    Improper search_path protection in PostgreSQL Anonymizer 2.5 allows any user with create privilege to gain superuser privileges
    cvelistv5