Skip to main content
Blue Moose logo Blue Moose Field notes
← All articles
postgresql

PostgreSQL fixed 52 CVEs and retired version 14

Streams of glowing lights converging in a dark atrium, evoking data flow

If you self-host anything with a database behind it, the PostgreSQL release of 12 November deserves ten minutes of your evening. The project shipped 18.7, 17.12, 16.16, 15.20 and 14.25 in one go, and the announcement says it "fixes 52 security vulnerabilities and over 140 bugs". It is also the last release of PostgreSQL 14.

What is in the 52

The announcement lists the notable ones with CVSS v3.1 scores. A few that stood out to me:

  • CVE-2026-6460 (8.8): type confusion after ALTER ... SET DATA TYPE executes arbitrary code.
  • CVE-2026-116314 (8.8): pg_restore executes arbitrary code because non-plain archives are not validated.
  • CVE-2026-116330 (8.8): pg_dump tar output fails to block psql command injection in restore.sql.
  • CVE-2026-120145 (8.8): logical replication can write to subscriber system catalogs and execute arbitrary code.
  • CVE-2026-116322 (5.3): a pre-authentication cancel request can leak a spinlock.

Most of the remaining entries are also rated 8.8 and describe use-after-free, type confusion or buffer overflow bugs, several of them in PL/Perl and PL/Tcl. Many of these need an authenticated role to trigger, so this is not a "your database is open to the internet" story. But the client-tool entries matter for homelabs: restoring a dump you did not create yourself is a normal thing to do, and that is exactly the path pg_restore and the tar format now guard.

The part that is not just "update"

Minor releases are cumulative, so stopping the server and swapping binaries is enough for the code fixes. The post-update list is what I would read twice:

  • Reindex GIN indexes if you suspect corruption; the fixed bug could make queries miss rows or return unrelated ones.
  • Reindex any pg_trgm GiST index that uses gist_trgm_ops.
  • Reindex B-tree indexes on bpchar columns declared without a length. Columns declared as char(n) are not affected.
  • If you use incremental backups, take a new full backup after updating and base later increments on it.
  • Check partitioned tables for NOT NULL NO INHERIT constraints; the release notes include a catalog query for it.

The backup item is the one I would not skip. A backup chain that quietly rests on a bad base is the kind of problem you only discover during a restore.

PostgreSQL 14 is done

The announcement is blunt: "PostgreSQL 14 is now end-of-life and will no longer receive security and bug fixes." If an old app container of yours still ships postgres:14, it just joined the unpatched pile, right after the largest batch of fixes in a while. Going from 14 to a supported major means pg_upgrade or a dump and restore, which is a planned job rather than a tag bump. I would do it on a copy first and check extensions before touching the real volume.

My takeaway: pin your Postgres tags to a major, but let the minor float on a schedule you control, and keep a note of which stacks are one major behind. Today is a good day to run SELECT version(); on each box and see which side of the line you are on.

BM
Blue Moose
The moose behind Blue Moose. Full-stack PHP developer — Drupal by day, Symfony by night, tests always.