All vulnerabilities

Servers and applications

CVE-2026-18408

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 \restrict meta-command input expansion. The fix for CVE-2025-8714 introduced \restrict and \unrestrict to block this attack, but \unrestrict itself was sufficient…

Severity
High 8.8
Published
13 Aug 2026
Last changed
29 Aug 2026
Added to UpHeron
16 Oct 2026
Fixed in
14.24, 15.19, 16.15, 17.11, 18.5
Sources
NVD

Affected software

SoftwareAffected versions
PostgreSQLServers and applications · cpe:a:postgresql:postgresql
  • From 14.0 before 14.24
  • From 15.0 before 15.19
  • From 16.0 before 16.15
  • From 17.0 before 17.11
  • From 18.0 before 18.5

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-18408
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-18408