| Name | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4273-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| postgresql-13 (PTS) | bullseye | 13.16-0+deb11u1 | vulnerable |
| bullseye (security) | 13.22-0+deb11u1 | fixed | |
| postgresql-15 (PTS) | bookworm | 15.14-0+deb12u1 | fixed |
| bookworm (security) | 15.10-0+deb12u1 | vulnerable | |
| postgresql-17 (PTS) | trixie | 17.6-0+deb13u1 | fixed |
| forky, sid | 17.6-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| postgresql-13 | source | bullseye | 13.22-0+deb11u1 | DLA-4273-1 | ||
| postgresql-13 | source | (unstable) | (unfixed) | |||
| postgresql-15 | source | bookworm | 15.14-0+deb12u1 | |||
| postgresql-15 | source | (unstable) | (unfixed) | |||
| postgresql-17 | source | trixie | 17.6-0+deb13u1 | |||
| postgresql-17 | source | (unstable) | 17.6-1 |
https://www.postgresql.org/about/news/postgresql-176-1610-1514-1419-1322-and-18-beta-3-released-3118/
https://www.postgresql.org/support/security/CVE-2025-8714/