PostgreSQL · Public exploit code

PoC released for type confusion allowing code execution in PostgreSQL

· 1 min read

A proof of concept has been released for CVE-2026-6460, a type confusion in PostgreSQL that allows an object creator to execute arbitrary code as the operating system user running the database, primarily via ALTER ... SET DATA TYPE. The source lists versions before 18.7, 17.12, 16.16, 15.20, and 14.25 as affected. Update PostgreSQL and restrict who can create or alter objects in databases.

WhatsApp LinkedIn X
HighVulnerabilityPublic exploit codePatched
In this article
  1. What happened
  2. Why it matters
  3. What to do
  4. For the technical team
  5. Timeline
  6. Sources

What happened

A proof of concept was released for CVE-2026-6460, a type confusion flaw in PostgreSQL. It allows anyone who creates objects in the database to run arbitrary code as the operating system user running PostgreSQL.

Incidents like this, every morning

The ones that need action first, in a 3-minute read.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Why it matters

Anyone allowed to create tables or alter types can escape the database and run commands on the server, reaching the operating system. Databases where regular users create objects, including shared and hosted environments, are exposed.

What to do

Update PostgreSQL to 18.7, 17.12, 16.16, 15.20, or 14.25, matching your major version. In the meantime, restrict who can create or alter objects in databases.

For the technical team

CVE
CVE-2026-6460
Affected
PostgreSQL · PostgreSQL before 18.7, 17.12, 16.16, 15.20, and 14.25.
Exploitation
PoC/exploit discovered, per a dbugs post via @ptdbugs (PT ID: PT-2026-141543).
Fix
Update to PostgreSQL 18.7, 17.12, 16.16, 15.20, or 14.25 per your major version; the source lists only versions before these as affected.
Vector
Type confusion in PostgreSQL. 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 other parts of the system. Exploitable by an object creator, primarily via ALTER ... SET DATA TYPE; another cited DDL route is "ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN".
More details
Beyond ALTER ... SET DATA TYPE, other DDL sequences work as a route. Cited root cause: inadequate tracking of typed values and values that were not self-identifying, with stale values in many parts of the system. Disclosed via dbugs (PT ID: PT-2026-141543).

Timeline

  1. PoC released for CVE-2026-6460, a type confusion flaw giving code execution to object creators.

Sources 1 source

Get the next one tomorrow morning

One email a day with what changed, what to fix first and how.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Share it with your team

Whoever handles security with you should get it too.

LinkedIn X

Your colleague gets a confirmation request. Nothing is sent unless they confirm.

See all news

Read also

Before you go: get this every day

The HIFY Radar daily edition lands every morning with the incidents that need action. Free.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click