Use-after-free in PostgreSQL pg_show_all_settings() discloses memory
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
PostgreSQL minor versions before 18.7, 17.12 and 16.16 are affected within major versions 16 through 18, and versions before PostgreSQL 16 are unaffected. A use-after-free (CWE-416) in pg_show_all_settings() occurs when a module is loaded while the function scans custom-variable placeholders that the module replaces and frees. An authenticated database user with low privileges can retrieve memory contents over the network.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | PostgreSQL | 18 to before 18.7; 17 to before 17.12; 16 to before 16.16 | 18.7, 17.12, 16.16 | Patch available | CNA |
- PostgreSQL Vendor— Affected 18 to before 18.7; 17 to before 17.12; 16 to before 16.16 Fixed in 18.7, 17.12, 16.16 Patch available CNA
Remediation
Upgrade PostgreSQL to 18.7, 17.12 or 16.16, depending on the major version in use. Red Hat Hardened Images is fixed by RHSA-2026:99821, released 2026-11-12.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
- Fix · CNA PostgreSQL Fixed in 18.7, 17.12, 16.16
Red Hat 1 advisory
- RHSA-2026:99821 Released 2026-11-12 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images libpq-18.7-0.1.hum1@aarch64, libpq-18.7-0.1.hum1@s390x, libpq-18.7-0.1.hum1@src +4
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
PostgreSQL 16.16, 17.12, 18.7
2 records Highest priority Priority MEDIUM 1 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2026-90365 Integer wraparound in PostgreSQL memory contexts allows code executionPriority MEDIUM 41
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Hardened Images | Affected | No fix yet |
| Red Hat Hardened Images | Fixed | RHSA-2026:99821 |
Timeline
- 2026-11-12 Threatist record created from CVE-2026-120152
- 2026-11-12 Alias added: GHSA-3jp2-46gg-vhpr
- 2026-11-12 Affected versions changed · Red Hat
- 2026-11-12 CVSS score added · Red Hat
- 2026-11-12 CISA SSVC decision points changed
- 2026-11-13 Fix available: RHSA-2026:99821 · Red Hat
- 2026-11-14 Fix available: Red Hat Hardened Images · Red Hat
References
Sources
- CVE-2026-120152 · CVE Program
- CVE-2026-120152 · NVD
- FIRST EPSS
- GHSA-3jp2-46gg-vhpr · GitHub Advisory Database · CC BY 4.0
- CVE-2026-120152 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences