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.
Overview
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.
- Published
- 8/13/2026
- Last modified
- 8/29/2026
- Assigned by
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
postgresql postgresql | ≥ 14.0, < 14.24 | Verify advisory | Source |
postgresql postgresql | ≥ 15.0, < 15.19 | Verify advisory | Source |
postgresql postgresql | ≥ 16.0, < 16.15 | Verify advisory | Source |
postgresql postgresql | ≥ 17.0, < 17.11 | Verify advisory | Source |
postgresql postgresql | ≥ 18.0, < 18.5 | Verify advisory | Source |
PostgreSQL n/a | ≥ 18, < 18.6 | Verify advisory | Source |
PostgreSQL n/a | ≥ 17, < 17.11 | Verify advisory | Source |
PostgreSQL n/a | ≥ 16, < 16.15 | Verify advisory | Source |
PostgreSQL n/a | ≥ 15, < 15.19 | Verify advisory | Source |
PostgreSQL n/a | < 14.24 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 8.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.