CVE-2025-8714 Details
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.
A vulnerability exists in PostgreSQL's pg_dump utility, affecting versions prior to 17.6, 16.10, 15.14, 14.19, and 13.22. This vulnerability allows a malicious superuser on the origin server to inject arbitrary code that is executed during the restoration process, using the client's operating system account that runs psql. The issue also affects pg_dumpall and pg_restore when generating a plain-format dump. This vulnerability is similar to MySQL's CVE-2024-21096.
Users can upgrade to PostgreSQL versions 17.6, 16.10, 15.14, 14.19, or 13.22 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 14, 2025CISA-ADP
Assessed Aug 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.postgresql.org/support/security/CVE-2025-8714/ | PostgreSQL | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere | PostgreSQL |
Affected Products
| Product | Versions |
|---|---|
| PostgreSQL pg_dump | < 17.6 < 16.10 < 15.14 < 14.19 < 13.22 |
CPE
Remediation
| |
| PostgreSQL pg_dumpall | All versions |
CPE
Remediation
| |
| PostgreSQL pg_restore | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | PostgreSQL |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 14, 2025 | New CVE Received | PostgreSQL |
Volerion