Read the docs

Type confusion in PostgreSQL allows arbitrary code execution

Priority MEDIUM 41CWE-843Published · Updated

Key facts

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

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

Summary

PostgreSQL versions before 18.7, 17.12, 16.16, 15.20, and 14.25 are affected. A type confusion flaw (CWE-843) lets an object creator with low privileges execute arbitrary code as the operating system user running the database, mainly through ALTER ... SET DATA TYPE. The system does not track typed values well and values do not identify their own type, so stale values can appear in data dictionary entries and PL/pgSQL variables.

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

Description from the CNA

Type confusion in PostgreSQL allows an object creator to execute arbitrary code as the operating system user running the database, via ALTER ... SET DATA TYPE primarily. Other DDL attack routes exist, such as "ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN". The system had inadequate tracking of typed values, and values were not self-identifying. Stale values could appear in data dictionary entries, PL/pgSQL variables, and many other parts of the system. PostgreSQL Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0059 48th percentileScored 2026-11-16
Fix Partial PostgreSQL: 18.7, 17.12, 16.16 +2Red Hat: 1 advisoryRed Hat: 1 fixed, 9 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.7; 17 to before 17.12; 16 to before 16.16; 15 to before 15.20; before 14.2518.7, 17.12, 16.16, 15.20, 14.25Patch availableCNA
  • PostgreSQL Vendor— Affected 18 to before 18.7; 17 to before 17.12; 16 to before 16.16; 15 to before 15.20; before 14.25 Fixed in 18.7, 17.12, 16.16, 15.20, 14.25 Patch available CNA

Remediation

Upgrade PostgreSQL to 18.7, 17.12, 16.16, 15.20, or 14.25, matching the release branch in use. Red Hat advisory RHSA-2026:99821 fixes Red Hat Hardened Images. The sources list no fixed version for Red Hat Enterprise Linux 6, 7, 8, 9, and 10, Red Hat Advanced Cluster Security 4 and 5, or Self-service automation portal 2.

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

  • Fix · CNA PostgreSQL Fixed in 18.7, 17.12, 16.16, 15.20, 14.25

Red Hat 1 advisory

  • 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

Fixed in the same release

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

  • Release ·

    PostgreSQL 14.25, 15.20 and 3 more versions

    40 records Highest priority Priority MEDIUM 27 MEDIUM, 13 LOW

    Other records, highest priority first

    • TI-2026-90384 Type confusion in PostgreSQL plpgsql allows arbitrary code executionPriority MEDIUM 41
    • TI-2026-90383 PostgreSQL domain check use-after-free allows code executionPriority MEDIUM 41
    • TI-2026-90382 Heap overflow in PostgreSQL foreign batch inserts allows code executionPriority MEDIUM 41

Vendor assessments

Red Hat

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

ProductStatusPlan or fix
Red Hat Advanced Cluster Security 4Affected—
Red Hat Advanced Cluster Security 5Affected—
Red Hat Enterprise Linux 10Affected—
Red Hat Enterprise Linux 6Affected—
Red Hat Enterprise Linux 7Affected—
Red Hat Enterprise Linux 8Affected—
Red Hat Enterprise Linux 9Affected—
Red Hat Hardened ImagesAffectedNo fix yet
Self-service automation portal 2Affected—
Red Hat Hardened ImagesFixed RHSA-2026:99821

Timeline

  1. 2026-11-12 Threatist record created from CVE-2026-6460
  2. 2026-11-12 Alias added: GHSA-7m3p-q8w8-4qgh
  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:99821 · Red Hat
  9. 2026-11-14 Affected versions changed · Red Hat

References

Sources