CVE-2025-8714 json
PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client
published 2025-08-14 14 mo ago modified 2026-06-17 4 mo ago also BIT-postgresql-2025-8714 , EUVD-2025-24810
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami postgresql 13.22.0, 14.19.0, 15.14.0, 16.10.0, 17.6.0
- n/a PostgreSQL 13.22, 14.19, 15.14, 16.10, 17.6
- postgresql-15 Debian 12 15.19-0+deb12u1
- postgresql-17 Debian 13 17.6-0+deb13u1
debian advisories DEBIAN-CVE-2025-8714
- postgresql-14 Ubuntu 22.04 LTS 14.19-0ubuntu0.22.04.1
- postgresql-16 Ubuntu 24.04 LTS 16.10-0ubuntu0.24.04.1
- postgresql-17 Ubuntu 25.10 17.6-1
ubuntu advisories UBUNTU-CVE-2025-8714
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- pgaudit RHEL 8 1.4.0-7.module+el8.10.0+22214+9beb89d6
- pg_repack RHEL 8 1.4.6-3.module+el8.9.0+19330+c97ddbdf
- postgresql RHEL 8 12.22-12.module+el8.10.0+24952+3d791381
- postgresql-test RHEL 8 12.22-12.module+el8.10.0+24952+3d791381
- postgresql-pltcl RHEL 8 12.22-12.module+el8.10.0+24952+3d791381
- postgresql-plperl RHEL 8 12.22-12.module+el8.10.0+24952+3d791381
- postgresql-server RHEL 8 12.22-12.module+el8.10.0+24952+3d791381
- postgresql-contrib RHEL 8 12.22-12.module+el8.10.0+24952+3d791381
red hat advisories RHSA-2026:72274RHSA-2025:16099RHSA-2025:15361RHSA-2025:15359RHSA-2025:15114RHSA-2025:15062
- postgresql14 SLE Module for Package Hub 15 SP7, SLE Module for Package Hub 15 SP6, SLE Module for Legacy 15 SP7 +2 more 14.19-150600.16.20.1
- postgresql16 SLE Module for Server Applications 15 SP7, SLE Module for Server Applications 15 SP6, SLE Module for Package Hub 15 SP7 +4 more 16.10-150600.16.21.1
- postgresql15 SLE Module for Legacy 15 SP7, SLE Module for Legacy 15 SP6, openSUSE Leap 15.6 15.14-150600.16.20.1
- postgresql14 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 14.19-150200.5.61.1
- postgresql15 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +13 more 15.14-150200.5.44.1
- postgresql17 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 17.6-150200.5.16.1
- postgresql13 SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES 15 SP4-LTSS +5 more 13.22-150200.5.75.2
- postgresql17 SLE Module for Server Applications 15 SP7, SLE Module for Server Applications 15 SP6, SLE Module for Package Hub 15 SP7 +4 more 17.6-150600.13.16.1
suse advisories SUSE-SU-2025:03019-2SUSE-SU-2025:03005-1SUSE-SU-2025:03005-2SUSE-SU-2025:03018-2SUSE-SU-2025:03031-1SUSE-SU-2025:03030-1
- matrix-synapse openSUSE Tumbleweed 1.137.0-1.1
- postgresql17 openSUSE Tumbleweed 17.6-1.1
- postgresql13 openSUSE Tumbleweed 13.22-1.1
- postgresql14 openSUSE Tumbleweed 14.19-1.1
- postgresql15 openSUSE Tumbleweed 15.14-1.1
- postgresql16 openSUSE Tumbleweed 16.10-1.1
opensuse advisories openSUSE-SU-2025:15493-1openSUSE-SU-2025:15455-1openSUSE-SU-2025:15450-1openSUSE-SU-2025:15451-1openSUSE-SU-2025:15452-1openSUSE-SU-2025:15453-1
- pgaudit AlmaLinux 8 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1
- pgaudit AlmaLinux 8 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1
- pg_repack AlmaLinux 8 1.4.6-3.module_el8.9.0+3704+f1f917ce
- postgresql AlmaLinux 8 12.22-12.module_el8.10.0+4291+51362610
- postgresql-test AlmaLinux 8 12.22-12.module_el8.10.0+4291+51362610
- postgresql-pltcl AlmaLinux 8 12.22-12.module_el8.10.0+4291+51362610
- postgresql-plperl AlmaLinux 8 12.22-12.module_el8.10.0+4291+51362610
- postgresql-server AlmaLinux 8 12.22-12.module_el8.10.0+4291+51362610
almalinux advisories ALSA-2026:72274ALSA-2025:15115ALSA-2025:15021ALSA-2025:15022ALSA-2025:14826ALSA-2025:14827
- pgaudit Rocky Linux 8 1.4.0-7.module+el8.9.0+1735+a332307b
- pg_repack Rocky Linux 8 1.4.6-3.module+el8.10.0+1862+29bef648
- pg_repack Rocky Linux 8 1.4.6-3.module+el8.10.0+40055+b85d5ce2
- pg_repack Rocky Linux 8 1.4.6-3.module+el8.9.0+1594+4a6adae9
- pg_repack Rocky Linux 8 1.4.6-3.module+el8.9.0+1603+444d1b54
- postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.10.0+1862+29bef648
- postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.10.0+40055+b85d5ce2
- postgres-decoderbufs Rocky Linux 8 0.10.0-2.module+el8.9.0+1594+4a6adae9
rocky linux advisories RLSA-2026:72274RLSA-2025:14878RLSA-2025:14826RLSA-2025:14827RLSA-2025:14862RLSA-2025:14899
- postgresql15 Alpine 3.22, Alpine 3.20, Alpine 3.19 15.14-r0
- postgresql15 Alpine 3.21 15.17-r0
- postgresql16 Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 16.10-r0
- postgresql17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 17.6-r0
alpine advisories ALPINE-CVE-2025-8714
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- postgresql Azure Linux 3.0 16.10-1
- postgresql CBL-Mariner 2.0 14.19-1
azure linux advisories AZL-66303AZL-66324
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-8714 updated cvss 8.8
postgresql: PostgreSQL code execution in restore operation
-
Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 moreaffected: workaround, no fix planned “Do not restore a dump file from a server or user you do not explicitly trust.”
-
Red Hat CodeReady Linux Builder EUS (v.9.4) postgresql-test 13.22-1.el9_4fixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:15114
-
Red Hat Enterprise Linux AppStream (v. 8) pgaudit 1.5.0-1.module+el8.9.0+20664+9c30cf7f, pgaudit 1.7.0-1.module+el8.9.0+19797+c4ce5969, pgaudit 16.0-1.module+el8.10.0+20413+d8116364, pgaudit 1.4.0-7.module+el8.10.0+22214+9beb89d6, pg_repack 1.4.6-3.module+el8.9.0+19330+c97ddbdf, pg_repack 1.4.6-3.module+el8.9.0+20664+9c30cf7f, +44 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2026:72274
-
Red Hat Enterprise Linux AppStream (v. 9) postgresql 13.22-1.el9_6, postgresql-pltcl 13.22-1.el9_6, postgresql-plperl 13.22-1.el9_6, postgresql-server 13.22-1.el9_6, postgresql-contrib 13.22-1.el9_6, postgresql-upgrade 13.22-1.el9_6, +29 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:14862
-
Red Hat Enterprise Linux AppStream (v. 10) postgresql 16.10-1.el10_0, postgresql16 16.10-1.el10_0, postgresql-test 16.10-1.el10_0, postgresql-pltcl 16.10-1.el10_0, postgresql-plperl 16.10-1.el10_0, postgresql-server 16.10-1.el10_0, +4 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:14826
-
Red Hat Enterprise Linux AppStream AUS (v. 8.2) pgaudit 1.4.0-4.module+el8.2.0+9043+1dbb5661, postgresql 12.22-1.module+el8.2.0+23452+508bd26b.2, postgresql-test 12.22-1.module+el8.2.0+23452+508bd26b.2, postgresql-pltcl 12.22-1.module+el8.2.0+23452+508bd26b.2, postgresql-plperl 12.22-1.module+el8.2.0+23452+508bd26b.2, postgresql-server 12.22-1.module+el8.2.0+23452+508bd26b.2, +5 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:15361
-
Red Hat Enterprise Linux AppStream AUS (v.8.4) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 13.22-1.module+el8.4.0+23428+e8cf4671, postgresql 12.22-1.module+el8.4.0+23436+e3f9c044.2, postgresql-test 13.22-1.module+el8.4.0+23428+e8cf4671, postgresql-pltcl 13.22-1.module+el8.4.0+23428+e8cf4671, +16 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:15034
-
Red Hat Enterprise Linux AppStream AUS (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+23437+7ab3a838.2, postgresql 13.22-1.module+el8.6.0+23444+2be3520b.1, +18 more Red Hat Enterprise Linux AppStream E4S (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+23437+7ab3a838.2, postgresql 13.22-1.module+el8.6.0+23444+2be3520b.1, +18 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:15006
show 9 moreshow fewer
-
Red Hat Enterprise Linux AppStream E4S (v.8.8) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, pg_repack 1.4.8-1.module+el8.8.0+17071+aaaceaa4, +31 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:15012
-
Red Hat Enterprise Linux AppStream E4S (v.9.0) postgresql 13.22-1.el9_0, postgresql-pltcl 13.22-1.el9_0, postgresql-plperl 13.22-1.el9_0, postgresql-server 13.22-1.el9_0, postgresql-contrib 13.22-1.el9_0, postgresql-upgrade 13.22-1.el9_0, +2 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:14870
-
Red Hat Enterprise Linux AppStream E4S (v.9.2) postgresql 13.22-1.el9_2, postgresql-pltcl 13.22-1.el9_2, postgresql-plperl 13.22-1.el9_2, postgresql-server 13.22-1.el9_2, postgresql-contrib 13.22-1.el9_2, postgresql-upgrade 13.22-1.el9_2, +15 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:15062
-
Red Hat Enterprise Linux AppStream EUS (v.9.4) postgresql 13.22-1.el9_4, postgresql-pltcl 13.22-1.el9_4, postgresql-plperl 13.22-1.el9_4, postgresql-server 13.22-1.el9_4, postgresql-contrib 13.22-1.el9_4, postgresql-upgrade 13.22-1.el9_4, +28 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:15014
-
Red Hat Enterprise Linux AppStream TUS (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+23437+7ab3a838.2, postgresql 13.22-1.module+el8.6.0+23444+2be3520b.1, +18 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:15006
-
Red Hat Enterprise Linux AppStream TUS (v.8.8) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, pg_repack 1.4.8-1.module+el8.8.0+17071+aaaceaa4, +31 morefixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:15012
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) postgresql-test 13.22-1.el9_6, postgresql-test-rpm-macros 13.22-1.el9_6fixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:14878
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) postgresql-test-rpm-macros 16.10-1.el10_0fixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:14826
-
Red Hat Enterprise Linux Server (v. 7 ELS) postgresql 9.2.24-9.el7_9.4, postgresql-libs 9.2.24-9.el7_9.4, postgresql-test 9.2.24-9.el7_9.4, postgresql-pltcl 9.2.24-9.el7_9.4, postgresql-plperl 9.2.24-9.el7_9.4, postgresql-server 9.2.24-9.el7_9.4, +2 more Red Hat Enterprise Linux Server Optional (v. 7 ELS) postgresql-upgrade 9.2.24-9.el7_9.4fixed: vendor fix “Do not restore a dump file from a server or user you do not explicitly trust.” RHSA-2025:16099
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 14 mo ago
Exploit prediction
0.78% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | postgresql | <13.22.0 >=14.0.0, <14.19.0 >=15.0.0, <15.14.0 >=16.0.0, <16.10.0 >=17.0.0, <17.6.0 |
13.22.0 14.19.0 15.14.0 16.10.0 17.6.0 |
Affected products
- n/a PostgreSQL
Classification
- Weakness
-
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
- Technology feeds
References
Sources
- CVE List CVE-2025-8714
- NVD CVE-2025-8714
- OSV BIT-postgresql-2025-8714
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.