CVE-2025-31480CWE-426

aiven-extras allows PostgreSQL Privilege Escalation through format function

Critical · published April 4, 2025

CVSS v3.1
9.1
EPSS
0%
Percentile
41.0
In the wild
Unconfirmed
What it is

🔥 A little oversight in the aiven-extras PostgreSQL extension allows anyone to escalate their privileges to superuser with ease — talk about handing out the keys to the kingdom! ⚡ Think of it like a restaurant where a waiter can change their role to head chef just because the instruction manual didn’t specify which team members can handle the kitchen! Now, imagine the chaos if they start changing recipes without anyone knowing! This privilege escalation could be absolutely devastating! An attacker could gain full control over the database, alter data, and even wipe it clean, leading to significant data loss or corruption. If you're using this extension, your sensitive information could be at serious risk!

Put simply

Think of it like a restaurant where a waiter can change their role to head chef just because the instruction manual didn’t specify which team members can handle the kitchen! Now, imagine the chaos if they start changing recipes without anyone knowing! The vulnerability arises because the format function in aiven-extras isn’t correctly schema-prefixed, allowing attackers to execute commands as a superuser. This opens the door for unauthorized access and modifications in the database.

What to do

This privilege escalation could be absolutely devastating! An attacker could gain full control over the database, alter data, and even wipe it clean, leading to significant data loss or corruption. If you're using this extension, your sensitive information could be at serious risk! Update to aiven-extras version 1.1.16 immediately! Don't forget to issue the command ALTER EXTENSION aiven_extras UPDATE TO '1.1.16' in every database where the extension is installed. This step is crucial to safeguard your databases! You've got this! Follow these steps, and you'll have your PostgreSQL databases secured in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00487 · 41.0th percentile
Weakness
CWE-426 · Untrusted Search Path
Published
2025-04-04T14:49Z
EPSS history
Timeline
  • 04 APR 14:49Z
    aiven-extras allows PostgreSQL Privilege Escalation through format function
    cvelistv5