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.5, 17.11, 16.15, 15.19, and 14.24 are affected.
CVE-2026-18408
Score 8.8 from GitHub Security Advisory (severity: HIGH) published 2026-08-13. a secondary CVSS source baseline 8.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.8
- EG Score
- 8.8(high)
- EG Risk
- 40(Track)EG Risk 40/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity88% × 45%Exploitation1% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 42%
- KEV
- Not listed
Published
August 13, 2026
Last Modified
August 19, 2026
Advisory Details (1)
Auto-updated Aug 13, 2026PostgreSQL: CVE-2026-18408: PostgreSQL psql \unrestrict lets superuser of pg_dump origin server execute arbitrary code in psql client
https://www.postgresql.org/support/security/CVE-2026-18408/Vendor Advisories for CVE-2026-18408(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(1)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | postgresql-server-dev-18 (18.6-0ubuntu0.26.04.1) @ resolute | 2026-08-21 | ubuntu |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(1)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 30× in last 7d / 41× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-21 03:07 UTCEG score recompute
- 2026-08-21 03:07 UTCVendor advisory
- 2026-08-21 03:07 UTCGHSA enrichment
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-20 15:08 UTCVendor advisory
- 2026-08-20 15:08 UTCGHSA enrichment
- 2026-08-20 03:03 UTCEG score recompute
- 2026-08-20 03:03 UTCGHSA enrichment
- 2026-08-19 17:03 UTCEPSS rescore
- 2026-08-19 15:04 UTCGHSA enrichment
- 2026-08-19 03:30 UTCGHSA enrichment
- 2026-08-18 15:30 UTCEG score recompute
- 2026-08-18 15:29 UTCGHSA enrichment
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-18 05:29 UTCGHSA enrichment
- 2026-08-17 17:29 UTCEG score recompute
- 2026-08-17 17:29 UTCGHSA enrichment
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-17 05:24 UTCGHSA enrichment
- 2026-08-16 17:21 UTCEG score recompute
- 2026-08-16 17:21 UTCGHSA enrichment
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 05:22 UTCEG score recompute
- 2026-08-16 05:22 UTCGHSA enrichment
- 2026-08-16 02:14 UTCEPSS rescore
Show 16 moreShow fewer
- 2026-08-15 17:23 UTCGHSA enrichment
- 2026-08-15 05:24 UTCEG score recompute
- 2026-08-15 05:24 UTCGHSA enrichment
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-14 17:24 UTCGHSA enrichment
- 2026-08-14 05:25 UTCEG score recompute
- 2026-08-14 05:25 UTCGHSA enrichment
- 2026-08-14 04:24 UTCEG score recompute
- 2026-08-14 04:24 UTCGHSA enrichment
- 2026-08-13 16:29 UTCEG score recompute
- 2026-08-13 16:29 UTCGHSA enrichment
- 2026-08-13 16:01 UTCEG score recompute
- 2026-08-13 16:01 UTCGHSA enrichment
- 2026-08-13 13:35 UTCEG score recompute
- 2026-08-13 13:17 UTCEG score recompute
- 2026-08-13 13:16 UTCMITRE cvelistV5first tracked
Frequently asked(5)
What is CVE-2026-18408?
When was CVE-2026-18408 disclosed?
Is CVE-2026-18408 actively exploited?
What is the CVSS score of CVE-2026-18408?
How do I remediate CVE-2026-18408?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-18408
Is Your Infrastructure Affected by CVE-2026-18408?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.