Description
Heap buffer overflow in PostgreSQL pg_stat_statements allows the query author to execute arbitrary code as the operating system user running the database, via crafted queries containing array constants. Within major version 18, minor versions before PostgreSQL 18.6 are affected. Versions before PostgreSQL 18 are unaffected.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | PostgreSQL | 18 – < 18.6 | 18.6 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | postgresql-18 | 18.6-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | postgresql-18 | 18.6-0ubuntu0.26.04.1 | USN-8653-1 |
| Ubuntu 24.04 LTS | postgresql-16 | 16.15-0ubuntu0.24.04.1 | USN-8653-1 |
| Ubuntu 22.04 LTS | postgresql-14 | 14.24-0ubuntu0.22.04.1 | USN-8653-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | postgresql-9.3 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | postgresql18 +13 | 18.6-1.el10_2 | RHSA-2026:67280 |
| RHEL 9 | pg_repack | 1.5.3-1.module+el9.8.0+23739+1c42644c | RHSA-2026:67848 |
| RHEL 9 | pgaudit | 18.0-1.module+el9.8.0+23739+1c42644c | RHSA-2026:67848 |
| RHEL 9 | pgvector | 0.8.1-1.module+el9.8.0+23739+1c42644c | RHSA-2026:67848 |
| RHEL 9 | postgis +4 | 3.6.1-4.module+el9.8.0+24879+1364ef12 | RHSA-2026:67848 |
| RHEL 9 | postgres-decoderbufs | 3.3.1-1.Final.module+el9.8.0+23739+1c42644c | RHSA-2026:67848 |
| RHEL 9 | postgresql +14 | 18.6-1.module+el9.8.0+24816+5c11f535 | RHSA-2026:67848 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 10 | postgresql18 +13 | 18.6-1.el10_2 | ALSA-2026:67280 |
| AlmaLinux 9 | pg_repack | 1.5.3-1.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
| AlmaLinux 9 | pgaudit | 18.0-1.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
| AlmaLinux 9 | pgvector | 0.8.1-1.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
| AlmaLinux 9 | postgis +4 | 3.6.1-4.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux 9 | postgres-decoderbufs | 3.3.1-1.Final.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
| AlmaLinux 9 | postgresql +14 | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | postgresql18 | 18.6-1.el10_2 | RLSA-2026:67280 |
| Rocky Linux 9 | pg_repack | 1.5.3-1.module+el9.8.0+40158+490b3c67 | RLSA-2026:67848 |
| Rocky Linux 9 | pgaudit | 18.0-1.module+el9.8.0+40158+490b3c67 | RLSA-2026:67848 |
| Rocky Linux 9 | pgvector | 0.8.1-1.module+el9.8.0+40158+490b3c67 | RLSA-2026:67848 |
| Rocky Linux 9 | postgres-decoderbufs | 3.3.1-1.Final.module+el9.8.0+40158+490b3c67 | RLSA-2026:67848 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | postgresql18 | 18.6-150600.13.16.1 | SUSE-SU-2026:4014-1 |
| SLES 15 SP6 | postgresql18 | 18.6-150600.13.16.1 | SUSE-SU-2026:4014-1 |
| SLES 15 SP5 | postgresql18 | 18.6-150200.5.17.1 | SUSE-SU-2026:4015-1 |
| SLES 15 SP4 | postgresql18 | 18.6-150200.5.17.1 | SUSE-SU-2026:4015-1 |
| SLES 12 SP5 | postgresql18 | 18.6-8.17.1 | SUSE-SU-2026:3942-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | postgresql18 | 18.6-160000.1.1 | SUSE-SU-2026:23577-1 |
| SLES for SAP 15 SP6 | postgresql18 | 18.6-150600.13.16.1 | SUSE-SU-2026:4014-1 |
| SLES for SAP 15 SP5 | postgresql18 | 18.6-150200.5.17.1 | SUSE-SU-2026:4015-1 |
| SLES for SAP 15 SP4 | postgresql18 | 18.6-150200.5.17.1 | SUSE-SU-2026:4015-1 |
| SLES 16.0 | postgresql18 | 18.6-160000.1.1 | SUSE-SU-2026:23577-1 |
| SLE HPC 15 SP5 | postgresql18 | 18.6-150200.5.17.1 | SUSE-SU-2026:4015-1 |
| SLE HPC 15 SP4 | postgresql18 | 18.6-150200.5.17.1 | SUSE-SU-2026:4015-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | postgresql18 | 18.6-1.1 | openSUSE-SU-2026:11565-1 |
| openSUSE Leap 16.0 | postgresql18 +1 | 18.6-160000.1.1 | openSUSE-SU-2026:21703-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | postgresql16 | 16.15-r0 | — |
| Alpine v3.24 | postgresql17 | 17.11-r0 | — |
| Alpine v3.24 | postgresql18 | 18.5-r0 | — |
| Alpine v3.23 | postgresql16 | 16.15-r0 | — |
| Alpine v3.23 | postgresql17 | 17.11-r0 | — |
| Alpine v3.23 | postgresql18 | 18.5-r0 | — |
| Alpine v3.22 | postgresql15 | 15.19-r0 | — |
| Alpine v3.22 | postgresql16 | 16.15-r0 | — |
| Alpine v3.22 | postgresql17 | 17.11-r0 | — |
| Alpine v3.21 | postgresql15 | 15.19-r0 | — |
| Alpine v3.21 | postgresql16 | 16.15-r0 | — |
| Alpine v3.21 | postgresql17 | 17.11-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | postgresql18 +15 | 18.6-1.amzn2023.0.1 | ALAS2023-2026-2079 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | pg_repack | 1.5.3-1.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux 9 | pgaudit | 18.0-1.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux 9 | pgvector | 0.8.1-1.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux 9 | postgis +4 | 3.6.1-4.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
| Oracle Linux 9 | postgres-decoderbufs | 3.3.1-1.Final.module+el9.8.0+90922+3defa420 | ELSA-2026-67848 |
| Oracle Linux 9 | postgresql +14 | 18.6-1.module+el9.8.0+91037+efa47639 | ELSA-2026-67848 |
Advisories 16
- ALSA-2026:67848 Important: postgresql:18 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:67280 Important: postgresql18 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2026:67848 Red Hat Security Advisory: postgresql:18 security update Red Hat Security Advisories (RHSA) · Oct 19, 2026
- RHSA-2026:67280 Red Hat Security Advisory: postgresql18 security update Red Hat Security Advisories (RHSA) · Oct 19, 2026
- WID-SEC-2026-2844 PostgreSQL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 18, 2026
- SUSE-SU-2026:23577-1 Security update for postgresql18 SUSE / openSUSE Security Updates · Sep 29, 2026
- RLSA-2026:67848 Important: postgresql:18 security update Rocky Linux Security Advisories · Sep 16, 2026
- ELSA-2026-67848 Important: postgresql:18 security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Sep 16, 2026
- RLSA-2026:67280 Important: postgresql18 security update Rocky Linux Security Advisories · Sep 15, 2026
- SUSE-SU-2026:4014-1 Security update for postgresql18 SUSE / openSUSE Security Updates · Sep 13, 2026
- SUSE-SU-2026:4015-1 Security update for postgresql18 SUSE / openSUSE Security Updates · Sep 13, 2026
- SUSE-SU-2026:3942-1 Security update for postgresql18 SUSE / openSUSE Security Updates · Sep 10, 2026
- openSUSE-SU-2026:21703-1 Security update for postgresql18 SUSE / openSUSE Security Updates · Aug 31, 2026
- ALAS2023-2026-2079 Important: postgresql18 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Aug 31, 2026
- openSUSE-SU-2026:11565-1 libecpg6-18.6-1.1 on GA media SUSE / openSUSE Security Updates · Aug 22, 2026
- USN-8653-1 postgresql-14, postgresql-16, postgresql-18 vulnerabilities Ubuntu Security Notices (USN) · Aug 20, 2026