Skip to main content
← All vulnerabilities
CVE-2025-8714

PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 17.6, 16.10, 15.14, 14.19, 13.22
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • n/a PostgreSQL

    From 17 · fixed in 17.6; From 16 · fixed in 16.10; From 15 · fixed in 15.14; From 14 · fixed in 14.19; fixed in 13.22

References 2

postgresql.org

GitHub · orderby99/CVE-2025-8714-POC