CVE-2026-120152 PUBLISHED

PostgreSQL pg_show_all_settings() use-after-free discloses memory

Assigner: PostgreSQL
Reserved: 30.10.2026 Published: 12.11.2026 Updated: 12.11.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
CVSS Score: 4.3

Product Status

Vendor n/a
Product PostgreSQL
Versions Default: unaffected
  • affected from 18 to 18.7 (excl.)
  • affected from 17 to 17.12 (excl.)
  • affected from 16 to 16.16 (excl.)

Credits

  • The PostgreSQL project thanks Stephan Lipp for reporting this problem.

References

Problem Types

  • Use After Free CWE