CVE-2025-8714
Public on 2025-08-14
Modified on 2025-08-18
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.
Severity
See what this means
CVSS v3 Base Score
See breakdown
Affected Packages
| Platform | Package | Release Date | Advisory | Status |
|---|---|---|---|---|
| Amazon Linux 2 - Core | postgresql | 2025-10-14 | ALAS2-2025-3035 | Fixed |
| Amazon Linux 2 - Postgresql13 Extra | postgresql | 2025-09-04 | ALAS2POSTGRESQL13-2025-012 | Fixed |
| Amazon Linux 2 - Postgresql14 Extra | postgresql | 2025-09-04 | ALAS2POSTGRESQL14-2025-019 | Fixed |
| Amazon Linux 2023 | postgresql15 | 2025-09-08 | ALAS2023-2025-1165 | Fixed |
| Amazon Linux 2023 | postgresql16 | 2025-09-15 | ALAS2023-2025-1177 | Fixed |
| Amazon Linux 2023 | postgresql17 | 2025-09-08 | ALAS2023-2025-1158 | Fixed |
| Amazon Linux 1 | postgresql92 | No Fix Planned | ||
| Amazon Linux 1 | postgresql93 | No Fix Planned | ||
| Amazon Linux 1 | postgresql94 | No Fix Planned | ||
| Amazon Linux 1 | postgresql95 | No Fix Planned | ||
| Amazon Linux 1 | postgresql96 | No Fix Planned |
CVSS Scores
| Score Type | Score | Vector | |
|---|---|---|---|
| Amazon Linux | CVSSv3 | 6.5 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
| NVD | CVSSv3 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |