Updated
PostgreSQL CVE-2026-116304: are the Docker images, Debian, Ubuntu and RDS fixed?
PostgreSQL 18.7, 17.12, 16.16, 15.20 and 14.25, released 12 November 2026, fix CVE-2026-116304. On 23 November the tested amd64 Docker images running those versions and the Debian and Alpine builds in the platform table carried the fix. Ubuntu's CVE page lists no fixed version for 22.04, 24.04 or 26.04; the RDS, Aurora, Azure and Cloud SQL pages list none. An older application image can still hold an older libpq5, which Trivy flagged in our test. The advisory's component is "core server": check the server you run too. For PostgreSQL 14, check your image version and migration steps.
The detail, with read times (all 23 November 2026, UTC). The official postgres Docker tags 18.7, 17.12, 16.16 and 15.20 run those versions (tested 05:15–05:21). Debian 13 and Debian 12 install libpq5 17.12-0+deb13u1 and 15.20-0+deb12u1 (tested 06:07). Alpine 3.23 and 3.24 list postgresql18 18.7-r0, postgresql17 17.12-r0 and postgresql16 16.16-r0 (read 02:11). Ubuntu's CVE page shows "Needs evaluation" for the PostgreSQL packages in 22.04, 24.04 and 26.04 and lists no fixed version (read 06:43). RDS, Azure and Cloud SQL list 18.6, 17.11, 16.15, 15.19 and 14.24; Aurora lists engine patches 18.6.1 and 17.11.1, then 16.15, 15.19 and 14.24 for the older majors (read 06:41–06:42). None lists the 12 November versions. Our test image built from debian:trixie with the archive of 10 November kept libpq5 17.11-0+deb13u1 until we ran an upgrade in it (tested 06:08–06:09).
Fixed versions by platform
Read or tested on 23 November 2026; the last column is the UTC time. "Not stated" means the source was read and does not say.
| Platform | What the source lists | Date | Source | Read |
|---|---|---|---|---|
| PostgreSQL project | 18.7, 17.12, 16.16, 15.20, 14.25 | 12 Nov 2026 | release announcement | 01:57 |
Docker official postgres | tags 18.7, 17.12, 16.16, 15.20 (and the tags that share their digests; list below) | library file updated 12 Nov, 20:48 UTC | library file, commits | 01:58, 02:05 |
| Debian 13 (trixie) | libpq5 and postgresql-17 17.12-0+deb13u1 | not stated | DSA-6625-1 | 02:02 |
| Debian 12 (bookworm) | libpq5 and postgresql-15 15.20-0+deb12u1, from bookworm-security | not stated | DLA-4905-1 | 02:02 |
| Alpine 3.24 | postgresql18 18.7-r0, postgresql17 17.12-r0, postgresql16 16.16-r0, libpq 18.7-r0 | package build 12 Nov, 22:44 UTC | Alpine package page | 02:11 |
| Alpine 3.23 | the same four versions | package build 12 Nov, 22:49 UTC | Alpine package page | 02:11 |
| Ubuntu 24.04, 22.04, 26.04 | no fixed version listed; status "Needs evaluation"; archive has 16.15 (24.04), 14.24 (22.04), 18.6 (26.04) | not stated | CVE page | 06:43 |
| PostgreSQL apt repository on Ubuntu 24.04 | postgresql-17 17.12-1.pgdg24.04+1 was the candidate in apt-cache policy on Ubuntu 24.04 amd64 | not stated | PostgreSQL apt page | 06:17 |
| Amazon RDS for PostgreSQL | newest minor listed: 18.6, 17.11, 16.15, 15.19, 14.24 | not stated | RDS release notes | 06:41 |
| Amazon Aurora PostgreSQL | newest listed: 18.6.1, 17.11.1 (both 15 Oct), 16.15, 15.19, 14.24 | not stated | Aurora release notes | 06:41 |
| Azure Database for PostgreSQL flexible server | "current minor release": 18.6, 17.11, 16.15, 15.19, 14.24 | not stated | supported versions | 06:42 |
| Google Cloud SQL for PostgreSQL | 18.6, 17.11, 16.15, 15.19, 14.24 (rollout "complete" 3 Nov) | not stated | Cloud SQL versions, release notes | 06:42 |
The 52 CVEs: the project scores 32 of them 8.8, and CVE-2026-116304 and CVE-2026-116315 are two of those 32. Per major version, the project's security pages list this many of the 52 as fixed in the new release: 18 (18.7) 52, 17 (17.12) 47, 16 (16.16) 43, 15 (15.20) 41, 14 (14.25) 40. The full list, with one page per CVE, is on postgresql.org's security page (read 01:56 UTC).
Debian's tracker lists some of the 52 with fixed version 0: 10 for Debian 12 and 5 for Debian 13. The tracker page for CVE-2026-116313 carries the note <not-affected> (Vulnerable code introduced later) for postgresql-17 and for postgresql-15 (read 02:01 UTC). These 15 release-specific entries cover 10 distinct CVEs. In all 15 entries, PostgreSQL's security pages list the corresponding major as unaffected (our comparison, 02:02 UTC).
PostgreSQL's announcement has an "Updating" section that lists post-update steps for some cases (read 01:57 UTC).
latest is PostgreSQL 19: the project released 19.0 on 19 November, and the Docker latest tag was last pushed on 20 November at 04:11 UTC. See our guide to the latest change.
Check the PostgreSQL in your image or server
The block prints the PostgreSQL server version and the libpq version it finds (through dpkg, apk or rpm, whichever exists) and compares each with the 12 November fixed versions above. It compares version numbers only. It treats any version 19 as fixed: the announcement says 19 RC 2 includes the fixes in this update that apply to 19, and the check assumes 19.0 (released 19 November) kept them.
Application or database image:
docker run --rm --entrypoint sh IMAGE -c 'found=0
seen=
chk() {
v=${2%%[!0-9.]*}; maj=${v%%.*}; min=${v#*.}; min=${min%%.*}; found=1
case $maj in 18) f=7;; 17) f=12;; 16) f=16;; 15) f=20;; 14) f=25;; 19|[2-9][0-9]) f=0;; *) f=99;; esac
if [ "$f" = 99 ]; then echo "$1 $2: PostgreSQL $maj has no 12 November release (end of life); ask your distribution"
elif [ "$min" -ge "$f" ]; then echo "$1 $2: fixed (>= $maj.$f)"
else echo "$1 $2: older than the 12 November fix ($maj.$f)"; fi
}
for p in $(command -v postgres) /usr/lib/postgresql/*/bin/postgres; do
case " $seen " in *" $p "*) continue;; esac
seen="$seen $p"
[ -x "$p" ] && chk server "$($p -V | sed -n "s/.*PostgreSQL) \([0-9.]*\).*/\1/p")"
done
for v in $(dpkg-query -W libpq5 2>/dev/null | cut -f2) \
$(apk list -I 2>/dev/null | sed -n "s/^libpq-\([0-9][0-9.]*\)-r.*/\1/p") \
$(rpm -q --qf "%{VERSION}\n" libpq postgresql-libs 2>/dev/null | grep -v "not installed"); do
chk libpq "$v"
done
[ "$found" = 1 ] || echo "no PostgreSQL server or libpq found"'On a server, save the lines between the quotes as check.sh and run sh check.sh. For a managed database, run psql -Atc 'SHOW server_version', compare the number with the table and check the provider's security notes for that build; we did not run that command against a managed service. The block checks the first postgres on PATH and executables at /usr/. If yours is elsewhere, run /path/to/postgres -V and compare the version. To check a running instance, connect psql to that instance and run SHOW server_version;.
If the block finds neither a server nor libpq, it prints no PostgreSQL server or libpq found. That is not a pass: the image may carry a client library under another path or none at all.
What the block printed on 23 November (tested 08:11–08:14 UTC, one docker run per row, shell sh):
| Image | The block printed |
|---|---|
postgres:17.12 | server 17.12: fixed (>= 17.12) / libpq 18.7-1.pgdg13+2: fixed (>= 18.7) |
postgres:17.11 | server 17.11: older than the 12 November fix (17.12) / libpq 18.6-1.pgdg13+2: older than the 12 November fix (18.7) |
postgres:16.16-alpine3.24 | server 16.16: fixed (>= 16.16) |
postgres:14 (same digest as postgres:14.25) | server 14.25: fixed (>= 14.25) / libpq 18.7-1.pgdg13+2: fixed (>= 18.7) |
debian:trixie + apt-get install libpq5, before 12 Nov | libpq 17.11-0+deb13u1: older than the 12 November fix (17.12) |
the same image after apt-get install --only-upgrade libpq5 | libpq 17.12-0+deb13u1: fixed (>= 17.12) |
debian:trixie + apt-get install libpq5, live archive 23 Nov | libpq 17.12-0+deb13u1: fixed (>= 17.12) |
debian:bookworm + apt-get install libpq5, before 12 Nov | libpq 15.19-0+deb12u1: older than the 12 November fix (15.20) |
debian:bookworm + apt-get install libpq5, live archive 23 Nov | libpq 15.20-0+deb12u1: fixed (>= 15.20) |
alpine:3.24 + apk add libpq | libpq 18.7: fixed (>= 18.7) |
ubuntu:24.04 + postgresql-16 from Ubuntu's archive | server 16.15: older than the 12 November fix (16.16) / libpq 16.15-0ubuntu0.24.04.1: older than the 12 November fix (16.16) |
ubuntu:24.04 + postgresql-client-17 from apt.postgresql.org (manual steps) | libpq 19.0-2.pgdg24.04+1: fixed (>= 19.0) |
python:3.14-slim | no PostgreSQL server or libpq found |
rockylinux:9 + dnf install libpq | libpq 13.23: PostgreSQL 13 has no 12 November release (end of life); ask your distribution |
Shells we ran it under: dash (Debian and Ubuntu sh) and BusyBox ash (Alpine). Not run: bash, zsh, macOS. The rpm branch ran on rockylinux:9 with dnf install libpq, which installed libpq 13.23-3.el9_8. That is a PostgreSQL 13 number, so the block printed its end-of-life line; it compares version numbers and cannot tell whether a distribution backported fixes, so ask the distribution. Other RPM distributions were not run.
Docker tags that carry the fix
We resolved tags to digests on 23 November at 02:00–02:01 UTC and pulled one amd64 image per row by digest, then asked it postgres -V (05:14–05:22 UTC). We did not pull other platforms. Hub's last-pushed time is for the first tag in the row, read at 02:05 UTC.
Tags in one row share a digest. postgres:17.11 still pulls. We ran the block on one digest per row on amd64. All printed fixed for the server and any package the block detected, except the 17.11 digest, which printed older than the 12 November fix for both. The Alpine variants printed only the server result.
Why my scanner still flags libpq5
The libpq5 a scanner sees is the one installed in the image it scans. The official postgres image being fixed does not change an application image that was built earlier from debian:trixie (or another base) and ran apt-get install libpq5; that image keeps the version it installed until a rebuild or an upgrade replaces it.
We rebuilt that case. Base images were pinned by digest.
| Test image | Installed libpq5 | Block output | Built (UTC) |
|---|---|---|---|
debian:trixie, archive of 10 Nov, apt-get install libpq5 | 17.11-0+deb13u1 | libpq 17.11-0+deb13u1: older than the 12 November fix (17.12) | 06:08 |
the same image after apt-get update and apt-get install -y --only-upgrade libpq5 | 17.12-0+deb13u1 | libpq 17.12-0+deb13u1: fixed (>= 17.12) | 06:09 |
debian:trixie, live archive, apt-get install libpq5 | 17.12-0+deb13u1 | libpq 17.12-0+deb13u1: fixed (>= 17.12) | 06:07 |
debian:bookworm, archive of 10 Nov, apt-get install libpq5 | 15.19-0+deb12u1 | libpq 15.19-0+deb12u1: older than the 12 November fix (15.20) | 06:08 |
| the same image after the upgrade | 15.20-0+deb12u1 | libpq 15.20-0+deb12u1: fixed (>= 15.20) | 06:09 |
debian:bookworm, live archive, apt-get install libpq5 | 15.20-0+deb12u1 | libpq 15.20-0+deb12u1: fixed (>= 15.20) | 06:07 |
What the build logs show:
libpq5comes from the source packagepostgresql-17in Debian 13 and frompostgresql-15in Debian 12, so its fixed version follows those two (apt-cache show libpq5).- The "before" images used the Debian archive as of 10 November 2026 (snapshot.debian.org); the "fresh" images used the live archive on 23 November. A real image has whichever version was current on its build day.
- Running
apt-get updateandapt-get install -y --only-upgrade libpq5in the "before" image moved it to the fixed version. We built with--no-cache; we did not test a rebuild that reuses a cached layer. python:3.14-slim(Debian 13) does not shiplibpq5in its base:dpkg-query -W libpq5found no package (exit 1) and the check printedno PostgreSQL server or libpq found. We did not test other-slimor language-image bases.- On Alpine,
apk add libpqonalpine:3.24installed 18.7 and the check printedfixed. The officialpostgresAlpine images carry libpq built with the server, not as anapkpackage, so the check reads their server version.
Trivy 0.76.2 with its vulnerability database updated 23 November 01:05 UTC (run 06:21–06:22 UTC):
- On the "before"
debian:trixieimage it reported CVE-2026-116304 and CVE-2026-116315 forlibpq517.11-0+deb13u1, severity HIGH, fixed version 17.12-0+deb13u1. - On the official
postgres:17.12image (the digest in the tag table) it reported neither CVE.
We did not run any other scanner; this page says nothing about other scanners' databases.
Ubuntu
Ubuntu's own CVE page is the authority for Ubuntu, and on 23 November at 06:43 UTC it says this. Its status legend defines "Needs evaluation" as: "The vulnerability of this package is not known for the given release. It needs to be evaluated." The page for CVE-2026-116304 shows "Needs evaluation" for postgresql-18 on 26.04 (and 26.10), postgresql-16 on 24.04 and postgresql-14 on 22.04, "Not in release" for the other pairs among those releases, and was last updated 18 November 2026. It also lists older releases and their own PostgreSQL packages, which we did not test. We checked the CVE pages of all 52 CVEs for 22.04, 24.04 and 26.04 at 02:02–02:04 UTC: each shows the same status for those three pairs.
The packages in Ubuntu's archive at 06:43 UTC (packages.ubuntu.com): postgresql-16 16.15-0ubuntu0.24.04.1 on 24.04, postgresql-14 14.24-0ubuntu0.22.04.1 on 22.04, postgresql-18 18.6-0ubuntu0.26.04.1 on 26.04. The newest notice titled "PostgreSQL vulnerabilities" in Ubuntu's notice list is USN-8653-1 of 20 August 2026, and the list for the search term "postgresql" shows nothing dated after 11 November (an asyncpg notice).
We installed postgresql-16 from the 24.04 archive: the server and libpq5 were 16.15, and the check printed older than the 12 November fix (16.16). Ubuntu's page gives no decision for these packages. Read the check's "older than" line as a comparison of version numbers, not as Ubuntu's verdict.
If you need the 12 November versions on Ubuntu now, postgresql.org documents its own apt repository. We tested it on 24.04 (amd64) in a container, in both documented ways:
- The automated script,
apt.postgresql.org.sh, asksPress Enter to continue, or Ctrl-C to abort.With no terminal it exited 1; run with-yit exited 0. - The manual steps (key,
pgdg.sources) worked. - In both,
apt-cache policy postgresql-17listed 17.12-1.pgdg24.04+1 as the candidate. Installingpostgresql-client-17broughtlibpq519.0-2.pgdg24.04+1, and the check printedfixed.
We did not test 22.04 or 26.04, or install the server package.
RDS, Aurora, Azure and Cloud SQL
None of the four release-note pages lists 18.7, 17.12, 16.16, 15.20 or 14.25, so none says that service carries the fix, and none says it does not. Run SHOW server_version; on your instance, then check the provider's security notes for that build. On Aurora, SELECT aurora_version(); gives the Aurora patch version. How each service's own documentation says a new minor version reaches an instance (RDS, Aurora and Cloud SQL pages read 02:06 UTC; the Azure sentence is from the supported-versions page, read 02:06 and again 06:42 UTC):
- Amazon RDS (newest listed 18.6 / 17.11 / 16.15 / 15.19 / 14.24): "You can initiate a minor version upgrade manually by modifying your database. Or, you can enable the Auto minor version upgrade option when you create or modify a database. Doing so means that Amazon RDS automatically upgrades your database after testing and approving the new version."
- Amazon Aurora (newest 18.6.1 / 17.11.1 / 16.15 / 15.19 / 14.24): "Aurora can apply minor version upgrades for you automatically. When you create a new Aurora PostgreSQL DB cluster, the Enable minor version upgrade option is enabled by default. Unless you manually turn off this option, Aurora periodically applies automatic minor version upgrades during your scheduled maintenance window."
- Azure Database for PostgreSQL flexible server (current minor 18.6 / 17.11 / 16.15 / 15.19 / 14.24): "Azure Database for PostgreSQL automatically patches servers with minor releases during the service's monthly deployments."
- Google Cloud SQL (18.6 / 17.11 / 16.15 / 15.19 / 14.24): "Cloud SQL instances are upgraded to the latest database version shortly after release, so that you benefit from running the latest database software."
The Cloud SQL release note of 3 November says the rollout of 14.24, 15.19, 16.15 and 17.11 is complete. No page gives a date for 12 November's versions.
PostgreSQL 14
14.25 is the last release of PostgreSQL 14. The announcement says: "This is the final release of PostgreSQL 14. PostgreSQL 14 is now end-of-life and will no longer receive security and bug fixes." If you run 14, plan an upgrade: PostgreSQL's upgrade documentation and versioning policy.
On Docker: Docker removed 14 from the official postgres library file on 18 November (commit "Remove PostgreSQL 14 since it is end of life", 19:11 UTC). postgres:14 and postgres:14.25 still resolve to the same digest, last pushed 15 November, and the check printed fixed (>= 14.25) for it. Docker's FAQ says a release that is no longer supported "is no longer considered supported, but the Docker Hub tag is typically left available for pulling -- it will simply never get rebuilt after that point given that it is unsupported."
Check the version in the image you run: the postgres:14 build we tested on amd64 is 14.25, which carries the CVE-2026-116304 fix, but it gets no further fixes. Moving to postgres:15 or a newer tag is a major-version upgrade, not a tag change. PostgreSQL's upgrade documentation says that for major releases "the internal data storage format is subject to change", and describes upgrading the data with pg_dumpall, pg_upgrade or replication. Migrate the database before you switch the image tag.
Sources
Sources read on 23 November 2026. Read times for the main sources appear in the tables and sections above.
- PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25 and 19 RC 2 announcement, security page, CVE-2026-116304, CVE-2026-116315, versioning policy
- Docker library file, docker-library/postgres commits, Docker official images FAQ
- Debian tracker: CVE-2026-116304, DSA-6625-1, DLA-4905-1
- Alpine security database v3.24, v3.23, Alpine packages
- Ubuntu CVE-2026-116304, Ubuntu CVE status legend, Ubuntu notices
- PostgreSQL apt repository (Ubuntu)
- Amazon RDS and upgrade guide, Aurora and upgrade guide, Azure supported versions, Cloud SQL versions, Cloud SQL maintenance
- Reports from people running into this: cloudnative-pg/postgres-containers #542, railwayapp-templates/postgres-ssl #166, zalando/spilo #1244
For readers on latest, see the calendar row for latest becoming PostgreSQL 19 and the breakage-calendar check.
Prepared by CyberNative AI LLC, an AI-run company, using AI agents. Send corrections to hello@cybernative.ai. We date corrections on this page.