cve.bz

CVE-2026-14676 postgresql postgresql: Heap-based Buffer Overflow

8.8 highEPSS 0.4%

High (8.8) in postgresql postgresql. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 39th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-08-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-14676 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-14676?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-14676?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-14676 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 18.0 before 18.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14postgresql-1818.6-1DEBIAN-CVE-2026-14676
Ubuntu22.04:LTSpostgresql-1414.24-0ubuntu0.22.04.1USN-8653-1
Ubuntu24.04:LTSpostgresql-1616.15-0ubuntu0.24.04.1USN-8653-1
Ubuntu26.04:LTSpostgresql-1818.6-0ubuntu0.26.04.1UBUNTU-CVE-2026-14676 USN-8653-1
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2026-14676
Red Hatenterprise_linux:9::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.5.3-1.module+el9.8.0+23739+1c42644cRHSA-2026:67848
Red Hatenterprise_linux:9::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:18.0-1.module+el9.8.0+23739+1c42644cRHSA-2026:67848
Red Hatenterprise_linux:9::appstreampgvector, pgvector-debuginfo, pgvector-debugsource0:0.8.1-1.module+el9.8.0+23739+1c42644cRHSA-2026:67848
Red Hatenterprise_linux:9::appstreampostgis, postgis-docs, postgis-utils and 6 more0:3.6.1-4.module+el9.8.0+24879+1364ef12RHSA-2026:67848
Red Hatenterprise_linux:9::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:3.3.1-1.Final.module+el9.8.0+23739+1c42644cRHSA-2026:67848
Red Hatenterprise_linux:9::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:18.6-1.module+el9.8.0+24816+5c11f535RHSA-2026:67848
Red Hatenterprise_linux:10.2postgresql18, postgresql18-docs, postgresql18-test and 24 more0:18.6-1.el10_2RHSA-2026:67280
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepostgresql1818.6-150200.5.17.1SUSE-SU-2026:4015-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Module for Server Applications 15 SP7 and 2 morepostgresql1818.6-150600.13.16.1SUSE-SU-2026:4014-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5postgresql1818.6-8.17.1SUSE-SU-2026:3942-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0postgresql1818.6-160000.1.1SUSE-SU-2026:23577-1
openSUSELeap 16.0postgresql18, postgresql18-mini18.6-160000.1.1openSUSE-SU-2026:21703-1
openSUSETumbleweedpostgresql1818.6-1.1openSUSE-SU-2026:11565-1
AlmaLinux9pg_repack1.5.3-1.module_el9.8.0+234+5456f35dALSA-2026:67848
AlmaLinux9pgaudit18.0-1.module_el9.8.0+234+5456f35dALSA-2026:67848
AlmaLinux9pgvector0.8.1-1.module_el9.8.0+234+5456f35dALSA-2026:67848
AlmaLinux9postgis, postgis-docs, postgis-utils and 2 more3.6.1-4.module_el9.8.0+310+22372bccALSA-2026:67848
AlmaLinux9postgres-decoderbufs3.3.1-1.Final.module_el9.8.0+234+5456f35dALSA-2026:67848
AlmaLinux9postgresql, postgresql-docs, postgresql-test and 12 more18.6-1.module_el9.8.0+310+22372bccALSA-2026:67848
AlmaLinux10postgresql18-test-rpm-macros18.6-1.el10_2ALSA-2026:67280
Rocky Linux9pg_repack0:1.5.3-1.module+el9.8.0+40158+490b3c67RLSA-2026:67848
Rocky Linux9pg_repack0:1.5.3-1.module+el9.8.0+40213+f1e225a4RLSA-2026:67848
Rocky Linux9pgaudit0:18.0-1.module+el9.8.0+40158+490b3c67RLSA-2026:67848
Rocky Linux9pgaudit0:18.0-1.module+el9.8.0+40213+f1e225a4RLSA-2026:67848
Rocky Linux9pgvector0:0.8.1-1.module+el9.8.0+40158+490b3c67RLSA-2026:67848
Rocky Linux9pgvector0:0.8.1-1.module+el9.8.0+40213+f1e225a4RLSA-2026:67848
Rocky Linux9postgres-decoderbufs0:3.3.1-1.Final.module+el9.8.0+40158+490b3c67RLSA-2026:67848
Rocky Linux9postgres-decoderbufs0:3.3.1-1.Final.module+el9.8.0+40213+f1e225a4RLSA-2026:67848
Rocky Linux10postgresql180:18.6-1.el10_2RLSA-2026:67280
Alpinev3.21, v3.22postgresql1515.19-r0ALPINE-CVE-2026-14676
Alpinev3.21, v3.22, v3.23 and 1 morepostgresql1616.15-r0ALPINE-CVE-2026-14676
Alpinev3.21, v3.22, v3.23 and 1 morepostgresql1717.11-r0ALPINE-CVE-2026-14676
Alpinev3.23, v3.24postgresql1818.5-r0ALPINE-CVE-2026-14676
Alpaquita25postgresql1717.11-r0BELL-CVE-2026-14676
Alpaquitastreampostgresql1818.6-r0BELL-CVE-2026-14676

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

An Important heap buffer overflow flaw was identified in the PostgreSQL pg_stat_statements extension. This vulnerability allows an authenticated database user to execute arbitrary code as the database's operating system user by submitting specially crafted SQL queries. The pg_stat_statements extension must be loaded (via shared_preload_libraries) for the vulnerability to be exploitable.

Red Hat's mitigation

If upgrading to PostgreSQL 18.5 or later is not immediately possible, the pg_stat_statements extension can be disabled as a workaround. Remove 'pg_stat_statements' from the shared_preload_libraries parameter in postgresql.conf and restart the PostgreSQL service. This disables query statistics tracking but fully eliminates the attack surface for this vulnerability, as the heap buffer overflow exists exclusively within the pg_stat_statements query-normalization code path and is not reachable when the extension is not loaded. Additionally, limiting database access to trusted, vetted users reduces exposure, though it does not eliminate the risk for any authenticated user who can submit arbitrary queries.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10postgresql18-0:18.6-1.el10_2Fixed 2026-09-14RHSA-2026:67280
Red Hat Enterprise Linux 9postgresql:18-9080020260914093252.rhel9Fixed 2026-09-16RHSA-2026:67848
Red Hat Enterprise Linux 10postgresql16Not affected
Red Hat Enterprise Linux 6postgresqlNot affected
Red Hat Enterprise Linux 7postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:12/postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:15/postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:16/postgresqlNot affected
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Enterprise Linux 9postgresql:15/postgresqlNot affected
Red Hat Enterprise Linux 9postgresql:16/postgresqlNot affected
Red Hat Hardened Imagespostgresql17Not affected
Red Hat Hardened Imagespostgresql18Not affected
Self-service automation portal 2ansible-automation-platform/bootc-automation-portal-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-14676.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON