The PostgreSQL project shipped 18.7, 17.12, 16.16, 15.20 and 14.25 on November 12, 2026. The release announcement lists 52 CVEs, and the project's security index rates 32 of them CVSS 8.8. Most of those are code execution on the database server by a logged-in user who can create objects.

That sounds narrow, but by default PostgreSQL lets any role that can connect create temporary objects. A November 18 write-up shows one of these bugs being reached that way. This brief covers exposure, the upgrade, and the post-update steps that are easy to skip.

What Happened

The release is larger than a normal quarterly update. Grouped by what matters to an application team:

  • Server code execution by an authenticated user. The headline issue, CVE-2026-6460 (CVSS 8.8), is a type confusion after ALTER ... SET DATA TYPE and some other DDL sequences. A logged-in user can run code as the operating system user that runs PostgreSQL. About thirty other 8.8 entries follow the same pattern: use-after-free or type confusion in PL/pgSQL, PL/Perl, PL/Tcl, dblink, foreign data wrappers, aggregates and text search functions.
  • A second route that needs no schema ownership. CVE-2026-116331 (CVSS 8.8) is a type confusion through a user-defined aggregate. PostgreSQL's advisory says "object creator". Depthfirst's November 18 research says a new login role with no extra grants qualifies, because it inherits TEMPORARY on the database and can work in its own temporary schema.
  • One pre-authentication issue on the server. CVE-2026-116322 (CVSS 5.3, PostgreSQL 18 only) lets an unauthenticated client force a server restart through the cancel-request path.
  • Client tools. Crafted archives can make pg_restore run code (CVE-2026-116314), a compromised source server can inject psql commands through pg_dump tar output (CVE-2026-116330), and reindexdb and vacuumdb have injection issues.
  • Row security and view gaps. Several medium items let INSERT ... ON CONFLICT, DROP OWNED or security_barrier views expose or remove rows that row-level security should protect.

The release also fixes over 140 bugs, including index corruption and broken incremental backups. PostgreSQL 14.25 is the final 14.x release; 14 is now end-of-life.

Exploitation: the project's pages make no statement about attacks, and The Hacker News reported on November 19 that none of the demonstrated exploits has been seen in a real attack. The Depthfirst write-up describes the steps from SQL to code execution but omits the function bodies and payload values, so it is not a ready-to-run exploit. We have not reproduced it.

Who Is Affected

Every version before the fixed releases is affected by CVE-2026-6460 and CVE-2026-116331.

The question that decides your exposure is: who can create objects in your database, including temporary ones? PostgreSQL's privilege docs say CONNECT and TEMPORARY on a database are granted to PUBLIC by default.

You are more exposed if:

  • your application connects as the same role that runs migrations, so it can CREATE and ALTER tables. A SQL injection that allows arbitrary statements could then lead to code execution on the database host;
  • customers, analysts or internal tools get a SQL console, a "bring your own query" feature, or their own schema in a shared cluster;
  • you allow PL/Perl or PL/Tcl, or use dblink or foreign data wrappers;
  • you run PostgreSQL 18 with the port reachable from the internet (CVE-2026-116322);
  • your backup jobs restore archives from places you do not fully control.

You are less exposed if the app role can only read and write rows in tables it does not own, migrations run under a separate role, and TEMPORARY has been revoked.

Managed databases. If you use RDS, Aurora, Cloud SQL, Azure, Supabase, Neon or similar, you cannot patch the server yourself. Whether each provider has rolled out these minor versions is unconfirmed here. Your client tools are still your responsibility.

What to Do Today

  1. Find every version. Run SELECT version(); against each database, including replicas, staging and preview branches. Check Docker and Compose files too.
  2. Upgrade to the fixed minor for your line: 18.7, 17.12, 16.16, 15.20 or 14.25. A minor update needs no dump and reload; replace the binaries and restart.
  3. Update extensions at the same time. The release notes say C-language extensions must be rebuilt for full protection against CVE-2026-6460, and some need source changes. The PGDG RPM packages now require the new minor release: updating one extension pulls in the new server packages and restarts the service.
  4. Do not turn off the new check. The release adds a composite_type_mismatch setting that can disable the new type checks. The notes say disabling it carries security risks. Leave it alone.
  5. On a managed service, open the provider's maintenance or version page, schedule the minor upgrade as soon as it is offered, and record the date you checked.
  6. Update client tools (psql, pg_dump, pg_restore) on laptops, CI runners and backup hosts, not only on servers.
  7. Tighten the app role. Move migrations to a separate role and revoke CREATE on the schema from the runtime role. Then, for each database, consider:
REVOKE TEMPORARY ON DATABASE your_db FROM PUBLIC; 

Depthfirst recommends this as hardening. It is not a fix: a role that can create ordinary objects can still reach the bug, so upgrade anyway. Test on staging first, because anything that uses temporary tables will fail. Grant it back only to roles that need it. If you can't patch today, do this step first.

The Post-Update Steps Teams Miss

The bug fixes come with follow-up work listed in the 18.7 release notes:

  • Reindex B-tree indexes on bpchar columns without a length, every gist_trgm_ops index, and any GIN index you suspect.
  • Take a new full backup if you use incremental backups, and base later incrementals on it.
  • Check NOT NULL NO INHERIT constraints on partitioned tables with the query in the release announcement.

How to Verify You Are Safe

  • SELECT version(); shows 18.7, 17.12, 16.16, 15.20, 14.25 or newer on every primary and replica.
  • SHOW composite_type_mismatch; returns the default, and nobody changed it in postgresql.conf or with ALTER SYSTEM.
  • Every extension loads after the restart (SELECT * FROM pg_extension;, then exercise the features that use them).
  • pg_dump --version on your backup host matches the new release.
  • Your runtime role cannot create a table: connect as it and try CREATE TABLE probe(id int); in a scratch schema. It should fail.
  • If you revoked TEMPORARY, SELECT has_database_privilege(current_user, current_database(), 'TEMPORARY'); returns false for that role.

What to Watch Next

  • Exploitation reports or a complete public exploit for CVE-2026-6460 or CVE-2026-116331. None found as of November 24, and neither was among the entries added to CISA's exploited list since November 19.
  • PostgreSQL 19 GA shipped on November 19, 2026. If you are on 14, plan a major upgrade rather than staying on an end-of-life line.

Related Reading

Next Step

If your product runs on PostgreSQL, steps 1 and 2 tell you within minutes whether any database is behind. If the app connects as the migration role, fix that even after the patch. A production readiness upgrade covers database roles, patch cadence, backup verification and rollback. Bring a list of your databases, their versions and hosting, and which roles your app and migrations use.

Originally published at somanathkhadanga.com.