CVE-2025-8714CWE-829

PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client

High · published August 14, 2025

CVSS v3.1
8.8
EPSS
1%
Percentile
54.9
In the wild
Unconfirmed
What it is

Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump. This is similar to MySQL CVE-2024-21096. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00762 · 54.9th percentile
Weakness
CWE-829 · Inclusion of Functionality from Untrusted Control Sphere
Published
2025-08-14T13:00Z
EPSS history
Timeline
  • 14 AUG 13:00Z
    PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client
    cvelistv5