8.8

CVE-2026-18408: PostgreSQL psql \unrestrict lets superuser of pg_dump origin server execute arbitrary code in psql client

Modified
AliasesALPINE-CVE-2026-18408RHSA-2026:79009RHSA-2026:79027
Published 13-08-2026Last modified 29-08-2026

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 31.2% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.36%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 53 · Related 30

Timeline

  1. 13-08-2026
    PublishedVulnerability first disclosed.
  2. 29-08-2026
    Last 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

EPSS trend

Probability

0.36%

Chance of exploitation in the next 30 days

Percentile

31%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.36% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

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
Chainguard10 products
  • postgresql-14< 14.24-r0
  • postgresql-14-client< 14.24-r0
  • postgresql-15< 15.19-r0
  • postgresql-15-client< 15.19-r0
  • postgresql-16< 16.15-r0
Wolfi10 products
  • postgresql-14< 14.24-r0
  • postgresql-14-client< 14.24-r0
  • postgresql-15< 15.19-r0
  • postgresql-15-client< 15.19-r0
  • postgresql-16< 16.15-r0
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
Alpine4 products
  • postgresql15< 15.19-r0
  • 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

7 vendors · 69 products

References

17 links
Show all 17 references