{"id":"CVE-2026-116313","aliases":["CVE-2026-116313","BIT-POSTGRESQL-2026-116313"],"related":[],"kind":"vulnerability","state":"published","title":"PostgreSQL \"vacuumdb --missing-stats-only\" lets a database owner execute code as the vacuumdb user","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-12T14:15:07.627Z","modified":"2026-11-27T06:45:41.529Z","severity":{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-426"],"affected":[{"ranges":[{"type":"rpm","introduced":"18","fixed":"18.7","status":"affected"}],"product":"PostgreSQL","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"18.0.0","status":"affected","fixed":"18.7.0"}],"ecosystem":"Bitnami","package":"postgresql","purl":"pkg:bitnami/postgresql","source":"bitnami"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-116313/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116313","tags":["web"],"sources":["bitnami"]}],"credits":["The PostgreSQL project thanks Anthropic OSS program for reporting this problem."],"assigner":"PostgreSQL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-12T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-116313","url":"https://www.cve.org/CVERecord?id=CVE-2026-116313","licence":"CVE Terms of Use","modified":"2026-11-13T05:03:11.325Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-116313","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116313","licence":"Public domain","modified":"2026-11-13T05:18:04.153Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-POSTGRESQL-2026-116313","url":"https://osv.dev/vulnerability/BIT-POSTGRESQL-2026-116313","licence":"Apache-2.0","modified":"2026-11-27T06:45:41.529Z"}],"updatedAt":"2026-11-27T07:07:21.417Z","epss":{"score":0.0044,"percentile":0.39989,"date":"2026-12-01T12:00:22.000Z"}}