CVEfocus › CVE database › CVE-2026-116328

CVE-2026-116328PostgreSQL generation memory context integer wraparound executes arbitrary code

CVSS 8.8 HighEPSS 0.5% (higher than 37% of CVEs)Published 2026-11-12Updated 2026-11-14Assigner: PostgreSQL

Integer wraparound in PostgreSQL generation memory contexts allows a database user to execute arbitrary code as the operating system user running the database, via freeing an allocation larger than 1 GB and causing its block to be reused for smaller chunks whose back-pointer offset cannot represent that position. Within major versions 16-18, minor versions before PostgreSQL 18.7, 17.12, and 16.16 are affected. Versions before PostgreSQL 16 are unaffected.

CWE-190

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
97Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10postgresql-18Fix pendingUBUNTU-CVE-2026-116328
Ubuntu 26.04postgresql-18Under investigationUBUNTU-CVE-2026-116328
Ubuntu 24.04postgresql-16Under investigationUBUNTU-CVE-2026-116328
Ubuntu 22.04postgresql-14Under investigationUBUNTU-CVE-2026-116328
Ubuntu 20.04postgresql-12Fix pendingUBUNTU-CVE-2026-116328
Ubuntu 18.04postgresql-10Fix pendingUBUNTU-CVE-2026-116328
Ubuntu 16.04postgresql-9.5Fix pendingUBUNTU-CVE-2026-116328
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-CVE-2026-116328
Debian 14postgresql-18Fixed18.7-1DEBIAN-CVE-2026-116328
Debian 13postgresql-17Fixed17.12-0+deb13u1DEBIAN-CVE-2026-116328
Debian 12postgresql-15Fixed15.20-0+deb12u1DEBIAN-CVE-2026-116328
Red Hat Enterprise Linux 10libpqFix pending
Affected
Red Hat Enterprise Linux 10libpq-develFix pending
Affected
Red Hat Enterprise Linux 10postgresqlFix pending
Affected
Red Hat Enterprise Linux 10postgresql-contribFix pending
Affected
Red Hat Enterprise Linux 10postgresql-docsFix pending
Affected
Red Hat Enterprise Linux 10postgresql-plperlFix pending
Affected
Red Hat Enterprise Linux 10postgresql-plpython3Fix pending
Affected
Red Hat Enterprise Linux 10postgresql-pltclFix pending
Affected
Red Hat Enterprise Linux 10postgresql-private-develFix pending
Affected
Red Hat Enterprise Linux 10postgresql-private-libsFix pending
Affected
Red Hat Enterprise Linux 10postgresql-serverFix pending
Affected
Red Hat Enterprise Linux 10postgresql-server-develFix pending
Affected
Red Hat Enterprise Linux 10postgresql-staticFix pending
Affected
Red Hat Enterprise Linux 10postgresql-testFix pending
Affected
Red Hat Enterprise Linux 10postgresql-test-rpm-macrosFix pending
Affected
Red Hat Enterprise Linux 10postgresql-upgradeFix pending
Affected
Red Hat Enterprise Linux 10postgresql-upgrade-develFix pending
Affected
Red Hat Enterprise Linux 10postgresql16Fix pending
Affected
Red Hat Enterprise Linux 10postgresql18Fix pending
Affected
Red Hat Enterprise Linux 10postgresql18-contribFix pending
Affected
Red Hat Enterprise Linux 10postgresql18-docsFix pending
Affected
Red Hat Enterprise Linux 10postgresql18-plperlFix pending
Affected
Red Hat Enterprise Linux 10postgresql18-plpython3Fix pending
Affected
Red Hat Enterprise Linux 10postgresql18-private-develFix pending
Affected
Red Hat Enterprise Linux 10postgresql18-private-libsFix pending
Affected
Red Hat Enterprise Linux 10postgresql18-serverFix pending
Affected
Red Hat Enterprise Linux 10postgresql18-server-develFix pending
Affected
Red Hat Enterprise Linux 10postgresql18-staticFix pending
Affected
Red Hat Enterprise Linux 10postgresql18-testFix pending
Affected
Red Hat Enterprise Linux 10postgresql18-test-rpm-macrosFix pending
Affected
Red Hat Enterprise Linux 10postgresql18-upgradeFix pending
Affected
Red Hat Enterprise Linux 10postgresql18-upgrade-develFix pending
Affected
Red Hat Enterprise Linux 10postgresql19Fix pending
Affected
Red Hat Enterprise Linux 9libpqFix pending
Affected
Red Hat Enterprise Linux 9libpq-develFix pending
Affected
Red Hat Enterprise Linux 9postgresqlFix pending
Affected
Red Hat Enterprise Linux 9postgresql-contribFix pending
Affected
Red Hat Enterprise Linux 9postgresql-docsFix pending
Affected
Red Hat Enterprise Linux 9postgresql-plperlFix pending
Affected
Red Hat Enterprise Linux 9postgresql-plpython3Fix pending
Affected
Red Hat Enterprise Linux 9postgresql-pltclFix pending
Affected
Red Hat Enterprise Linux 9postgresql-private-develFix pending
Affected
Red Hat Enterprise Linux 9postgresql-private-libsFix pending
Affected
Red Hat Enterprise Linux 9postgresql-serverFix pending
Affected
Red Hat Enterprise Linux 9postgresql-server-develFix pending
Affected
Red Hat Enterprise Linux 9postgresql-staticFix pending
Affected
Red Hat Enterprise Linux 9postgresql-testFix pending
Affected
Red Hat Enterprise Linux 9postgresql-test-rpm-macrosFix pending
Affected
Red Hat Enterprise Linux 9postgresql-upgradeFix pending
Affected
Red Hat Enterprise Linux 9postgresql-upgrade-develFix pending
Affected
Red Hat Enterprise Linux 8libpqFix pending
Affected
Red Hat Enterprise Linux 8libpq-develFix pending
Affected
Red Hat Enterprise Linux 8pg_repackFix pending
Affected
Red Hat Enterprise Linux 8pgauditFix pending
Affected
Red Hat Enterprise Linux 8postgres-decoderbufsFix pending
Affected
Red Hat Enterprise Linux 8postgresqlFix pending
Affected
Red Hat Enterprise Linux 8postgresql-contribFix pending
Affected
Red Hat Enterprise Linux 8postgresql-docsFix pending
Affected
Red Hat Enterprise Linux 8postgresql-plperlFix pending
Affected
Red Hat Enterprise Linux 8postgresql-plpython3Fix pending
Affected
Red Hat Enterprise Linux 8postgresql-pltclFix pending
Affected
Red Hat Enterprise Linux 8postgresql-private-develFix pending
Affected
Red Hat Enterprise Linux 8postgresql-private-libsFix pending
Affected
Red Hat Enterprise Linux 8postgresql-serverFix pending
Affected
Red Hat Enterprise Linux 8postgresql-server-develFix pending
Affected
Red Hat Enterprise Linux 8postgresql-staticFix pending
Affected
Red Hat Enterprise Linux 8postgresql-testFix pending
Affected
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFix pending
Affected
Red Hat Enterprise Linux 8postgresql-upgradeFix pending
Affected
Red Hat Enterprise Linux 8postgresql-upgrade-develFix pending
Affected
Red Hat Enterprise Linux 7postgresqlFix pending
Affected
Red Hat Enterprise Linux 7postgresql-contribFix pending
Affected
Red Hat Enterprise Linux 7postgresql-develFix pending
Affected
Red Hat Enterprise Linux 7postgresql-docsFix pending
Affected
Red Hat Enterprise Linux 7postgresql-libsFix pending
Affected
Red Hat Enterprise Linux 7postgresql-plperlFix pending
Affected
Red Hat Enterprise Linux 7postgresql-plpythonFix pending
Affected
Red Hat Enterprise Linux 7postgresql-pltclFix pending
Affected
Red Hat Enterprise Linux 7postgresql-serverFix pending
Affected
Red Hat Enterprise Linux 7postgresql-staticFix pending
Affected
Red Hat Enterprise Linux 7postgresql-testFix pending
Affected
Red Hat Enterprise Linux 7postgresql-upgradeFix pending
Affected
Red Hat Enterprise Linux 6postgresqlFix pending
Affected
Red Hat Enterprise Linux 6postgresql-contribFix pending
Affected
Red Hat Enterprise Linux 6postgresql-develFix pending
Affected
Red Hat Enterprise Linux 6postgresql-docsFix pending
Affected
Red Hat Enterprise Linux 6postgresql-libsFix pending
Affected
Red Hat Enterprise Linux 6postgresql-plperlFix pending
Affected
Red Hat Enterprise Linux 6postgresql-plpythonFix pending
Affected
Red Hat Enterprise Linux 6postgresql-pltclFix pending
Affected
Red Hat Enterprise Linux 6postgresql-serverFix pending
Affected
Red Hat Enterprise Linux 6postgresql-testFix pending
Affected
Alpine Linux 3.24postgresql16Fixed16.16-r0ALPINE-CVE-2026-116328
Alpine Linux 3.24postgresql17Fixed17.12-r0ALPINE-CVE-2026-116328
Alpine Linux 3.24postgresql18Fixed18.7-r0ALPINE-CVE-2026-116328
Alpine Linux 3.23postgresql16Fixed16.16-r0ALPINE-CVE-2026-116328
Alpine Linux 3.23postgresql17Fixed17.12-r0ALPINE-CVE-2026-116328
Alpine Linux 3.23postgresql18Fixed18.7-r0ALPINE-CVE-2026-116328
Alpine Linux 3.22postgresql15Fixed15.20-r0ALPINE-CVE-2026-116328
Alpine Linux 3.22postgresql16Fixed16.16-r0ALPINE-CVE-2026-116328
Alpine Linux 3.22postgresql17Fixed17.12-r0ALPINE-CVE-2026-116328
Alpine Linux 3.21postgresql15Fixed15.20-r0ALPINE-CVE-2026-116328
Alpine Linux 3.21postgresql16Fixed16.16-r0ALPINE-CVE-2026-116328
Alpine Linux 3.21postgresql17Fixed17.12-r0ALPINE-CVE-2026-116328

What the vendor says

As published in the CVE record by PostgreSQL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.