CVE-2025-8714: PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client
Vulnerability summary
CVE-2025-8714 is a high (CVSS 8.8) vulnerability in postgresql-17. EPSS estimates a 0.79% chance of exploitation in the next 30 days, higher than 57.5% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 51 · Related 26Timeline
- 14-08-2025PublishedVulnerability first disclosed.
- 26-02-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.79%
Chance of exploitation in the next 30 days
Percentile
58%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.78% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat13 products
- postgresql< 0:9.2.24-9.el7_9.4
- postgresql-contrib< 0:9.2.24-9.el7_9.4
- postgresql-debuginfo< 0:9.2.24-9.el7_9.4
- postgresql-devel< 0:9.2.24-9.el7_9.4
- postgresql-docs< 0:9.2.24-9.el7_9.4
Ubuntu7 products
- postgresql-10All versions (No fix recorded)
- postgresql-12All versions (No fix recorded)
- postgresql-14< 14.19-0ubuntu0.22.04.1
- postgresql-16< 16.10-0ubuntu0.24.04.1
- postgresql-17< 17.6-1
Alpine3 products
- postgresql15< 15.14-r0 | < 15.17-r0
- postgresql16< 16.10-r0
- postgresql17< 17.6-r0
Debian2 products
- postgresql-15< 15.19-0+deb12u1
- postgresql-17< 17.6-0+deb13u1
Opensuse1 product
- matrix-synapse&distro=openSUSE Tumbleweed< 1.137.0-1.1
5 vendors · 26 products