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

- Severity: Medium 4.3 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-11-12T14:15:28.444Z
- Modified: 2026-11-27T06:45:44.649Z
- Also known as: BIT-POSTGRESQL-2026-120152
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 18 before 18.7; from 17 before 17.12; from 16 before 16.16
- postgresql (Bitnami): from 16.0.0 before 16.16.0; from 17.0.0 before 17.12.0; from 18.0.0 before 18.7.0

## Every score

- PostgreSQL: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://www.postgresql.org/support/security/CVE-2026-120152/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-120152> (web)

## Sources

- CVE List: [CVE-2026-120152](https://www.cve.org/CVERecord?id=CVE-2026-120152), CVE Terms of Use, modified 2026-11-12
- NVD: [CVE-2026-120152](https://nvd.nist.gov/vuln/detail/CVE-2026-120152), Public domain, modified 2026-11-12
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2026-120152](https://osv.dev/vulnerability/BIT-POSTGRESQL-2026-120152), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-120152 · Whole record: https://cve.day/CVE-2026-120152.json · Rebuilt by cve.day 2026-11-27T07:07:24.480Z
