Skip to content

PostgreSQL shipped 52 security fixes, and one of them lets an object creator run code as the database user (CVE-2026-6460)

CVE-2026-6460: PostgreSQL Type Confusion, Fixed in 18.7, 17.12, 16.16, 15.20, 14.25

PostgreSQL shipped 52 security fixes, and one of them lets an object creator run code as the database user (CVE-2026-6460)

on November 12 the PostgreSQL Global Development Group published a minor release that closes 52 security vulnerabilities and more than 140 bugs. the headline CVE, CVE-2026-6460, is a type-confusion bug that lets an object creator execute arbitrary code as the operating system user that runs the database. that is not “anyone on the internet gets a shell.” it is also not a typo you can defer until the next maintenance weekend because the ticket says “authenticated.” if you hand out CREATE rights like party favors, you just found out what those rights were always worth.

Lab-only / defensive use. this post is a version check plus the project’s own post-update notes. the downloadable kit only compares version strings from a local binary or from a CSV you provide. it does not connect to a database, does not run SQL, and contains no exploit code. we are not going to walk through ALTER ... SET DATA TYPE as an attack.
The short version. CVE-2026-6460, from the official PostgreSQL security page: “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 routes exist, and the project calls out one of them: 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.” affected: versions before 18.7, 17.12, 16.16, 15.20, and 14.25, all published November 12, 2026. the project scores it CVSS 8.8 with vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. the security page header says CVSS 3.0 with that score and vector; the release announcement says CVSS v3.1 8.8. we are treating 8.8 and the vector as the project’s number, not inventing a third one. NVD lists a 3.1 8.8 metric as Secondary and has not published a Primary score as of this writing. privilege required: low, an object creator. this is not an unauthenticated bug. it was not in CISA KEV as of the November 13 catalog additions we pulled on November 14.

what the project actually released

the release announcement is dated November 12, 2026. it ships PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25, plus 19 RC 2. “This release fixes 52 security vulnerabilities and over 140 bugs reported over the last several months.” that is a long list, and CVE-2026-6460 is the first one they name. it is not the only 8.8 on the page. if your patch window is “we will take the one famous CVE and ignore the rest,” you are going to have a long winter. we are focusing on 6460 because it is the one the project put first and because the operational question is clear: who in this cluster can create objects, and what OS user does the postmaster run as?

two more facts from the same announcement, because they change the calendar:

  • 14.25 is the final release of PostgreSQL 14. the train is end of life after this. if you are on 14, this patch is also your official reminder to plan a major upgrade.
  • PostgreSQL 19 RC 2 includes the fixes from this update that apply to 19. general availability is planned for November 19, 2026, unless something slips. a release candidate is not a production minor release, even when it contains the same fixes.

minor updates, they remind you, are cumulative. you are not required to dump and reload or run pg_upgrade just to apply this update. “you may simply stop PostgreSQL and update its binaries.” that sentence is about this being a minor release. it is not a promise that you can skip the follow-up work listed in the same post.

what we are not going to claim

some coverage has called this a 22-year-old bug, or said you must rebuild every C-language extension to be fully protected. we looked for those statements on the official CVE page and in the November 12 announcement. we did not find them there. so we are not putting them in the lede, the title, or the kit. if a later primary write-up from the project says otherwise, that is a correction, not a detail we “forgot.”

we are also not calling this unauthenticated remote code execution. the official text says “an object creator.” the vector says PR:L. an attacker who can already create objects, including via a compromised application role that was given CREATE, is the condition. if your security model is “the database user is a dumb connection pool and has no CREATE,” this CVE may be less urgent than the backup and index-corruption fixes sitting next to it. if your security model is “we never quite audited who has CREATE,” you should assume it is urgent and then go do that audit for real.

AV:N still means the vulnerable function can be reached over a network connection, by someone who already has that low privilege. that is how database bugs usually work. it is not a promise that a random internet client with no role can do this.

the rest of the release, in enough detail to scare a CISO usefully

