Skip to content
Ad slotPut your product on this line. It runs at the top of every page on IndieHacked.Advertise
News

PostgreSQL patches 52 security flaws and ends support for version 14

32 of the flaws are rated CVSS 8.8, the top score in the set. Version 14 gets no more fixes, and several fixes need a reindex after you update.

Security0 comments

TL;DR

The PostgreSQL project released 18.7, 17.12, 16.16, 15.20 and 14.25 on 12 November, fixing 52 security vulnerabilities and over 140 bugs.

Thirty-two of the flaws are rated CVSS 8.8, the highest score in the set, and 28 of the 52 are described as executing arbitrary code.

14.25 is the final release of PostgreSQL 14, and fixes for index corruption need a reindex after the update.

What the project released

The PostgreSQL Global Development Group released updates to every supported version on 12 November: 18.7, 17.12, 16.16, 15.20 and 14.25, plus the second release candidate of PostgreSQL 19. Together the minor releases fix 52 security vulnerabilities and over 140 bugs reported over the last several months.

Minor releases are cumulative, and you don't dump and reload your databases or run pg_upgrade for this one. The project says you can stop PostgreSQL, replace its binaries and start it again. If you skipped earlier updates, it adds, you may need the post-update steps from those releases too.

The most serious flaws

The announcement lists all 52 with a CVSS score, a 0 to 10 severity rating. None is above 8.8, and 32 sit exactly there. The one the project names first is CVE-2026-6460: a type confusion after ALTER ... SET DATA TYPE that executes arbitrary code. Its security page adds that other schema changes can lead to the same confusion. The score's vector says an attacker needs network access and a low-privileged account, and no action from anyone else.

Other flaws at 8.8 include a heap buffer overflow in tsvector_delete(), use-after-free bugs in the PL/Perl and PL/Tcl languages, arbitrary code execution through pg_restore, and SQL injection through a constraint name in pg_dump. A flaw in dblink and subscriptions that can append to arbitrary files is rated 8.1. The lowest scores are 3.1 and 3.7.

The fix for CVE-2026-6460 has a catch. The 18.7 release notes say that for full protection, C-language extensions have to be rebuilt, and some extensions need source-code changes. A parameter named composite_type_mismatch can turn the new checks off, but the notes say doing so carries security risks.

Version 14 is finished

The announcement says 14.25 is the final release of PostgreSQL 14. Version 14 is now end-of-life and gets no more security or bug fixes, and the project suggests anyone running it in production plans an upgrade to a supported version. The project's versioning page gives 12 November 2026 as 14's final release date.

Moving off 14 is a major-version upgrade, not an update like this one. The project points to pg_upgrade or a dump and restore for that. If a hosting service runs your database, check its own notice for when it retires 14. We haven't looked at any host's dates.

What to do after you update

Several of the bug fixes only repair what the old code left behind once you rebuild it. The announcement lists these cases:

  • A GIN index you suspect is corrupt: reindex it, for example REINDEX INDEX your_index_name;
  • pg_trgm: reindex any GiST index that uses the gist_trgm_ops operator class.
  • "Missing chunk number" errors when reading a table: reindex the table, which also reindexes its TOAST table, for example REINDEX TABLE your_table_name;
  • B-tree indexes on columns declared as bpchar without a length: reindex them. Columns declared as char(n) are not affected.
  • Incremental backups: take a new full backup after updating and use it as the base for later incremental ones.
  • Partitioned tables: the announcement gives a query that finds NOT NULL NO INHERIT constraints on them. Drop the ones you don't want. Repair the ones you keep with ALTER TABLE ... ALTER CONSTRAINT ... INHERIT, which fails if a partition holds NULL values in that column.

One of the bug fixes is for exporting and importing snapshots taken on a standby server. The project says a parallel pg_dump against a standby could corrupt both the dump and the standby's data.

PostgreSQL 19 is a week away

The second release candidate of PostgreSQL 19 includes the fixes from this update. The planned general availability date is 19 November 2026, unless an issue forces a delay or another release candidate. If you tested 19 and created expression indexes, generated columns or partition keys that use JSON_ARRAY() or JSON_OBJECT() over arrays, composite types or range types, drop or redefine them before upgrading. The project reverted that change after RC 1, and pg_dump, pg_restore and pg_upgrade will fail to recreate them.

What it means for builders

If you run Postgres yourself, update to the latest release of the version you're on, then work through the reindex list above. If a hosted database service runs it for you, the provider applies the update, so look for its notice rather than assume it has. We haven't tested this update ourselves.

On Hacker News, commenters disagreed on how urgent it is. One argued that most databases aren't reachable by outsiders and that SQL injection is largely stopped by the extended protocol, so only multi-tenant public services are in a hurry. A reply said not to wait too long either. Those are the commenters' views, not the project's.

The full list:Read the PostgreSQL release announcement

Comments

Log in to comment, reply and like. Reading stays open to everyone.

No comments yet. Add what you know about it.

More news

All news

The week's news for builders, in Weekly Unpack.

Weekly Unpack is one email a week with founder stories, the playbooks behind them and the businesses we unpack in our interviews.

Plusand the Builder Kit come with it

Subscribing makes your account Plus and opens your Builder Kit: what your product needs next, written for your coding agent to do.

By subscribing you agree to our Privacy Policy.