CVE-2026-116313 PUBLISHED

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

Assigner: PostgreSQL
Reserved: 26.10.2026 Published: 12.11.2026 Updated: 12.11.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 7.2

Product Status

Vendor n/a
Product PostgreSQL
Versions Default: unaffected
  • affected from 18 to 18.7 (excl.)

Affected Configurations

attacker owns the database; victim runs vacuumdb with --missing-stats-only against that database

Credits

  • The PostgreSQL project thanks Anthropic OSS program for reporting this problem.

References

Problem Types

  • Untrusted Search Path CWE