the announcement lists 52 CVE IDs. a lot of them are 8.8-class memory unsafety or type confusion in the core server and procedural languages. some of the others have narrower, still serious, shapes: extension-script schema mishandling, dblink and subscriptions appending to arbitrary files, pg_restore and pg_dump issues, logical replication writing to subscriber system catalogs, row-security and view problems, and a pre-authentication cancel request that can leak a spinlock. we are not going to recap all 52 as if we re-analyzed each one this morning. we are going to say: take the whole minor release, not a backported unique snowflake of 6460, unless you have a documented exception and a person who will own it.

the non-CVE “Updating” section is the other half of the work. in the project’s own words, after you update binaries you may also need to:

  • reindex a GIN index if you suspect it was affected by one of the corruption issues fixed in this release.
  • reindex any pg_trgm GiST indexes that use gist_trgm_ops.
  • reindex a table (which also reindexes its TOAST table) if you see missing chunk number errors.
  • take a new full backup if you use incremental backups, and use that as the base going forward. the announcement says several fixes in this release could produce corrupt incremental backups.
  • find and repair NOT NULL NO INHERIT constraints on partitioned tables, with a query they publish in the announcement.
  • reindex B-tree indexes on bpchar columns declared without a length. char(n) is called out as not affected.

there are also notes about GIN and join-removal changes, snapshot export on standbys, and a long list of planner and replication fixes. read the release notes for the train you actually run. skipping two years of minors and then applying 18.7 does not excuse you from the intermediate “Updating” steps the earlier releases already documented.

step 1: find the versions, including the one somebody compiled by hand in 2024

the checker compares major.minor against the official floors. 14.25 is OK for this CVE and also flagged as the end of that train. 13 and older are flagged vulnerable because they were not in the supported-train list that received this release. 19 is flagged for review: RC 2 includes the fixes, and it is still a release candidate, with GA planned November 19.

Kali terminal running pg-6460-check.sh in fleet mode against a lab CSV, flagging PostgreSQL 18.6, 17.11, 14.24, and 13.18 as VULN, marking 18.7, 17.12, and 14.25 as OK, and sending 19.0 to review because official 19 RC 2 includes the fixes but is still a release candidate.
Step 1: lab fleet CSV. 14.25 is patched and also the last 14 you will get. 13.18 is not a supported train in this release. the script does not log into your database, which is a feature, not a missing feature.

after you update, do the project’s follow-up steps that apply to your cluster. the kit reminds you of the ones in the announcement. it does not invent a “rebuild every extension” ritual on top of them.

the industry part, since we have to

fifty-two CVEs in one minor release is what it looks like when a project spends a season closing a class of bugs and then ships them together. that is better than dribbling one 8.8 a week and hoping your change-control board stays interested. it is also how an 8.8 becomes “the other 51 can wait.” they cannot.

the other recurring failure is role design. “the app user can create tables in production, because otherwise migrations are annoying” is how an object-creator bug becomes a host-level bug. the OS user running PostgreSQL is often postgres, which is boring until it can read the same machine’s backups, SSL keys, and cloud credentials. patch first. then go look at who has CREATE, and stop giving it to the connection pool “just in case.”

download the Kali defensive kit

postgresql-cve-2026-6460-defensive-kit.zip contains pg-6460-check.sh (local or fleet CSV), a README, and the lab CSV from the screenshot. the fixed versions 18.7, 17.12, 16.16, 15.20, and 14.25 are baked in. no network connections, no SQL, no exploit code. a green line means the binary is new enough for this CVE. it does not mean you reindexed, took a new full backup, or removed CREATE from the intern’s role.

sources

While you’re here, check your own front door

Reading about someone else’s bad week is a good time to glance at your own exposure. Dark Edge Consulting runs a Free External Security Snapshot: a passive, no-touch look at your domain, email, and website, graded A to F with the fixes spelled out. No login, nothing scanned on your side, just what attackers already see from the outside.

See what attackers see from the outside →

Rather talk it through with a human? Book a strategy call →