CVE-2025-55283CWE-77

aiven-db-migrate allows Privilege Escalation through use of psql during migration

Critical · published August 18, 2025

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

🔥 A single migration command from an untrusted source can give an attacker the keys to your PostgreSQL kingdom! Imagine this vulnerability like a sneaky contractor using your neighbor's renovation plans to expand their own house without permission — your database could be altered from the inside without you even realizing it! If exploited, an attacker could escalate their privileges to superuser, potentially taking full control of your PostgreSQL databases. This could lead to unauthorized data access, modification, and even complete data loss. It’s a nightmare scenario for database security!

Put simply

Imagine this vulnerability like a sneaky contractor using your neighbor's renovation plans to expand their own house without permission — your database could be altered from the inside without you even realizing it! The privilege escalation vulnerability arises from psql executing embedded commands in database dumps sourced from untrusted servers, allowing attackers to manipulate permissions during the migration process. This flaw was present in versions prior to 1.0.7 of the aiven-db-migrate tool.

What to do

If exploited, an attacker could escalate their privileges to superuser, potentially taking full control of your PostgreSQL databases. This could lead to unauthorized data access, modification, and even complete data loss. It’s a nightmare scenario for database security! To protect yourself, update the aiven-db-migrate tool to version 1.0.7 immediately. Additionally, ensure that only trusted source servers are used for migrations and audit your database permissions regularly to minimize risks. You’ve got this! By following these steps, you’ll be shielding your database from unwanted visitors 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.00616 · 48.8th percentile
Weakness
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published
2025-08-18T16:46Z
EPSS history
Timeline
  • 18 AUG 16:46Z
    aiven-db-migrate allows Privilege Escalation through use of psql during migration
    cvelistv5