CVE-2026-116316: PostgreSQL security-restricted operations can create types in pg_temp, which later queries of the session find

Published Nov 12, 2026
·
Updated

Improper protection of alternate path in PostgreSQL security-restricted operations allows an object creator to execute arbitrary SQL as the operation's caller, via a domain, enum, or range type created in pgtemp. The victim session must later run a query containing an unqualified type name, e.g. "SELECT '1'::bigint"; autovacuum and other common security-restricted operation users do not do so, so they are unaffected. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Affected Software

6 affected components
debian/postgresql-15*
debian/postgresql-17*
debian/postgresql-18*
debian/postgresql-15<=15.18-0+deb12u1, <=15.19-0+deb12u1
debian/postgresql-17<=17.11-0+deb13u1
debian/postgresql-18<=18.6-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 18.7
  2. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 17.12
  3. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 16.16
  4. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 15.20
  5. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 14.25

Event History

Nov 12, 2026
CVE Published
via MITRE·02:15 PM
Data Sourced
via MITRE·02:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·06:47 PM
DescriptionAffected Software

Frequently Asked Questions

1

Which deployments are actually exposed to exploitation?

Affected deployments are those running PostgreSQL before 18.7, 17.12, 16.16, 15.20, or 14.25 where an object creator can create a domain, enum, or range type in pg_temp and a victim session later executes a query with an unqualified type name.

2

What must an attacker be able to do?

The attacker needs the ability to create a domain, enum, or range type in pg_temp. Exploitation also depends on a subsequent query in the same victim session using an unqualified type name, such as SELECT '1'::bigint.

3

Are autovacuum and other common security-restricted operations affected?

No. Autovacuum and other common users of security-restricted operations do not run queries containing unqualified type names, so they are unaffected by this issue.

4

How can I determine whether a session may be vulnerable?

Review security-restricted operations for sessions that can encounter attacker-created pg_temp types, then identify later queries in those same sessions that use unqualified type names. Queries that schema-qualify type names do not meet the described exploitation condition.

5

What is the available remediation?

Upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25, as applicable to the major version in use.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203