CVE-2025-8714
published high CVSS 3.1 · 8.8PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | PostgreSQL17 to < 17.6 · 16 to < 16.10 · 15 to < 15.14 · 14 to < 14.19 · 0 to < 13.22 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-3035 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL13-2025-012 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2025-019 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1158 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1165 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | postgresql-test-rpm-macros | Advisory build | 16.10-1.el10_0 | ALSA-2025:14826 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2025:15021 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1177 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+3095+ee60d910 | ALSA-2025:15021 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.9.0+3704+f1f917ce | ALSA-2025:15115 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.9.0+3704+f1f917ce | ALSA-2026:72274 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.8-1.module_el8.9.0+3706+885c732e | ALSA-2025:15022 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.5.1-1.module_el8.10.0+3930+ecf33554 | ALSA-2025:14899 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1 | ALSA-2025:15115 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1 | ALSA-2026:72274 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2025:15115 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2026:72274 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.5.0-1.module_el8.6.0+2760+1746ec94 | ALSA-2025:15021 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.5.0-1.module_el8.6.0+3095+ee60d910 | ALSA-2025:15021 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.7.0-1.module_el8.9.0+3706+885c732e | ALSA-2025:15022 |
| AlmaLinux | 8 | pgaudit | Advisory build | 16.0-1.module_el8.10.0+3798+606ebb9f | ALSA-2025:14899 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+3095+ee60d910 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.9.0+3704+f1f917ce | ALSA-2025:15115 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.9.0+3704+f1f917ce | ALSA-2026:72274 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el8.9.0+3706+885c732e | ALSA-2025:15022 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 2.4.0-1.Final.module_el8.10.0+3798+606ebb9f | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-private-devel | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-private-devel | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-private-libs | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-private-libs | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 12.22-12.module_el8.10.0+4291+51362610 | ALSA-2026:72274 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 12.22-5.module_el8.10.0+4043+6cac3079 | ALSA-2025:15115 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 13.22-1.module_el8.10.0+4042+cb252986 | ALSA-2025:15021 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 15.14-1.module_el8.10.0+4041+afd30bb4 | ALSA-2025:15022 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 16.10-1.module_el8.10.0+4038+0fbad93c | ALSA-2025:14899 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.4.8-2.module_el9.5.0+119+18833d03 | ALSA-2025:14862 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.5.1-1.module_el9.6.0+146+c54fdeca | ALSA-2025:14827 |
| AlmaLinux | 9 | pgaudit | Advisory build | 1.7.0-1.module_el9.3.0+52+21733919 | ALSA-2025:14862 |
| AlmaLinux | 9 | pgaudit | Advisory build | 16.0-1.module_el9.4.0+66+eb9878bc | ALSA-2025:14827 |
| AlmaLinux | 9 | pgvector | Advisory build | 0.6.2-2.module_el9.6.0+167+4e561146 | ALSA-2025:14827 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el9.3.0+52+21733919 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 2.4.0-1.Final.module_el9.4.0+66+eb9878bc | ALSA-2025:14827 |
| AlmaLinux | 9 | postgresql | Advisory build | 13.22-1.el9_6 | ALSA-2025:14878 |
| AlmaLinux | 9 | postgresql | Advisory build | 15.14-1.module_el9.6.0+176+c508cfa2 | ALSA-2025:14862 |
| AlmaLinux | 9 | postgresql | Advisory build | 16.10-1.module_el9.6.0+174+80cb77f0 | ALSA-2025:14827 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Showing the first 100 linked advisory records.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- PostgreSQL · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | PostgreSQL | 17 to < 17.6 (affected · rpm)16 to < 16.10 (affected · rpm)15 to < 15.14 (affected · rpm)14 to < 14.19 (affected · rpm)0 to < 13.22 (affected · rpm)Default: unaffected | PostgreSQL · cna |
Weaknesses
1- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
References
1Provider assertions
2PostgreSQL · cna
PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 825614166e4e6bb18c667476cf84e0ae6c5fd3a185cebe6a672d75310804dbb1
- Ingested
- 23 Sep 2026, 08:59:12 UTC
- Source record
- Official CVE record