CVE-2026-18408
Last modified
CVE-2026-18408 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 0.36% chance of exploitation in the next 30 days.
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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Postgresql | Postgresql | >= 14.0, < 14.24 |
| Postgresql | Postgresql | >= 15.0, < 15.19 |
| Postgresql | Postgresql | >= 16.0, < 16.15 |
| Postgresql | Postgresql | >= 17.0, < 17.11 |
| Postgresql | Postgresql | >= 18.0, < 18.5 |
References
- https://www.postgresql.org/support/security/CVE-2026-18408/Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-18408?
How severe is CVE-2026-18408?
How do I fix CVE-2026-18408?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-18401The non-blocking (asynchronous) JSON parser in jackson-core …6.9
- CVE-2026-18402The SureDash – Community, Courses & Member Dashboard plugin …6.4
- CVE-2026-18403LimeSurvey Community Edition 7.0.5 contains an authenticated…6
- CVE-2026-18404The Social Chat – Click To Chat App Button plugin for WordPr…6.4
- CVE-2026-18405The Jeg Kit for Elementor – Powerful Addons for Elementor, W…7.2
- CVE-2026-18406The SureForms – Contact Form Builder, AI Forms, Payment Form…7.2
- CVE-2026-18409The WPForms Pro plugin for WordPress is vulnerable to Stored…7.2
- CVE-2026-1841The PixelYourSite – Your smart PIXEL (TAG) & API Manager plu…7.2
- CVE-2026-18411The KARR Security System and SWDS dealer-installed automotiv…8.1
- CVE-2026-18412OpenCart extensions are uploaded as zip files with .ocmod.zi…9.1
- CVE-2026-1842HyperCloud versions 2.3.5 through 2.6.8 improperly allowed r…6.2
- CVE-2026-18420Improper input validation in the Time Series Visual Builder …8.8
Are you affected by CVE-2026-18408?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
