Read the docs

Untrusted search path in PostgreSQL vacuumdb enables code execution

Priority LOW 34CWE-426Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 1 fixed, 1 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-426.

Summary

PostgreSQL 18 minor versions before 18.7 are affected, while versions before 18 are unaffected. An untrusted search path (CWE-426) lets a database owner shadow operators used by the --missing-stats-only catalog query in vacuumdb. The owner can then execute arbitrary SQL as the database user running vacuumdb, and the attacker needs high privileges, namely ownership of a database.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00499 43rd percentileScored 2026-11-16
Fix Partial PostgreSQL: 18.7Red Hat: 2 advisoriesRed Hat: 1 fixed, 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—PostgreSQL18 to before 18.718.7Patch availableCNA
  • PostgreSQL Vendor— Affected 18 to before 18.7 Fixed in 18.7 Patch available CNA

Remediation

Upgrade PostgreSQL 18 to version 18.7. Red Hat lists Red Hat Hardened Images as fixed through advisories RHSA-2026:80584 and RHSA-2026:99821, and its plan for affected Red Hat Hardened Images is none_available.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA PostgreSQL Fixed in 18.7

Red Hat 2 advisories

  • RHSA-2026:99821 Released 2026-11-12 · Red Hat rating Important
    Red Hat Hardened Images RPMs bug fix and enhancement update
    • Red Hat Hardened Images libpq-18.7-0.1.hum1@aarch64, libpq-18.7-0.1.hum1@s390x, libpq-18.7-0.1.hum1@src +4
  • RHSA-2026:80584 Released 2026-10-12 · Red Hat rating Important
    Red Hat Hardened Images RPMs bug fix and enhancement update
    • Red Hat Hardened Images postgresql17-17.11-1.2.hum1@aarch64, postgresql17-17.11-1.2.hum1@s390x, postgresql17-17.11-1.2.hum1@src +43

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    PostgreSQL 18.7

    5 records Highest priority Priority MEDIUM 3 MEDIUM, 2 LOW

    Other records, highest priority first

    • TI-2026-90377 PostgreSQL type-cache invalidation gap allows arbitrary code executionPriority MEDIUM 41
    • TI-2026-90366 Type confusion in PostgreSQL statistics import allows code executionPriority MEDIUM 41
    • TI-2026-90356 SQL injection in PostgreSQL pg_dump via not-null constraint namesPriority MEDIUM 40

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Hardened ImagesAffectedNo fix yet
Red Hat Hardened ImagesFixed RHSA-2026:80584, RHSA-2026:99821

Timeline

  1. 2026-11-12 Threatist record created from CVE-2026-116313
  2. 2026-11-12 Alias added: GHSA-64m9-jq4j-66v4
  3. 2026-11-12 Affected versions changed · Red Hat
  4. 2026-11-12 CVSS score added · Red Hat
  5. 2026-11-12 CISA SSVC decision points changed
  6. 2026-11-13 CISA SSVC decision points changed
  7. 2026-11-13 Fix available: Red Hat Hardened Images · Red Hat
  8. 2026-11-13 Fix available: RHSA-2026:80584 · Red Hat
  9. 2026-11-13 Fix available: RHSA-2026:99821 · Red Hat

References

Sources