Skip to main content
CVE-2026-18408VulnerabilityPublished Updated

Microsoft · PostgreSQL psql \unrestrict lets superuser of pg_dump origin server execute arbitrary code in psql client

Affects MicrosoftSource GCVE Database

0
Compare
Authoritative record:CVE-2026-18408· High 8.8

Not known to be exploited · CVSS 8.8 High · fixed in 18.6 : patch Microsoft soon.

Data as of 6 Dec 2026, 11:23 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 18.6, 17.11, 16.15 +3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 6 Dec 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
PostgreSQLAffected
  • >=18 <18.6
Fixed in
  • 18.6
PostgreSQLAffected
  • >=17 <17.11
Fixed in
  • 17.11
PostgreSQLAffected
  • >=16 <16.15
Fixed in
  • 16.15
PostgreSQLAffected
  • >=15 <15.19
Fixed in
  • 15.19
PostgreSQLAffected
  • <14.24
Fixed in
  • 14.24
Postgresqlpostgresql/postgresqlpkg:deb/postgresql/postgresqlOther threatsAffected
  • <14.24
  • <15.19
  • <16.15
  • <17.11
  • <18.5
Fixed in
  • 14.24
  • 15.19
  • 16.15
  • 17.11
  • 18.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, limit superuser access and avoid using the \unrestrict command in untrusted environments.

Description

A vulnerability in PostgreSQL's psql client allows a superuser on the origin server of pg_dump to execute arbitrary code in the psql client by using the \unrestrict command. This issue affects specific versions of the software and could lead to unauthorized code execution.

References

Community reviews

Loading reviews…