Skip to content
Fencer Intel
high 7.2

CVE-2026-116313 json

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

published 2d ago modified 2d ago also EUVD-2026-124493

cvss
7.2
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 43%
public exploits
0
none known

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.

Patch / fix

  • n/a PostgreSQL 18.7
  • postgresql15 Alpine 3.22, Alpine 3.21 15.20-r0
  • postgresql16 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 16.16-r0
  • postgresql17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 17.12-r0
  • postgresql18 Alpine 3.24, Alpine 3.23 18.7-r0

alpine advisories ALPINE-CVE-2026-116313

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2026-116313 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-116313 updated cvss 7.2

postgresql: postgresql: Privilege escalation via untrusted search path in vacuumdb

  • Red Hat Hardened Images postgresql18 18.6-1.hum1
    affected: workaround, no fix available
  • Red Hat Hardened Images libpq 18.7-0.1.hum1, postgresql17 17.11-1.2.hum1, postgresql17-test 17.11-1.2.hum1, postgresql17-pltcl 17.11-1.2.hum1, postgresql17-plperl 17.11-1.2.hum1, postgresql17-server 17.11-1.2.hum1, +5 more
    fixed: vendor fix RHSA-2026:99821

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
3d ago

Exploit prediction

0.50% chance of exploitation in the next 30 days, higher than 43% of all scored CVEs (FIRST EPSS, 2026-11-14).

CVSS scores

assigned by version score vector
CNA 3.1 7.2 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected products

  • n/a PostgreSQL

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.