CVE-2025-8714
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.
How to fix
- PostgreSQL17.6, 16.10, 15.14, 14.19, 13.22 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PostgreSQL | 17 ≤ v < 17.6, 16 ≤ v < 16.10, 15 ≤ v < 15.14, 14 ≤ v < 14.19, v < 13.22 | 17.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.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.