Security advisory Debian

PostgreSQL 17.10 and 15.18 on Debian: May 2026 security update (DSA-6270-1, DSA-6269-1)

May 2026 Debian PostgreSQL updates fixed SQL injection, code execution and a denial-of-service bug. What changed, plus the February fixes.

Published
Reading time
5 min read

Security advisory Vulnerability

Severity: High Status: Patched
Status
Fixed versions are available for Debian 13 (trixie) and Debian 12 (bookworm).
Affected
  • postgresql-17 in Debian 13 (trixie) before 17.10-0+deb13u1
  • postgresql-15 in Debian 12 (bookworm) before 15.18-0+deb12u1
  • postgresql-17 in Debian 13 (trixie) before 17.8-0+deb13u1
  • postgresql-15 in Debian 12 (bookworm) before 15.16-0+deb12u1
Published
Updated

What you should do

  • Run apt policy on every server and client machine with PostgreSQL packages.
  • Upgrade to the current Debian package, which includes the February and May fixes.
  • Confirm the running version with SELECT version(); and restart services that use libpq5.
  • Only take base backups and rewinds from servers whose superusers you trust.
  • Keep TCP access to PostgreSQL limited to the hosts that need it.
Timeline
  1. Debian published DSA-6133-1 for postgresql-17.
  2. Debian published DSA-6132-1 for postgresql-15.
  3. Debian published DSA-6270-1 for postgresql-17.
  4. Debian published DSA-6269-1 for postgresql-15.
  5. Skyline published this summary.

On 14 May 2026 Debian published DSA-6270-1 for postgresql-17 in Debian 13 (trixie) and DSA-6269-1 for postgresql-15 in Debian 12 (bookworm). They moved Debian to PostgreSQL 17.10 and 15.18, which fix up to ten CVEs in the server, a contrib module, libpq and the backup tools. This page explains those fixes and the earlier February 2026 update; a later release in August 2026 builds on both.

At a glance

ItemDetails
Source packagespostgresql-17 (Debian 13), postgresql-15 (Debian 12)
Fixed versions (May)17.10-0+deb13u1 (DSA-6270-1), 15.18-0+deb12u1 (DSA-6269-1)
Fixed versions (February)17.8-0+deb13u1 (DSA-6133-1), 15.16-0+deb12u1 (DSA-6132-1)
CVEs (May)10 for PostgreSQL 17, 8 for PostgreSQL 15, e.g. CVE-2026-6637, CVE-2026-6477, CVE-2026-6479
SeverityHigh (highest PostgreSQL rating CVSS 3.1 8.8)
Known exploitationNone listed in CISA KEV (catalog of 30 Oct 2026)

What the vulnerabilities are

Debian describes the May issues as ones that may result in authorisation bypass, execution of arbitrary code, information disclosure, privilege escalation, SQL injection or denial of service. The upstream PostgreSQL release of 14 May 2026 (18.4, 17.10, 16.14, 15.18, 14.23) fixed 11 vulnerabilities and over 60 bugs. The ones that matter most for a typical server:

  • Code execution inside the database server. CVE-2026-6637 is a stack buffer overflow and SQL injection in the refint contrib module that could let an unprivileged database user run code as the operating-system user running PostgreSQL. CVE-2026-6473 covers integer wraparound in memory-allocation sizes. Both are rated 8.8.
  • Denial of service before login. CVE-2026-6479 (7.5) is uncontrolled recursion during SSL and GSS negotiation. The CVE record notes that an attacker able to connect to the Unix socket can cause a sustained denial of service, and with SSL and GSS both disabled the same is possible over TCP.
  • Malicious server against client tools. CVE-2026-6477 lets a server superuser overwrite client stack memory through libpq's large-object functions, and CVE-2026-6475 lets the origin superuser make pg_basebackup (plain format) or pg_rewind overwrite local files. Both are 8.8 and matter when you connect to or copy from a server you do not fully control.
  • Smaller issues. A timing side channel that may disclose MD5-hashed passwords (CVE-2026-6478, 6.5), a missing privilege check in CREATE TYPE (CVE-2026-6472) and a memory disclosure through timeofday() (CVE-2026-6474). Two further issues, CVE-2026-6476 in pg_createsubscriber and CVE-2026-6638 in REFRESH PUBLICATION, affect PostgreSQL 17 only.

The February 2026 advisories (DSA-6133-1 and DSA-6132-1, 12 February) fixed four CVEs that Debian said may result in memory disclosure or the execution of arbitrary code, including CVE-2026-2006 (multibyte character length validation, 8.8) and CVE-2026-2005 (pgcrypto heap buffer overflow, 8.8). None of the CVEs on this page is in CISA's Known Exploited Vulnerabilities catalog.

Are you affected?

Any Debian 13 server below 17.10-0+deb13u1 or Debian 12 server below 15.18-0+deb12u1 is missing these fixes. Check the server, client and library packages:

dpkg -l 'postgresql*' libpq5 | grep '^ii'
apt policy postgresql-17 libpq5   # Debian 13
apt policy postgresql-15 libpq5   # Debian 12

Because CVE-2026-6477 and CVE-2026-6475 sit in libpq and the backup tools, machines that only run pg_basebackup, pg_rewind or applications linked to libpq5 need the update too.

How to update

Debian's archive now carries newer PostgreSQL packages that include all of these fixes, so a normal upgrade brings you fully up to date:

sudo apt update
sudo apt upgrade

Since August 2026 the current packages are 17.11 for trixie (DSA-6438-1) and, for bookworm, 15.19 published as an LTS advisory (DLA-4740-1), because Debian 12's regular support ended in July 2026. The August release also asks some users to set a new output_plugin_libraries parameter, so read its notes before you upgrade a replication setup.

Restart or reboot?

No reboot is needed. Check that each cluster is running the new binaries after the upgrade:

pg_lsclusters
sudo -u postgres psql -c 'SELECT version();'

Restart a cluster that still shows an old version with sudo systemctl restart postgresql@17-main (adjust version and name). Restart application services that load libpq5; sudo needrestart lists them. The 17.10 and 15.18 release notes list no extra post-update steps for upgrades from 17.6 or 15.14 and later.

Sources

SKYLINE Engineering

@skyline

The engineering team at SKYLINE Industrial Solutions. We publish field-tested guides drawn from real KSA and GCC deployments.

See author profile
SKYLINE engineering services

Need this implemented for you?

Reading is free — building it right takes a team. SKYLINE engineers ship Debian for Aramco vendors, banks, hospitals and government agencies across Saudi Arabia. Talk to us before you start.

Aramco Approved Contractor ISO 9001 · ISO 27001 SAMA CSF aligned NCA ECC ready 247+ KSA clients

Comments

0 total · 0 threads
Be the first to leave a comment.