Live threats

All CVEs / Postgresql

CVE-2026-18408Postgresql

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
—
Auth required
No
Published
Aug 13, 2026
Updated
Aug 29, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-829
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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 for an attack. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump. Non-core use of \restrict would be affected, but we've not identified non-core use. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.

Original NVD text.

What to do

  1. Apply the vendor's security update for Postgresql.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
postgresqlpostgresql≥ 14.0 < 14.24
postgresqlpostgresql≥ 15.0 < 15.19
postgresqlpostgresql≥ 16.0 < 16.15
postgresqlpostgresql≥ 17.0 < 17.11
postgresqlpostgresql≥ 18.0 < 18.5

Official advisories

Also: Red Hat (+20), SUSE (+26)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.