CVE-2026-120152

PostgreSQL pg_show_all_settings() use-after-free discloses memory

Medium published · updated

4.3
CVSS score out of 10 · NVD (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007)

Description

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.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
postgresql n/a 18 → <18.7; 17 → <17.12; 16 → <16.1616.16 CVE.org

References