Type to search. Use the arrow keys, then Enter.

Security

PostgreSQL fixes 52 security flaws; version 14 reaches end of life

By James Obaigwa2 min read1 source

If your website, app or business system keeps its data in PostgreSQL, plan an update this week. On 12 November the PostgreSQL project released new versions for every supported release, 18.7, 17.12, 16.16, 15.20 and 14.25, fixing 52 security vulnerabilities and more than 140 other bugs.

Why this matters here: PostgreSQL sits under many of the systems Kenyan organisations run every day, from custom school, church and SACCO systems to ERPs such as Odoo and web apps built with Django, Laravel or Node.js. In my experience, often nobody in the organisation knows which database version the system uses, so updates are missed for years.

What was fixed. Of the 52 vulnerabilities, 32 carry the release notes' highest rating, 8.8 out of 10. Most of those can let someone who is able to run queries on the database run their own code on the database server, through flaws in how the database handles data types, memory and add-on languages such as PL/Perl. That is why a system with weak database passwords, or one database shared by several apps, is the real risk. Three fixes concern the backup tools pg_dump and pg_restore, which could be tricked into running commands or SQL planted in a database or a backup file. One more lets logical replication write to a subscriber's system tables.

PostgreSQL 14 is now at the end of its life. This is its final release: from now on it receives no security or bug fixes, so a system still on version 14 should be moved to a newer supported version. A major upgrade like this needs planning and testing, unlike the minor update below.

What to do:

1. Find out what you run. Connect to the database and run SELECT version(); or ask the person or company that looks after your system. 2. Apply the minor update for your version. The project says no dump and reload is needed: stop PostgreSQL, update its programs, start it again. If your database is hosted, ask the provider to confirm they have applied it. 3. Read the post-update steps in the release notes. Some setups need indexes rebuilt with REINDEX, for example GIN indexes, pg_trgm GiST indexes and B-tree indexes on bpchar columns. If you use incremental backups, take a new full backup after updating. 4. Until you have updated, do not restore a backup file that came from someone you do not trust. 5. If you are on PostgreSQL 14, put the move to a newer version on this quarter's plan.

Background: these are minor releases, the regular updates PostgreSQL ships for each supported version. The next major version, PostgreSQL 19, is in its second release candidate, with general availability planned for 19 November 2026.

What is not known: the release notes do not report any of these flaws being exploited so far, and they do not say which are the easiest to abuse. The safe reading is to update now rather than wait for the first reports of attacks.

Sourcepostgresql.org