CVE-2026-116313
JSON

7.2high

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

Severity
7.2high CVSS:3.1 by PostgreSQL
Exploit likelihood
0.44% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
PostgreSQL
Also known as
BIT-POSTGRESQL-2026-116313

Description

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

Product or packageVersionsReported by
PostgreSQLfrom 18 before 18.7CVE List
postgresql (Bitnami)from 18.0.0 before 18.7.0Bitnami Vulnerability Database

All scores

PostgreSQL7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-426

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-116313 changed 2026-11-13CVE Terms of Use
NVDCVE-2026-116313 changed 2026-11-13Public domain
Bitnami Vulnerability DatabaseBIT-POSTGRESQL-2026-116313 changed 2026-11-27Apache-2.0