CVE-2025-55282CWE-22

aiven-db-migrate allows Privilege Escalation via unrestricted search_path during migration

Critical · published August 18, 2025

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

🚨 A lack of search_path restriction could let an attacker leap into a superuser role during a migration, like a cook sneaking into the chef's cabinet to grab the secret spice! 🔥 Imagine a restaurant where anyone can waltz into the kitchen and access the top-secret recipes without permission. That's essentially what happens here: an attacker can exploit a gap in the migration process to gain superuser privileges in PostgreSQL databases. If exploited, this vulnerability could give an attacker full control over the database, allowing them to access sensitive data, modify records, or even delete everything! It's an absolute nightmare scenario for database security and could lead to devastating data breaches and loss.

Put simply

Imagine a restaurant where anyone can waltz into the kitchen and access the top-secret recipes without permission. That's essentially what happens here: an attacker can exploit a gap in the migration process to gain superuser privileges in PostgreSQL databases. The privilege escalation vulnerability in aiven-db-migrate prior to version 1.0.7 allows an attacker to manipulate the search_path during a migration, overriding the pg_catalog and executing commands as a superuser from an untrusted source.

What to do

If exploited, this vulnerability could give an attacker full control over the database, allowing them to access sensitive data, modify records, or even delete everything! It's an absolute nightmare scenario for database security and could lead to devastating data breaches and loss. Immediately update aiven-db-migrate to version 1.0.7 or later to close this vulnerability. Review your migration processes to ensure that untrusted sources aren't allowed to escalate privileges. Regularly audit user permissions in your PostgreSQL databases for added safety. You've got this! With a quick update, you'll be back in the safe zone 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.00723 · 53.5th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2025-08-18T16:44Z
EPSS history
Timeline
  • 18 AUG 16:44Z
    aiven-db-migrate allows Privilege Escalation via unrestricted search_path during migration
    cvelistv5