CVE-2026-18408: postgresql
Vulnerability summary
CVE-2026-18408 is a high (CVSS 8.8) vulnerability in postgresql. EPSS estimates a 0.36% chance of exploitation in the next 30 days, higher than 27.7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 51 · Related 30Timeline
- 13-08-2026PublishedVulnerability first disclosed.
- 29-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated8.4HighCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.36%
Chance of exploitation in the next 30 days
Percentile
28%
Versus all other CVEs
30-day change
-0.01 pp
From 0.36% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat34 products
- pg_repack< 0:1.4.6-3.module+el8.5.0+11354+78b3c9c5
- pg_repack-debuginfo< 0:1.4.6-3.module+el8.5.0+11354+78b3c9c5
- pg_repack-debugsource< 0:1.4.6-3.module+el8.5.0+11354+78b3c9c5
- pgaudit< 0:1.4.0-5.module+el8.5.0+11354+78b3c9c5 | < 0:1.4.0-6.module+el8.4.0+11288+c193d6d7
- pgaudit-debuginfo< 0:1.4.0-5.module+el8.5.0+11354+78b3c9c5 | < 0:1.4.0-6.module+el8.4.0+11288+c193d6d7
Ubuntu7 products
- postgresql-10All versions (No fix recorded)
- postgresql-12All versions (No fix recorded)
- postgresql-14< 14.24-0ubuntu0.22.04.1
- postgresql-16< 16.15-0ubuntu0.24.04.1
- postgresql-18< 18.6-0ubuntu0.26.04.1
Alpine3 products
- postgresql16< 16.15-r0
- postgresql17< 17.11-r0
- postgresql18< 18.5-r0
Debian3 products
- postgresql-15< 15.19-0+deb12u1
- postgresql-17< 17.11-0+deb13u1
- postgresql-18< 18.6-1
Postgresql1 product
- postgresql≥ 14.0, < 14.24 | ≥ 15.0, < 15.19 | ≥ 16.0, < 16.15 | ≥ 17.0, < 17.11 | ≥ 18.0, < 18.5
5 vendors · 48 products