# CVE-2025-8714: PostgreSQL pg\_dump lets superuser of origin server execute arbitrary code in psql client

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-14 · Modified: 2026-02-26
- Aliases: ALPINE-CVE-2025-8714, RHSA-2025:16099, UBUNTU-CVE-2025-8714, DEBIAN-CVE-2025-8714, openSUSE-SU-2025:15493-1
- Record: https://cvemate.com/vulnerability/CVE-2025-8714 · JSON: https://cvemate.com/vulnerability/CVE-2025-8714/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.788%, percentile 57.531%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 26)

- alpine postgresql15 (Alpine Linux): \< 15.14-r0 \| \< 15.17-r0
- alpine postgresql16 (Alpine Linux): \< 16.10-r0
- alpine postgresql17 (Alpine Linux): \< 17.6-r0
- debian postgresql-15 (Debian): \< 15.19-0+deb12u1
- debian postgresql-17 (Debian): \< 17.6-0+deb13u1
- ubuntu postgresql-10 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-12 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-14 (Ubuntu): \< 14.19-0ubuntu0.22.04.1
- ubuntu postgresql-16 (Ubuntu): \< 16.10-0ubuntu0.24.04.1
- ubuntu postgresql-17 (Ubuntu): \< 17.6-1
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.5 (Ubuntu): All versions (No fix recorded)
- opensuse matrix-synapse&distro=openSUSE Tumbleweed (openSUSE): \< 1.137.0-1.1
- redhat postgresql (Red Hat): \< 0:9.2.24-9.el7\_9.4
- redhat postgresql-contrib (Red Hat): \< 0:9.2.24-9.el7\_9.4
- redhat postgresql-debuginfo (Red Hat): \< 0:9.2.24-9.el7\_9.4
- redhat postgresql-devel (Red Hat): \< 0:9.2.24-9.el7\_9.4
- redhat postgresql-docs (Red Hat): \< 0:9.2.24-9.el7\_9.4
- redhat postgresql-libs (Red Hat): \< 0:9.2.24-9.el7\_9.4
- redhat postgresql-plperl (Red Hat): \< 0:9.2.24-9.el7\_9.4

## References

- <https://www.postgresql.org/support/security/CVE-2025-8714/>
- <https://security.alpinelinux.org/vuln/CVE-2025-8714>
- <https://access.redhat.com/errata/RHSA-2025:16099>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2388553>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_16099.json>
- <https://access.redhat.com/security/cve/CVE-2025-8714>
- <https://www.cve.org/CVERecord?id=CVE-2025-8714>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-8714>
- <https://ubuntu.com/security/CVE-2025-8714>
- <https://www.postgresql.org/about/news/postgresql-176-1610-1514-1419-1322-and-18-beta-3-released-3118/>
- <https://ubuntu.com/security/notices/USN-7741-1>
- <https://ubuntu.com/security/notices/USN-8653-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-8714>
- <https://www.suse.com/security/cve/CVE-2025-8714>

---

Data as of 2026-12-05T04:11:21.898Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
