CVE Explorer
CVE-2025-8714
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","product":"PostgreSQL","vendor":"n/a","versions":[{"lessThan":"17.6","status":"affected","version":"17","versionType":"rpm"},{"lessThan":"16.10","status":"affected","version":"16","versionType":"rpm"},{"lessThan":"15.14","status":"affected","version":"15","versionType":"rpm"},{"lessThan":"14.19","status":"affected","version":"14","versionType":"rpm"},{"lessThan":"13.22","status":"affected","version":"0","versionType":"rpm"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:1775193fd0ce17dd70bae7166a9c5034bbc8de0a60ea9220185422d9ca7937e0 · sha256:4f60ef1510d37ecb… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"baseScore":8.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:1775193fd0ce17dd70bae7166a9c5034bbc8de0a60ea9220185422d9ca7937e0 · sha256:4f60ef1510d37ecb… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-829","description":"Inclusion of Functionality from Untrusted Control Sphere","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:1775193fd0ce17dd70bae7166a9c5034bbc8de0a60ea9220185422d9ca7937e0 · sha256:4f60ef1510d37ecb… · /containers/cna/problemTypes/0/descriptions/0
Source references
1 source assertion{"url":"https://www.postgresql.org/support/security/CVE-2025-8714/"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1775193fd0ce17dd70bae7166a9c5034bbc8de0a60ea9220185422d9ca7937e0 · sha256:4f60ef1510d37ecb… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.