{"id":"CVE-2025-8714","published":"2025-08-14T13:00:07Z","modified":"2026-02-26T17:48:36Z","title":"PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00788,"percentile":0.57093,"provenance":"source"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2025-8714/","tags":[]}],"priority":{"score":22.6,"factors":[{"name":"EPSS percentile","points":11.42},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-08-31","earliestUrl":"https://github.com/orderby99/CVE-2025-8714-POC","repos":[{"name":"orderby99/CVE-2025-8714-POC","url":"https://github.com/orderby99/CVE-2025-8714-POC","stars":2,"created":"2025-08-31"}]},"first":{"date":"2025-08-31","source":"PoC-in-GitHub","url":"https://github.com/orderby99/CVE-2025-8714-POC"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"PostgreSQL","versions":[">= 17, < 17.6",">= 16, < 16.10",">= 15, < 15.14",">= 14, < 14.19","< 13.22"]}],"workarounds":{"items":["use \"pg_restore --dbname\" instead of restore methods that involve \"psql\""],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-08-15T03:55:55.435717Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-24810","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2025-8714-family-cve-2025-8714","parents":[{"from":"CVE-2024-21096","to":"CVE-2025-8714","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This is similar to MySQL CVE-2024-21096.","from":"CVE.org","in":"CVE-2025-8714"}]}],"children":[{"from":"CVE-2025-8714","to":"CVE-2026-18408","relation":"regression","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"regression","quote":"The fix for CVE-2025-8714 introduced \\restrict and \\unrestrict to block this attack, but \\unrestrict itself was sufficient for an attack. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump.","from":"CVE.org","in":"CVE-2026-18408"}]}]}}