Latest briefing

PostgreSQL type confusion flaw CVE-2026-6460 enables arbitrary code execution

TL;DR

PostgreSQL has released security updates to address 52 flaws, including a critical type confusion vulnerability, CVE-2026-6460. Authenticated users with object-creation privileges can use this flaw to execute arbitrary code as the operating system user running the database. Update your server immediately and rebuild all C-language extensions.

What happened

The PostgreSQL Global Development Group released security patches on November 12, 2026, targeting 52 vulnerabilities. The most significant is CVE-2026-6460, a type confusion flaw with a CVSS score of 8.8. This issue stems from inadequate tracking of typed values in composite types; when a field's type is changed, the server may read stale values as if they matched the new type.

Researcher Mehmet Ince demonstrated a working exploit on PostgreSQL 8.6 that crashes the server and leaks memory addresses. While the full SQL required to execute arbitrary commands was not disclosed, the vulnerability allows an attacker to run code with the same permissions as the operating system user running the PostgreSQL service. Additionally, CVE-2026-116322 was identified, which allows unauthenticated clients to trigger a server restart.

Why it matters

This is a high-impact privilege escalation. An attacker who has already gained a foothold in the database can move from a limited database role to full control over the host operating system. Because the exploit relies on altering data types, any user capable of creating or modifying objects is a potential threat. For administrators of managed services, the risk extends to the underlying infrastructure, though the current patch status of providers like AWS, Azure, and Google Cloud has not been confirmed.

Who is affected

  • PostgreSQL 18.x (versions before 18.7)
  • PostgreSQL 17.x (versions before 17.12)
  • PostgreSQL 16.x (versions before 16.16)
  • PostgreSQL 15.x (versions before 15.20)
  • PostgreSQL 14.x (versions before 14.25)

What to do now

  1. Update the PostgreSQL server to version 18.7, 17.12, 16.16, 15.20, or 14.25.
  2. Rebuild or update every installed C-language extension immediately after the server update.
  3. Update all client tools, including pg_dump, pg_restore, reindexdb, and vacuumdb.
  4. Take a new full backup if you use incremental backups, then base later increments on that new full backup.
  5. Revoke CREATE privileges on the public schema from untrusted database accounts.

What we don't know yet

  • Whether an account with only default privileges can successfully execute the exploit.
  • The exact SQL commands required to complete the final stage of the code execution.
  • The current patch status of managed services such as AWS Aurora, Azure PostgreSQL, and Google AlloyDB.

Sources

  1. thehackernews.comhttps://thehackernews.com/2026/11/postgresql-patches-52-flaws-including.html
  2. postgresql.orghttps://www.postgresql.org/support/security/CVE-2026-6460/
  3. access.redhat.comhttps://access.redhat.com/security/cve/cve-2026-6460
  4. blogger.googleusercontent.comhttps://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-cI43j9xIo0t_DXuSQgASX5u0DldrswshP5xjfi-EiVQqAW_msXNeL23Po3dFsXY5xlUJ-PH6KTzFT93_NAXfXZFbuiMY8q-uQGj3lh_AsDWq5LAyGGHhpQQ-U89SZPqtgnIqRfMxkSbts2Fj3c4sCrZfaDjr8BuJnzV-bIYKVf95SO6_c1ezpmQfgk4/s1700-nu-rw-lo-l85-e365/poc.jpg

Offensive security engineer, ethical hacker and penetration tester. Writes Unpatched Intel from h4rithd.com.