CVE-2026-116313

published 12 Nov 2026 · updated 13 Nov 2026

PostgreSQL "vacuumdb --missing-stats-only" lets a database owner execute code as the vacuumdb user

7.2HighCVSS 7.2EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 18.7.

Untrusted search path in PostgreSQL vacuumdb allows a database owner to execute arbitrary SQL as the database user running vacuumdb, via shadowing operators used in the --missing-stats-only catalog query. The pg_upgrade documentation recommends an affected vacuumdb invocation. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
>=18 <18.718.7

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-116313 severity on Zeptric[![CVE-2026-116313](https://zeptric.io/badge/cve/CVE-2026-116313.svg)](https://zeptric.io/cve/CVE-2026-116313)