# CVE-2026-116313: PostgreSQL "vacuumdb --missing-stats-only" lets a database owner execute code as the vacuumdb user

- Severity: High 7.2 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-11-12T14:15:07.627Z
- Modified: 2026-11-27T06:45:41.529Z
- Also known as: BIT-POSTGRESQL-2026-116313
- Weaknesses: CWE-426
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 18 before 18.7
- postgresql (Bitnami): from 18.0.0 before 18.7.0

## Every score

- PostgreSQL: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.postgresql.org/support/security/CVE-2026-116313/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-116313> (web)

## Sources

- CVE List: [CVE-2026-116313](https://www.cve.org/CVERecord?id=CVE-2026-116313), CVE Terms of Use, modified 2026-11-13
- NVD: [CVE-2026-116313](https://nvd.nist.gov/vuln/detail/CVE-2026-116313), Public domain, modified 2026-11-13
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2026-116313](https://osv.dev/vulnerability/BIT-POSTGRESQL-2026-116313), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-116313 · Whole record: https://cve.day/CVE-2026-116313.json · Rebuilt by cve.day 2026-11-27T07:07:21.417Z
