CVEfocus › CVE database › CVE-2026-120152

CVE-2026-120152PostgreSQL pg_show_all_settings() use-after-free discloses memory

CVSS 4.3 MediumEPSS 0.3% (higher than 11% of CVEs)Published 2026-11-12Updated 2026-11-12Assigner: PostgreSQL

Use after free in PostgreSQL pg_show_all_settings() allows a database user to retrieve memory contents, via loading a module while the function is scanning custom-variable placeholders that the module replaces and frees. 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-416

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

14Fixed
80Fix pending
3Under investigation
10Will not fix
1Not affected

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-120152
Ubuntu 26.04postgresql-18Under investigationUBUNTU-CVE-2026-120152
Ubuntu 24.04postgresql-16Under investigationUBUNTU-CVE-2026-120152
Ubuntu 22.04postgresql-14Under investigationUBUNTU-CVE-2026-120152
Ubuntu 20.04postgresql-12Fix pendingUBUNTU-CVE-2026-120152
Ubuntu 18.04postgresql-10Fix pendingUBUNTU-CVE-2026-120152
Ubuntu 16.04postgresql-9.5Fix pendingUBUNTU-CVE-2026-120152
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-CVE-2026-120152
Debian 14postgresql-18Fixed18.7-1DEBIAN-CVE-2026-120152
Debian 13postgresql-17Fixed17.12-0+deb13u1DEBIAN-CVE-2026-120152
Red Hat Enterprise Linux 10postgresqlFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-contribFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-docsFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-plpython3Fix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-pltclFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-private-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-private-libsFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-serverFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-server-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-staticFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-testFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-test-rpm-macrosFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql-upgrade-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql16Fix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18Fix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-contribFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-docsFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-plpython3Fix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-private-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-private-libsFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-serverFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-server-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-staticFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-testFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-test-rpm-macrosFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql18-upgrade-develFix pending
Fix deferred
Red Hat Enterprise Linux 10postgresql19Not affected
Red Hat Enterprise Linux 9postgresqlFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-contribFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-docsFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-plpython3Fix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-pltclFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-private-develFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-private-libsFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-serverFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-server-develFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-staticFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-testFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-test-rpm-macrosFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 9postgresql-upgrade-develFix pending
Fix deferred
Red Hat Enterprise Linux 8pg_repackFix pending
Fix deferred
Red Hat Enterprise Linux 8pgauditFix pending
Fix deferred
Red Hat Enterprise Linux 8postgres-decoderbufsFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresqlFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-contribFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-docsFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-plpython3Fix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-pltclFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-private-develFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-private-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-serverFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-server-develFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-staticFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-testFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 8postgresql-upgrade-develFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresqlFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-contribFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-develFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-docsFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-libsFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-plperlFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-plpythonFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-pltclFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-serverFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-staticFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-testFix pending
Fix deferred
Red Hat Enterprise Linux 7postgresql-upgradeFix pending
Fix deferred
Red Hat Enterprise Linux 6postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-testWill not fix
Out of support scope
Alpine Linux 3.24postgresql16Fixed16.16-r0ALPINE-CVE-2026-120152
Alpine Linux 3.24postgresql17Fixed17.12-r0ALPINE-CVE-2026-120152
Alpine Linux 3.24postgresql18Fixed18.7-r0ALPINE-CVE-2026-120152
Alpine Linux 3.23postgresql16Fixed16.16-r0ALPINE-CVE-2026-120152
Alpine Linux 3.23postgresql17Fixed17.12-r0ALPINE-CVE-2026-120152
Alpine Linux 3.23postgresql18Fixed18.7-r0ALPINE-CVE-2026-120152
Alpine Linux 3.22postgresql15Fixed15.20-r0ALPINE-CVE-2026-120152
Alpine Linux 3.22postgresql16Fixed16.16-r0ALPINE-CVE-2026-120152
Alpine Linux 3.22postgresql17Fixed17.12-r0ALPINE-CVE-2026-120152
Alpine Linux 3.21postgresql15Fixed15.20-r0ALPINE-CVE-2026-120152
Alpine Linux 3.21postgresql16Fixed16.16-r0ALPINE-CVE-2026-120152
Alpine Linux 3.21postgresql17Fixed17.12-r0ALPINE-CVE-2026-120152

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.