CVE-2026-120152

PostgreSQL pg_show_all_settings() use-after-free discloses memory

Published Nov 12, 2026 CVSS 3.1 · 4.3 Medium EPSS n/a KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
Vendors & Products Postgresql
Postgresql postgresql
Type Values Removed Values Added
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.
Title PostgreSQL pg_show_all_settings() use-after-free discloses memory
Weaknesses CWE-416
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Nov 12, 2026, 9:43 PM
Reserved
Oct 30, 2026, 10:45 PM
Status
Awaiting Analysis
Published
Nov 12, 2026, 3:17 PM
Modified
Nov 12, 2026, 10:19 PM
Severity
Moderate
Public date
Nov 12, 2026, 2:15 PM