PostgreSQL vacuumdb Untrusted Search Path before 18.7 (CVE-2026-116313)
CVE-2026-116313 Published on November 12, 2026
PostgreSQL "vacuumdb --missing-stats-only" lets a database owner execute code as the vacuumdb user
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.
Vulnerability Analysis
Weakness Type
What is an Untrusted Path Vulnerability?
The application searches for critical resources using an externally-supplied search path that can point to resources that are not under the application's direct control.
CVE-2026-116313 has been classified to as an Untrusted Path vulnerability or weakness.
Products Associated with CVE-2026-116313
Want to know whenever a new CVE is published for PostgreSQL? stack.watch will email you.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.