CVE-2026-16238
published high CVSS 3.1 · 8.8PostgreSQL type confusion in pg_restore_attribute_stats() executes arbitrary code
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | PostgreSQL18 to < 18.6 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-2079 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | postgresql18-test-rpm-macros | Advisory build | 18.6-1.el10_2 | ALSA-2026:67280 |
| Alpine Linux | edge | postgresql17 | Fixed | 17.11-r0 | Package fix record |
| Oracle Linux | 10 | postgresql18aarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.5.3-1.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 9 | pgaudit | Advisory build | 18.0-1.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
| AlmaLinux | 9 | pgvector | Advisory build | 0.8.1-1.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
| AlmaLinux | 9 | postgis | Advisory build | 3.6.1-4.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgis-client | Advisory build | 3.6.1-4.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgis-docs | Advisory build | 3.6.1-4.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgis-upgrade | Advisory build | 3.6.1-4.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgis-utils | Advisory build | 3.6.1-4.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 3.3.1-1.Final.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-plpython3 | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-pltcl | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-private-devel | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-private-libs | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-server | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-server-devel | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-static | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-test | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-test-rpm-macros | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-upgrade | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql-upgrade-devel | Advisory build | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| Alpine Linux | edge | postgresql18 | Fixed | 18.5-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql15 | Fixed | 15.19-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql16 | Fixed | 16.15-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql17 | Fixed | 17.11-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql15 | Fixed | 15.19-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql16 | Fixed | 16.15-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql17 | Fixed | 17.11-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql16 | Fixed | 16.15-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql17 | Fixed | 17.11-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql18 | Fixed | 18.5-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql16 | Fixed | 16.15-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql17 | Fixed | 17.11-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql18 | Fixed | 18.5-r0 | Package fix record |
| Oracle Linux | 10 | postgresql18x86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-contribaarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-contribx86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-docsaarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-docsx86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-plperlaarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-plperlx86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-plpython3aarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-plpython3x86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-private-develaarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-private-develx86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-private-libsaarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-private-libsx86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-serveraarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-serverx86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-server-develaarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-server-develx86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-staticaarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-staticx86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-testaarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-testx86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-test-rpm-macrosaarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-test-rpm-macrosx86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-upgradeaarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-upgradex86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-upgrade-develaarch64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 10 | postgresql18-upgrade-develx86_64 | Advisory build | 0:18.6-1.0.1.el10_2 | ELSA-2026-67280-0 |
| Oracle Linux | 9 | pg_repackaarch64 · postgresql · 18b | Advisory build | 0:1.5.3-1.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux | 9 | pg_repackx86_64 · postgresql · 18b | Advisory build | 0:1.5.3-1.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux | 9 | pgauditaarch64 · postgresql · 18b | Advisory build | 0:18.0-1.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux | 9 | pgauditx86_64 · postgresql · 18b | Advisory build | 0:18.0-1.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux | 9 | pgvectoraarch64 · postgresql · 18b | Advisory build | 0:0.8.1-1.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux | 9 | pgvectorx86_64 · postgresql · 18b | Advisory build | 0:0.8.1-1.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgisaarch64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgisx86_64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgis-clientaarch64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgis-clientx86_64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgis-docsaarch64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgis-docsx86_64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgis-upgradeaarch64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgis-upgradex86_64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgis-utilsaarch64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgis-utilsx86_64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgres-decoderbufsaarch64 · postgresql · 18b | Advisory build | 0:3.3.1-1.Final.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgres-decoderbufsx86_64 · postgresql · 18b | Advisory build | 0:3.3.1-1.Final.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresqlaarch64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresqlx86_64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-contribaarch64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-contribx86_64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-docsaarch64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-docsx86_64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-plperlaarch64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-plperlx86_64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-plpython3aarch64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-plpython3x86_64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-pltclaarch64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-pltclx86_64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-private-develaarch64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-private-develx86_64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux | 9 | postgresql-private-libsaarch64 · postgresql · 18b | Advisory build | 0:18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- PostgreSQL · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | PostgreSQL | 18 to < 18.6 (affected · rpm)Default: unaffected | PostgreSQL · cna |
Weaknesses
1- CWE-843 Access of Resource Using Incompatible Type ('Type Confusion')
References
1Provider assertions
2PostgreSQL · cna
PostgreSQL type confusion in pg_restore_attribute_stats() executes arbitrary code
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6617f24461a35d6f2e7c81ec2ecac3987a7c133099b5388e26e624ab33e14498
- Ingested
- 23 Sep 2026, 09:02:32 UTC
- Source record
- Official CVE record