CVE-2026-18408 Details
Description
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.postgresql.org/support/security/CVE-2026-18408/ | PostgreSQL | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere | PostgreSQL |
Affected Products
| Product | Versions |
|---|---|
| postgresql postgresql | >= 14.0, < 14.24 >= 15.0, < 15.19 >= 16.0, < 16.15 >= 17.0, < 17.11 >= 18.0, < 18.5 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 29, 2026 | CVE Modified | PostgreSQL |
| Aug 19, 2026 | Initial Analysis | [email protected] |
| Aug 14, 2026 | CVE Modified | CISA-ADP |
| Aug 13, 2026 | CVE Modified | CISA-ADP |
| Aug 13, 2026 | New CVE Received | PostgreSQL |