NetSight
medium4.3

CVE-2026-120152

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 cus…

Impact

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.

An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: low risk of data being read.

Affected products

ProductAffected versions
PostgreSQL
from 18 before 18.7
from 17 before 17.12
from 16 before 16.16

Weakness classification

References