CVE-2025-8714

High

Description

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.

SeverityHigh
CVSS8.8
Exploit probability—
ProductPostgreSQL
PublishedAug 14, 2025
First seenAug 14, 2025
Weakness typeCWE-829CWE-829

How to fix

Update
  • PostgreSQL17.6, 16.10, 15.14, 14.19, 13.22 or later

Affected products

ProductAffected versionsFixed in
PostgreSQL17 ≤ v < 17.6, 16 ≤ v < 16.10, 15 ≤ v < 15.14, 14 ≤ v < 14.19, v < 13.2217.6, 16.10, 15.14, 14.19, 13.22

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-8714 · PostgreSQL · Dark Radar