CVE-2025-8714 PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client
HighCVSS 8.8
EPSS 0.79%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- MySQLUbuntuDebian
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.
Upgrade path
20 packages: 20 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/postgresql15(Alpine v3.19) | < 15.14-r0 | 15.14-r0 | Fixed |
| alpine/postgresql15(Alpine v3.20) | < 15.14-r0 | 15.14-r0 | Fixed |
| alpine/postgresql15(Alpine v3.21) | < 15.17-r0 | 15.17-r0 | Fixed |
| alpine/postgresql15(Alpine v3.22) | < 15.14-r0 | 15.14-r0 | Fixed |
| alpine/postgresql16(Alpine v3.19) | < 16.10-r0 | 16.10-r0 | Fixed |
| alpine/postgresql16(Alpine v3.20) | < 16.10-r0 | 16.10-r0 | Fixed |
| alpine/postgresql16(Alpine v3.21) | < 16.10-r0 | 16.10-r0 | Fixed |
| alpine/postgresql16(Alpine v3.22) | < 16.10-r0 | 16.10-r0 | Fixed |
| alpine/postgresql16(Alpine v3.23) | < 16.10-r0 | 16.10-r0 | Fixed |
| alpine/postgresql16(Alpine v3.24) | < 16.10-r0 | 16.10-r0 | Fixed |
| alpine/postgresql17(Alpine v3.21) | < 17.6-r0 | 17.6-r0 | Fixed |
| alpine/postgresql17(Alpine v3.22) | < 17.6-r0 | 17.6-r0 | Fixed |
| alpine/postgresql17(Alpine v3.23) | < 17.6-r0 | 17.6-r0 | Fixed |
| alpine/postgresql17(Alpine v3.24) | < 17.6-r0 | 17.6-r0 | Fixed |
| azure linux postgresql(Azure Linux 3.0) | < 16.10-1 | 16.10-1 | Fixed |
| cbl-mariner postgresql(CBL-Mariner 2.0) | < 14.19-1 | 14.19-1 | Fixed |
| debian/postgresql-15(Debian 12) | < 15.19-0+deb12u1; = 15.3-0+deb12u1; = 15.3-1; = 15.4-0+deb12u1 +18 more | 15.19-0+deb12u1 | Fixed |
| debian/postgresql-17(Debian 13) | < 17.6-0+deb13u1; = 17.5-1 | 17.6-0+deb13u1 | Fixed |
| ubuntu/postgresql-14(Ubuntu 22.04) | < 14.19-0ubuntu0.22.04.1 | 14.19-0ubuntu0.22.04.1 | Fixed |
| ubuntu/postgresql-16(Ubuntu 24.04) | < 16.10-0ubuntu0.24.04.1 | 16.10-0ubuntu0.24.04.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux postgresql(Azure Linux:3.0) | < 16.10-1 | 16.10-1 |
| cbl-mariner postgresql(CBL-Mariner:2.0) | < 14.19-1 | 14.19-1 |
| debian/postgresql-15(Debian:12) | < 15.19-0+deb12u1 | 15.19-0+deb12u1 |
| debian/postgresql-15(Debian:12) | = 15.10-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.11-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.12-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.12-0+deb12u2 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.13-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.14-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.15-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.16-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.17-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.18-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.3-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.3-1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-2 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-3 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.5-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.6-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.7-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.8-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.9-0+deb12u1 | No fix listed |
| debian/postgresql-17(Debian:13) | < 17.6-0+deb13u1 | 17.6-0+deb13u1 |
Show 17 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/postgresql-17(Debian:13) | = 17.5-1 | No fix listed |
| ubuntu/postgresql-14(Ubuntu:22.04) | < 14.19-0ubuntu0.22.04.1 | 14.19-0ubuntu0.22.04.1 |
| alpine/postgresql15(Alpine:v3.19) | < 15.14-r0 | 15.14-r0 |
| alpine/postgresql15(Alpine:v3.20) | < 15.14-r0 | 15.14-r0 |
| alpine/postgresql15(Alpine:v3.21) | < 15.17-r0 | 15.17-r0 |
| alpine/postgresql15(Alpine:v3.22) | < 15.14-r0 | 15.14-r0 |
| alpine/postgresql16(Alpine:v3.19) | < 16.10-r0 | 16.10-r0 |
| alpine/postgresql16(Alpine:v3.20) | < 16.10-r0 | 16.10-r0 |
| alpine/postgresql16(Alpine:v3.21) | < 16.10-r0 | 16.10-r0 |
| alpine/postgresql16(Alpine:v3.22) | < 16.10-r0 | 16.10-r0 |
| alpine/postgresql16(Alpine:v3.23) | < 16.10-r0 | 16.10-r0 |
| alpine/postgresql16(Alpine:v3.24) | < 16.10-r0 | 16.10-r0 |
| alpine/postgresql17(Alpine:v3.21) | < 17.6-r0 | 17.6-r0 |
| alpine/postgresql17(Alpine:v3.22) | < 17.6-r0 | 17.6-r0 |
| alpine/postgresql17(Alpine:v3.23) | < 17.6-r0 | 17.6-r0 |
| alpine/postgresql17(Alpine:v3.24) | < 17.6-r0 | 17.6-r0 |
| ubuntu/postgresql-16(Ubuntu:24.04) | < 16.10-0ubuntu0.24.04.1 | 16.10-0ubuntu0.24.04.1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-8714 vendor-advisory
- www.postgresql.org
- Ubuntu CVE tracker vendor-advisory
- USN-7741-1 vendor-advisory
- USN-8653-1 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- GitLab Patch Release: 18.4.1, 18.3.3, 18.2.7 vendor-advisory