# CVE-2026-16238: PostgreSQL type confusion in pg\_restore\_attribute\_stats() executes arbitrary code

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-13 · Modified: 2026-08-29
- Aliases: ALPINE-CVE-2026-16238, UBUNTU-CVE-2026-16238, DEBIAN-CVE-2026-16238
- Record: https://cvemate.com/vulnerability/CVE-2026-16238 · JSON: https://cvemate.com/vulnerability/CVE-2026-16238/json

## Description

```text
Type confusion in PostgreSQL pg_restore_attribute_stats() allows an object creator to execute arbitrary code as the operating system user running the database, via conflation of range and multirange values.  Within major version 18, minor versions before PostgreSQL 18.6 are affected.  Versions before PostgreSQL 18 are unaffected.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.414%, percentile 37.742%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine postgresql15 (Alpine Linux): \< 15.19-r0
- alpine postgresql16 (Alpine Linux): \< 16.15-r0
- alpine postgresql17 (Alpine Linux): \< 17.11-r0
- alpine postgresql18 (Alpine Linux): \< 18.5-r0
- debian postgresql-18 (Debian): \< 18.6-1
- ubuntu postgresql-18 (Ubuntu): \< 18.6-0ubuntu0.26.04.1
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- postgresql postgresql: ≥ 14.0, \< 14.24 \| ≥ 15.0, \< 15.19 \| ≥ 16.0, \< 16.15 \| ≥ 17.0, \< 17.11 \| ≥ 18.0, \< 18.5

## References

- <https://www.postgresql.org/support/security/CVE-2026-16238/>
- <https://security.alpinelinux.org/vuln/CVE-2026-16238>
- <https://ubuntu.com/security/CVE-2026-16238>
- <https://www.cve.org/CVERecord?id=CVE-2026-16238>
- <https://www.postgresql.org/about/news/postgresql-186-1711-1615-1519-1424-and-19-beta-3-released-3365/>
- <https://ubuntu.com/security/notices/USN-8653-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-16238>

---

Data as of 2026-12-05T04:47:31.967Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
