CVE-2026-116331
published high CVSS 3.1 · 8.8PostgreSQL min/max aggregate type confusion executes arbitrary code
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | PostgreSQL18 to < 18.7 · 17 to < 17.12 · 16 to < 16.16 · 15 to < 15.20 · 0 to < 14.25 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| Amazon Linux | AL2 | Release evaluation | Not Affected; Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2026-026 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3482 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3485 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | postgresql17 | Fixed | 17.12-r0 | Package fix record |
| Debian | bookworm | postgresql-15 | Advisory build | 15.20-0+deb12u1 | DLA-4905-1 |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3486 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3487 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 9 | pg_repackaarch64 · postgresql · 18b | Advisory build | 0:1.5.3-1.module+el9.8.0+90922+3defa420 | ELSA-2026-104854 |
| Red Hat Enterprise Linux | RHEL-10 | postgresqlaarch64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Alpine Linux | edge | postgresql18 | Fixed | 18.7-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql15 | Fixed | 15.20-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql16 | Fixed | 16.16-r0 | Package fix record |
| Alpine Linux | v3.21 | postgresql17 | Fixed | 17.12-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql15 | Fixed | 15.20-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql16 | Fixed | 16.16-r0 | Package fix record |
| Alpine Linux | v3.22 | postgresql17 | Fixed | 17.12-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql16 | Fixed | 16.16-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql17 | Fixed | 17.12-r0 | Package fix record |
| Alpine Linux | v3.23 | postgresql18 | Fixed | 18.7-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql16 | Fixed | 16.16-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql17 | Fixed | 17.12-r0 | Package fix record |
| Alpine Linux | v3.24 | postgresql18 | Fixed | 18.7-r0 | Package fix record |
| Debian | trixie | postgresql-17 | Advisory build | 17.12-0+deb13u1 | DSA-6625-1 |
| Oracle Linux | 9 | pg_repackx86_64 · postgresql · 18b | Advisory build | 0:1.5.3-1.module+el9.8.0+90922+3defa420 | ELSA-2026-104854 |
| Oracle Linux | 9 | pgauditaarch64 · postgresql · 18b | Advisory build | 0:18.0-1.module+el9.8.0+90922+3defa420 | ELSA-2026-104854 |
| Oracle Linux | 9 | pgauditx86_64 · postgresql · 18b | Advisory build | 0:18.0-1.module+el9.8.0+90922+3defa420 | ELSA-2026-104854 |
| Oracle Linux | 9 | pgvectoraarch64 · postgresql · 18b | Advisory build | 0:0.8.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | pgvectorx86_64 · postgresql · 18b | Advisory build | 0:0.8.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgisaarch64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgisx86_64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgis-clientaarch64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgis-clientx86_64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgis-docsaarch64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgis-docsx86_64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgis-upgradeaarch64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgis-upgradex86_64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgis-utilsaarch64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgis-utilsx86_64 · postgresql · 18b | Advisory build | 0:3.6.1-4.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgres-decoderbufsaarch64 · postgresql · 18b | Advisory build | 0:3.3.1-1.Final.module+el9.8.0+90922+3defa420 | ELSA-2026-104854 |
| Oracle Linux | 9 | postgres-decoderbufsx86_64 · postgresql · 18b | Advisory build | 0:3.3.1-1.Final.module+el9.8.0+90922+3defa420 | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresqlaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresqlx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-contribaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-contribx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-docsaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-docsx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-plperlaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-plperlx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-plpython3aarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-plpython3x86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-pltclaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-pltclx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-private-develaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-private-develx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-private-libsaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-private-libsx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-serveraarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-serverx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-server-develaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-server-develx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-staticaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-staticx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-testaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-testx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-test-rpm-macrosaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-test-rpm-macrosx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-upgradeaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-upgradex86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-upgrade-develaarch64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Oracle Linux | 9 | postgresql-upgrade-develx86_64 · postgresql · 18b | Advisory build | 0:18.7-1.module+el9.9.0+91160+8935205b | ELSA-2026-104854 |
| Red Hat Enterprise Linux | RHEL-10 | postgresqlppc64le | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresqls390x | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresqlx86_64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-contribaarch64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-contribppc64le | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-contribs390x | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-contribx86_64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-contrib-debuginfoaarch64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-contrib-debuginfoppc64le | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-contrib-debuginfos390x | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-contrib-debuginfox86_64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-debuginfoaarch64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-debuginfoppc64le | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-debuginfos390x | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-debuginfox86_64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-docsaarch64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-docsppc64le | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-docss390x | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-docsx86_64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-docs-debuginfoaarch64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-docs-debuginfoppc64le | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-docs-debuginfos390x | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-docs-debuginfox86_64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plperlaarch64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plperlppc64le | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plperls390x | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plperlx86_64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plperl-debuginfoaarch64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plperl-debuginfoppc64le | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plperl-debuginfos390x | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plperl-debuginfox86_64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plpython3aarch64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plpython3ppc64le | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plpython3s390x | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
| Red Hat Enterprise Linux | RHEL-10 | postgresql-plpython3x86_64 | Advisory build | 16.16-1.el10_3 | RHSA-2026:104964 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
Type confusion in PostgreSQL min/max aggregate optimization allows an object creator to execute arbitrary code as the operating system user running the database, via a user-defined aggregate whose SORTOP option causes the planner to treat the aggregate's input and result as the same type when they differ. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
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.7 (affected · rpm)17 to < 17.12 (affected · rpm)16 to < 16.16 (affected · rpm)15 to < 15.20 (affected · rpm)0 to < 14.25 (affected · rpm)Default: unaffected | PostgreSQL · cna |
Weaknesses
1- CWE-843 Access of Resource Using Incompatible Type ('Type Confusion')
References
1Provider assertions
2PostgreSQL · cna
PostgreSQL min/max aggregate type confusion executes arbitrary code
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- baa02b9b62075aafdf736cf421e6d2e83541661f7a4ffa715cb29fa668a457d0
- Ingested
- 13 Nov 2026, 05:15:24 UTC
- Source record
- Official CVE record