CVE-2026-116313: PostgreSQL "vacuumdb --missing-stats-only" lets a database owner execute code as the vacuumdb user
CVE-2026-116313 affects 7 listed versions of PostgreSQL in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
PostgreSQL
7 of 250 listed versions are affected. Fixed in 18.7. The newest release, 19.0, is not affected.
18.6 18.5 18.4 18.3 18.2 18.1 18.0
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H (PostgreSQL)
Published by PostgreSQL on 12 November 2026. Last changed 13 November 2026.
Sources
Check one version you run: look CVE-2026-116313 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.